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

ping-pong on Arm seems does not respect --mps parameter #155

Closed
ghanimf opened this issue Nov 24, 2021 · 3 comments
Closed

ping-pong on Arm seems does not respect --mps parameter #155

ghanimf opened this issue Nov 24, 2021 · 3 comments

Comments

@ghanimf
Copy link

ghanimf commented Nov 24, 2021

Hi,

Setup

Amazon Linux 2 (based on RHEL) on AWS with kernel (4.14.248-189.473.amzn2.aarch64).
Arm64 (64 CPUs)
sockperf, version 3.7-11.gita57ffb579002

Test

Ping-Pong Lantecy with TCP
Server: ./sockperf server --ip x.y.z.w --tcp --port 5001 --msg-size 400

Without specifiying --mps:

./sockperf ping-pong --ip x.y.z.w. --tcp --port 5001 --time 30 --msg-size 400 --range 100 --full-rtt
I got:
sockperf: [Valid Duration] RunTime=30.000 sec; SentMessages=962683; ReceivedMessages=962683

With --mps 90000

./sockperf ping-pong --ip x.y.z.w. --tcp --port 5001 --time 30 --msg-size 400 --range 100 --full-rtt --mps 90000
I got:
sockperf: [Total Run] RunTime=30.000 sec; Warm up time=400 msec; SentMessages=1005098; ReceivedMessages=1005097

So seem --mps didn't affect anything.

@igor-ivanov
Copy link
Collaborator

igor-ivanov commented Nov 26, 2021

You show different values.
[Total Run] line shows actual values during test.
[Valid Duration] line displays values that are used in calculation of final results.
[Total Run] > [Valid Duration]

@ghanimf
Copy link
Author

ghanimf commented Nov 28, 2021

Hi,
Sorry for the confusion. Here corrected example of the issue:

Without specifiying --mps:

Command:
./sockperf ping-pong --ip x.y.z.w --tcp --port 5001 --time 30 --msg-size 400 --range 100 --full-rt
Output:
sockperf: [Total Run] RunTime=30.000 sec; Warm up time=400 msec; SentMessages=1000442; ReceivedMessages=100044

With --mps=10000

Command:
./sockperf ping-pong --ip x.y.z.w --tcp --port 5001 --time 30 --msg-size 400 --range 100 --full-rtt --mps 10000
Output:
sockperf: [Total Run] RunTime=30.000 sec; Warm up time=400 msec; SentMessages=1007175; ReceivedMessages=1007174

How come almost same amount of messages are sent/recieved on both cases above (same setup, same period of time)?
It seems --mps parameter didn't affect anything. I would expect it to reduce the amount of messages sent.

Thanks, --Ghanim

@igor-ivanov
Copy link
Collaborator

@ghanimf please check if current master with fix as #187 resolves issue

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