View Single Post
  #4  
Old 10-01-2007, 06:02 PM
unix unix is offline
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: TCP Stream in Win XP Pro?

Alex Lazarevich wrote:
> Thanks for the informative reply Rick, I think it's the socket size that
> is the problem. I noticed the netperf send/receive socket size on linux
> <-> linux was 16384, whereas the windows clients are only 8192. So I'm
> trying to run netperf on windows, resetting the socket size to 16384
> with this command:


> netperf -a16384 -Hnetserver.host.name -fM


> But netperf still runs with only 8192 socket size. I also tried -o16384
> and -W16384 but still, I can't get the send socket size to 16384. help
> pages are terrible.


Netperf 2.1 is rather old and the usage strings were probably pretty
weak. 2.3 is out there (not sure about windows binary availability)
and I'm working on the "configure-script-enabled" 2.4.0 at the moment.

As you have already surmised, none of those options are the right ones
for netperf. To set the socket buffer size(s) one uses the
_test-specific_ -s and -S options:

netperf -H remote -fM -- -s 16384 -S 16384

The -a option controls local send buffer _alignment_ not send socket
buffer size. The -o option controlled the _offset_ into the buffer
from which data was sent, and -W has controlled the "width" of the
send and receive buffer rings.

By default, netperf uses a "ring" of buffers for send or recv calls
that is equal to the socket buffer size, divided by the send size,
plus one. This can sometimes result in differences in reported
performance when compared to other benchmarks that use a single buffer
for send and/or recv - and thus may fit a bit better in lower
(higher?) levels of the processor data cache hierarcy.

> The question then remains how do I force windows XP Pro to use the
> larger socket size on all TCP transmitions? Is there a flag to the
> boot.ini?


No clue on that one. I've always ass-u-me-d that it invovlved the
registry. Just a wag, but searching for "default tcp window" on
microsoft.com may find something useful.

happy benchmarking,

rick jones
--
firebug n, the idiot who tosses a lit cigarette out his car window
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to raj in cup.hp.com but NOT BOTH...
Reply With Quote