22 Star 103 Fork 84

openEuler / gazelle

 / 详情

【example混杂模式】用example打流时,配置共线程模式,打流出现coredump

修复中
缺陷
创建于  
2024-03-30 17:39

【环境信息】
openeulerversion=openEuler-20.03-LTS-SP1
compiletime=2020-12-23-02-13-04
gccversion=7.3.0-20190804.35.oe1
kernelversion=4.19.90-2012.4.0.0053.oe1
openjdkversion=1.8.0.272.b10-7.oe1
gazelle version=gazelle-1.0.2-29.oe1.x86_64
dpdk version=dpdk-19.11-33.x86_64

【问题复现步骤】
命令:
客户端命令:
LD_PRELOAD=/usr/lib64/liblstack.so GAZELLE_BIND_PROCNAME=example ./example -a client -D tcp,udp -i 192.168.177.236 -p 33333 -P 512 -t 3 -c 10 -A recvfromsendto -g 192.168.177.180,224.0.0.209

服务端命令:
LD_PRELOAD=/usr/lib64/liblstack.so GAZELLE_BIND_PROCNAME=example ./example -a server -D tcp,udp -i 192.168.177.236 -p 33333 -P 512 -t 3 -c 10 -A recvfromsendto -g 192.168.177.236,224.0.0.209 -m mum

LD_PRELOAD=/usr/lib64/liblstack.so GAZELLE_BIND_PROCNAME=example ./example -a server -D tcp,udp -i 192.168.177.59 -p 33333 -P 512 -t 3 -c 10 -A recvfrom -g 192.168.177.59,224.0.0.209 -m mum

客户端配置

dpdk_args=["--socket-mem", "1024,0,0,0", "--huge-dir", "/mnt/hugepages-lstack", "--proc-type", "primary", "--legacy-mem", "--map-perfect"]

#stack_thread_mode="run-to-wakeup"
stack_thread_mode="run-to-completion"

use_ltran=0
kni_switch=0

low_power_mode=0

#needed mbuf count = tcp_conn_count * mbuf_count_per_conn
tcp_conn_count=1500
mbuf_count_per_conn=138

# send ring size, default is 32, max is 2048
send_ring_size = 32

#protocol stack thread per loop params
#read data form protocol stack into recv_ring
read_connect_number = 4
#process rpc msg number
rpc_number = 4
#read nic pkts number
nic_read_number = 128

nic_rxqueue_size = 4096
nic_txqueue_size = 2048

#each cpu core start a protocol stack thread.
num_cpus="2,3,4"

#app worker thread bind to numa in epoll/poll.
app_bind_numa=0
#app main thread affinity set by dpdk.
main_thread_affinity=0

host_addr="192.168.177.180"
mask_addr="255.255.255.0"
gateway_addr="192.168.177.1"
devices="52:54:00:48:fd:7b"

#0: use rss rule
#1: use tcp tuple rule to specify packet to nic queue
tuple_filter=0

#tuple_filter=1, below cfg valid
num_process=1
process_numa="0,1"
process_idx=0

#tuple_filer=0, below cfg valid
listen_shadow=1

#vlan mode; only support -1~4094, -1 is disabled
nic_vlan_mode=-1

#bond mode; only support bond 4 or 6 mode ,-1 is disabled
bond_mode=-1

服务端配置

dpdk_args=["--socket-mem", "1024,0,0,0", "--huge-dir", "/mnt/hugepages-lstack", "--proc-type", "primary", "--legacy-mem", "--map-perfect"]

stack_thread_mode="run-to-wakeup"
#stack_thread_mode="run-to-completion"

use_ltran=0
kni_switch=0

low_power_mode=0

#needed mbuf count = tcp_conn_count * mbuf_count_per_conn
tcp_conn_count=1500
mbuf_count_per_conn=138

# send ring size, default is 32, max is 2048
send_ring_size = 32

#protocol stack thread per loop params
#read data form protocol stack into recv_ring
read_connect_number = 4
#process rpc msg number
rpc_number = 4
#read nic pkts number
nic_read_number = 128

nic_rxqueue_size = 4096
nic_txqueue_size = 2048

#each cpu core start a protocol stack thread.
num_cpus="2,3,4"

#app worker thread bind to numa in epoll/poll.
app_bind_numa=1
#app main thread affinity set by dpdk.
main_thread_affinity=0

host_addr="192.168.177.236"
mask_addr="255.255.255.0"
gateway_addr="192.168.177.1"
devices="52:54:00:ee:1e:5b"

#0: use rss rule
#1: use tcp tuple rule to specify packet to nic queue
tuple_filter=0

#tuple_filter=1, below cfg valid
num_process=1
process_numa="0,1"
process_idx=0

#tuple_filer=0, below cfg valid
listen_shadow=0

#vlan mode; only support -1~4094, -1 is disabled
nic_vlan_mode=-1

#bond mode; only support bond 4 or 6 mode ,-1 is disabled
bond_mode=-1

【实际结果】请描述出问题的结果和影响
输入图片说明

输入图片说明

评论 (2)

qianchen123321 创建了缺陷

Hi qianchen123321, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: sig-high-performance-network, and any of the maintainers: @L.X. , @LemmyHuang , @sky , @李扬扬 , @吴昌盛 , @jinag12 , @lilijun , @李辉松 , @kircher

openeuler-ci-bot 添加了
 
sig/sig-high-perform
标签
qianchen123321 修改了标题
qianchen123321 修改了描述
qianchen123321 修改了标题
qianchen123321 负责人设置为hantwofish
hantwofish 任务状态待办的 修改为修复中

example 暂不支持共线程模式

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/openeuler/gazelle.git
git@gitee.com:openeuler/gazelle.git
openeuler
gazelle
gazelle

搜索帮助