<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
hi, all,<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I got a very mysterious problem when testing under different OS. <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Here&nbsp;both size of the receive and send buffer&nbsp;have been set the&nbsp;same between windows and linux, but the results were different. Under windows, the Recv&nbsp;socket and the send socket size are the same&nbsp;as the&nbsp;&nbsp;size of the receive and send buffer, but under linux, the Recv&nbsp;socket and the send socket size became double. why? Just watch the follows message.<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I don't&nbsp;konw whether the difference is natural between windows and linux or there is some relationship with the netperf tool? <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Would somebody like to help me find out the answer?<BR>
&nbsp;<BR>
<STRONG></STRONG>&nbsp;<BR>
<STRONG>Under windows:</STRONG><BR>
&gt;netperf.exe -H HOST_IP -t TCP_STREAM -l 10 -- -m 1024 -s <FONT color=#c00000>2048</FONT> -S <FONT color=#c00000>2048<BR></FONT>TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to HOST_IP (HOST_IP) port 0 AF_INET<BR>Recv&nbsp;&nbsp; Send&nbsp;&nbsp;&nbsp; Send<BR>Socket Socket&nbsp; Message&nbsp; Elapsed<BR>Size&nbsp;&nbsp; Size&nbsp;&nbsp;&nbsp; Size&nbsp;&nbsp;&nbsp;&nbsp; Time&nbsp;&nbsp;&nbsp;&nbsp; Throughput<BR>bytes&nbsp; bytes&nbsp;&nbsp; bytes&nbsp;&nbsp;&nbsp; secs.&nbsp;&nbsp;&nbsp; 10^6bits/sec<BR>
&nbsp; <FONT color=#c00000>2048&nbsp;&nbsp; 2048</FONT>&nbsp;&nbsp; 1024&nbsp;&nbsp;&nbsp; 10.55&nbsp;&nbsp;&nbsp;&nbsp; 390.65<BR>
&nbsp;<BR>
<STRONG>Under linux:</STRONG><BR># netperf -H HOST_IP -t TCP_STREAM -l 10 -- -m 1024 -s <FONT color=#c00000>2048</FONT> -S <FONT color=#c00000>2048</FONT><BR>TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to HOST_IP (HOST_IP) port 0 AF_INET<BR>Recv&nbsp;&nbsp; Send&nbsp;&nbsp;&nbsp; Send<BR>Socket Socket&nbsp; Message&nbsp; Elapsed<BR>Size&nbsp;&nbsp; Size&nbsp;&nbsp;&nbsp; Size&nbsp;&nbsp;&nbsp;&nbsp; Time&nbsp;&nbsp;&nbsp;&nbsp; Throughput<BR>bytes&nbsp; bytes&nbsp;&nbsp; bytes&nbsp;&nbsp;&nbsp; secs.&nbsp;&nbsp;&nbsp; 10^6bits/sec<BR>
&nbsp; <FONT color=#c00000>4096&nbsp;&nbsp; 4096</FONT>&nbsp;&nbsp; 1024&nbsp;&nbsp;&nbsp; 10.00&nbsp;&nbsp;&nbsp;&nbsp; 522.79<BR>
&nbsp;<BR>
&nbsp;<BR>
Thank you &amp; Best Regards,<BR>
&nbsp;<BR>
yadong liu<BR>                                               <br /><hr />Windows 7:寻找最适合您的 PC。 <a href='http://www.microsoft.com/china/windows/buy/ ' target='_new'>了解详情。</a></body>
</html>