projects
asked on
How can I get proper MB/s using iperf
Why are the results not showing MB/s in some normal way? For example 30MB/s or 48MB/s.
# iperf -d -c 1.1.1.1 -fMB
-------------------------- ---------- ---------- ---------- ----
Client connecting to 1.1.1.1, TCP port 5201
TCP window size: 0.02 MByte (default)
-------------------------- ---------- ---------- ---------- ----
[ 3] local 192.168.1.58 port 50373 connected with 1.1.1.1 port 5201
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 17592186044415 MBytes 1757330879611 MBytes/sec
# iperf -d -c 1.1.1.1 -fMB
--------------------------
Client connecting to 1.1.1.1, TCP port 5201
TCP window size: 0.02 MByte (default)
--------------------------
[ 3] local 192.168.1.58 port 50373 connected with 1.1.1.1 port 5201
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 17592186044415 MBytes 1757330879611 MBytes/sec
ASKER
That's the point, I don't want to do calculations, I'd like the program to give me the output that so many examples on the net show, but it doesn't.
Even a tiny bash script would be great, showing time, speed and bandwidth.
Even a tiny bash script would be great, showing time, speed and bandwidth.
You have an extra B:
iperf -c 1.1.1.1 -f M
HTH,
Dan
iperf -c 1.1.1.1 -f M
HTH,
Dan
ASKER
Same result without the B, using only -fM
I always use f space M
ASKER
Same results, I've tried all those combinations which is why I ended up posting this question.
This probably needs a bash script to make it work.
This probably needs a bash script to make it work.
Your client system has some timing problems. (or you have 20 petabit network cards not yet invented?)
ASKER
Ack, I gave away the secret! :).
Anyhow, I tried this on a centos7 machine and that works fine, without any options no less.
Have to test some other clients.
Anyhow, I tried this on a centos7 machine and that works fine, without any options no less.
Have to test some other clients.
:) if it is windows you can try forcing it into permanent high performance mode, maybe timer is right then.
ASKER
It's all Linux.
change clocksource to something better than tsc
ASKER
Like I said, it works from centos7 and windows clients. If I recall, the client I was originally testing from was a Ubuntu machine.
Not sure but it's all working now.
Not sure but it's all working now.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
... to boot command line (/etc/sysconfig/grub /etc/grub.conf) ONLY on systems that are unable to invalidate unstable TSC.... (btw debian works for me good, but RHEL and fedora coughs, maybe you are in other side of globe and it is other way around)...
http://openmaniak.com/iperf.php