Mellanox / sockperf

Network Benchmarking Utility
Other
597 stars 119 forks source link

sockperf pp tcp mode: can't set --mps under 5000 messages per second #147

Closed akk988 closed 3 years ago

akk988 commented 3 years ago

Hello everyone,

I have found a bug with sockperf on RaspberryPi when running a pingpong test in tcp mode.

Issue description

sockperf message-per-second caused an error when the value is smaller than 5000 messages per seconds. Testing platform is raspberrypi with raspbian 10 OS.

Steps to reproduce the issue

  1. On Raspberrypi, Run sockperf as server $sockperf server -p 12000 --tcp

  2. Run sockperf as client in ping-pong mode with mps smaller than 5000 $sockperf pp -i 127.0.0.1 -p 12000 --time 1 --mps 5000 --tcp --full-log test.txt

this should reprdduce the problem !

  1. Run sockperf as client in ping-pong mode with mps larger than 6000 $sockperf pp -i 127.0.0.1 -p 12000 --time 1 --mps 6000 --tcp --full-log test.txt

this should work !

What's the expected result?

What's the actual result?

-[ 0] IP = 127.0.0.1 PORT = 12000 # TCP sockperf: Warmup stage (sending a few dummy messages)... sockperf: Starting test... sockperf: ### ERROR: _seqN > m_maxSequenceNo (errno=0 Success)

Additional details / screenshot

igor-ivanov commented 3 years ago

Hello @akk988, I see that you used sockperf v3.6. Could you check last master or v3.7 because there were few fixes related results calculation after 3.6 (for example https://github.com/Mellanox/sockperf/commit/9716c760697c9801522ccf2fa88b35b1b8398e5d).

akk988 commented 3 years ago

Hello @akk988, I see that you used sockperf v3.6. Could you check last master or v3.7 because there were few fixes related results calculation after 3.6 (for example 9716c76).

Hello Igor,

thank you for your Feedback. This was the problem. I switched from V3.6 to V3.7 and the problem was solved.

BR