Link to home
Start Free TrialLog in
Avatar of projects
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
Avatar of NetExpert Network Solutions Pte Ltd
NetExpert Network Solutions Pte Ltd
Flag of Singapore image

I am not sure, how you run iperf. the below url will help you to run the iperf methods and calculate the bandwidth

http://openmaniak.com/iperf.php
Avatar of projects
projects

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.
Avatar of Dan Craciun
You have an extra B:

iperf -c 1.1.1.1 -f M

HTH,
Dan
Same result without the B, using only -fM
I always use f space M
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.
Your client system has some timing problems. (or you have 20 petabit network cards not yet invented?)
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.
:) if it is windows you can try forcing it into permanent high performance mode, maybe timer is right then.
It's all Linux.
change clocksource to something better than tsc
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.
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
... 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)...