Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于PPS测试性能的问题 #507

Open
jk316 opened this issue Dec 10, 2024 · 3 comments
Open

关于PPS测试性能的问题 #507

jk316 opened this issue Dec 10, 2024 · 3 comments

Comments

@jk316
Copy link

jk316 commented Dec 10, 2024

使用numa 0 的0-23 cpu,cc为0.2m,keepalive=1ms,采取flood模式,单张Mellonax5-Ex百G网卡的场景下:

单卡单port,pps为135Mpps

单卡双port,pps也为135Mpps

原因分析:cc和keepalive没变,因此pps没变。因此,增加cc为原来的2倍,即0.4m,keepalive不变,由于增加了cc,因此增加cpu为原来的两倍,将numa 0的另一半cpu 48-71cpu使用上。

cpu= 0-23 48-71 cc为0.4m,keepalive=1ms,其他参数都没变,进行测试:

单卡双port,发端pps为126Mpps,但是接受端的pps仅为71Mpps,udp drop为60Mpps,udpTx仅为11Mpps。

问题:

  1. 单port的极限是135Mpps,2port的极限应该270Mpps吧?增加cc和cps后为什么发送端没增加,接收端降低了?
@pengjianzhang
Copy link
Collaborator

可能达到网卡瓶颈了
测最大PPS需要各种参数慢慢调,建议尝试
keepalive 10us
tx_burst 64

@jk316
Copy link
Author

jk316 commented Dec 11, 2024

  1. 之前的测试中tx_burst 一直是128,为了达到更大的pps结果,这次依然采取128
  2. 将keepalive降低为10us后,发送端性能130Mpps,接收端62Mpps

@pengjianzhang
Copy link
Collaborator

pengjianzhang commented Dec 16, 2024

是不是交换机上丢包了
可以两个port直连看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants