-
Notifications
You must be signed in to change notification settings - Fork 121
60 secs multithread failed to show statistics #65
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
Comments
As far as I recall '--srv-num' was never implemented in sockperf. I'm guessing VMA in the picture is just confusing here. |
But i starting VMA only on server, dont use it on client. |
What is this check _seqN > m_maxSequenceNo supposed to accomplish, actually? The error is 100% reproducible on ppc64le with ./autogen.sh sockperf: == version #3.6-0.git737d1e3e5576 == [ 0] IP = 0.0.0.0 PORT = 11111 # TCP |
This code looks really fishy to me:
What is that +10 replies for safety? |
Random constant increase in the code 'fixes' the issue but does not change the fact that the whole calculation is dubious adding bits of padding here and there. --- a/src/sockperf.cpp
|
Still broken in 3.8 which contains this commit. |
|
Maybe more robust approach would be to provide the expected and actual number of packets in the statistics rather than failing to provide any statistics when the number of packets is not as expected. Then the result would also show what kind of error happened with the packet counting. It may be that you rely on some stronger memory consistency guarantees that hold only on some architectures for updating the packet count and it is simply corrupted. |
Let think if it can be improved. On my system your scenario works:
|
Fix #187 was included into master |
hi.
I got ip_list file:
224.4.4.4:1234
224.4.4.5:4321
then I starting test like this and got next messages:
sockperf sr -f ip_list -m 100 --threads-num 2 --load-vma -F select
VMA INFO : ---------------------------------------------------------------------------
VMA INFO : VMA_VERSION: 7.0.11-0 Development Snapshot built on Dec 3 2015 16:52:56
VMA INFO : Cmd Line: sockperf sr -f ip_list -m 100 --threads-num 2 --load-vma -F select
VMA INFO : Current Time: Thu Jan 21 14:32:29 2016
VMA INFO : Pid: 26235
VMA INFO : OFED Version: MLNX_OFED_LINUX-3.1-1.0.3:
VMA INFO : Architecture: x86_64
VMA INFO : Node: bot4
VMA INFO : ---------------------------------------------------------------------------
VMA INFO : Log Level 3 [VMA_TRACELEVEL]
VMA INFO : ---------------------------------------------------------------------------
sockperf: == version #2.7-41.git241c4528ae75 ==
sockperf: Running 2 threads to manage 2 sockets
sockperf: [SERVER] listen on:
[ 0] IP = 224.4.4.5 PORT = 4321 # UDP
sockperf: Warmup stage (sending a few dummy messages)...
sockperf: [SERVER] listen on:
[ 0] IP = 224.4.4.4 PORT = 1234 # UDP
sockperf: Warmup stage (sending a few dummy messages)...
sockperf: [tid 26246] using select() to block on socket(s)
sockperf: [tid 26245] using select() to block on socket(s)
^Csockperf: Got signal 2 - exiting
sockperf: Total 1 messages received and handled
sockperf: Test end (interrupted by signal 2)
sockperf: Test end (interrupted by signal 2)
sockperf: server_select_per_thread() exit
and client:
sockperf pp -f ip_list -m 100 --srv-num 2 --time 60
sockperf: == version #2.7-41.git241c4528ae75.dirty ==
sockperf[CLIENT] send on:sockperf: using select() to block on socket(s)
[ 0] IP = 224.4.4.4 PORT = 1234 # UDP
[ 1] IP = 224.4.4.5 PORT = 4321 # UDP
sockperf: Warmup stage (sending a few dummy messages)...
sockperf: Starting test...
sockperf: Test end (interrupted by timer)
sockperf: Test ended
sockperf: [Total Run] RunTime=60.100 sec; SentMessages=1; ReceivedMessages=1
sockperf: ========= Printing statistics for Server No: 0
sockperf: ERROR: _seqN > m_maxSequenceNo (errno=4 Interrupted system call)
whats wrong?
The text was updated successfully, but these errors were encountered: