[netperf-talk] netperf: set_sock_buffer: SO_RCVBUF option: errno 22

Rick Jones rick.jones2 at hp.com
Tue May 13 10:48:34 PDT 2008


Alexander Vinokur wrote:
> HP-UX B.11.23 U ia64
> netperf-2.4.4
> 
> I have the following problem while using test-options -s 0 -S 0 here:
> 
> ./netperf -l 60 -H hpbl820 -t TCP_RR -i 10,3 -I 99,5 -- -r 128,8192 -s 0 
> -S 0
> netperf: set_sock_buffer: SO_RCVBUF option: errno 22
> 
> ./netperf -l 60 -H hpbl820 -t TCP_RR -i 10,3 -I 99,5 -- -r 128,8192
> // No problem

There was a change make to pay nice with Windows - prior to the change 
passing a "0" to a -s or -S option would tell netperf to not bother to 
make a setsockopt() call and just accept the platorm defaults.  After 
the change a "-1" was necessary.  This allows netperf to call 
setsockopt() with a value of "0" on Windows, which tells windows to 
enable a form of copy-avoidance.

So, to accept what the system has as a default, either pass -1, or omit 
the -s/-S option entirely.

I suspect I've not updated the documentation accordingly...

happy benchmarking,

rick jones


More information about the netperf-talk mailing list