11 Star 4 Fork 28

src-openEuler / gazelle

 / 详情

【22.03 LTS SP1】【性能】使用bond1 模式,单网口和双网口性能不稳定,且和历史存在差距

已完成
缺陷
创建于  
2022-11-29 19:55

【标题描述】使用bond1 模式,单网口和双网口性能不稳定,且和历史存在差距
【环境信息】
openeulerversion=openEuler-22.03-LTS-SP1
compiletime=2022-11-28-18-10-14
gccversion=10.3.1-16.oe2203sp1
kernelversion=5.10.0-129.0.0.69.oe2203sp1
openjdkversion=1.8.0.352.b08-3.oe2203sp1
dpdk版本:dpdk-21.11-24.oe2203sp1.aarch64
gazelle版本:gazelle-1.0.1-23.oe2203sp1.aarch64

【问题复现步骤】
按照如下配置带ltran启动,使用benchmark工具进行持续打流1分钟以上,抓取最后50次的日志求均值
输入图片说明
再把bond_ports修改为0x3,带ltran启动,使用benchmark工具进行持续打流1分钟以上,抓取最后50次的日志求均值

出现概率(是否必现,概率性错误)
100%

【预期结果】
单网口和双网口应该在200万上下浮动,且差距不能超过5%

【实际结果】
单网口和双网口的时候性能在20万以下浮动,且差距超过了5%
输入图片说明
输入图片说明

【附件信息】
NA

评论 (3)

chenshijuan3 创建了缺陷

Hi chenshijuan3, 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 , @李辉松

openeuler-ci-bot 添加了
 
sig/sig-high-perform
标签
chenshijuan3 负责人设置为吴昌盛
chenshijuan3 添加协作者kircher
chenshijuan3 优先级设置为严重

1,ltran.conf 配置了ltan在 0,1核上,内核也会使用0核,会与lran竞争,影响性能,测试中应该避免使用0核,建议修改为1,2;
2,lstack.conf 配置的wakeup线程和lstack线程都在3,4核上,彼此抢核,影响性能,建议wakeup线程和lstack线程设置在不同的cpu核上,例如lstack线程绑在3,4;wakeup线程绑在5,6;
3,lstack.conf 配置了两个lstack,但只配置了256000个mbuf,内存太少,可能会有mbuf分配失败,建议通过lstack.conf内的mbuf_pool_size 参数进行设置,设置为256000*lstack个数;
4,app线程未绑核成功,已经通过一下pr修复:https://gitee.com/openeuler/gazelle/pulls/194
5,pbuf alloc函数去除不必要的判断,mempoool 无需预留一定量的mbuf,且rte_mempool_avail_count函数每次执行耗时,删除预留mbuf的操作, 提高性能。!206:remove mbuf reserve in mbuf alloc

app线程未绑核成功

此描述有误,是因为gazelle代码中未绑核,导致app线程(benchmark 应用线程)未绑核,是因为修改引入导致

登录 后才可以发表评论

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

搜索帮助