Friday, April 10, 2009

write2 failed: Iperf error

I encountered this error today when I was testing performance
of a link. I am not quite sure if this error is a bug due to
a specific version of iperf, but was able to get around it
by reducing the size of the transmitted packet as compared to
the MTU. By default iperf uses a 1470byte packet for transmission,
cutting down that size below 1440bytes (with MTU of 1500) helped
remove the error.

Again I am not sure if this is a version error and the solution
posted here is just a quick fix.


John said...

I have seen a similar error which looks like -
iperf read failed: message too long

Any idea why we see this?

Anonymous said...

I had the same error but I am not sure that it is IPERF error or maybe ssh connection error, because I use both...

misfit said...

You can try and eliminate the ssh part by logging in and then explicitly running iperf, so if there is a ssh problem you will know.. (possibly by getting disconnected)

John try and do the same thing, reduce the MTU size. Does that work?

Post a Comment