<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>
<BR>
I got a very mysterious problem when testing under different OS. <BR>
Here both size of the receive and send buffer have been set the same between windows and linux, but the results were different. Under windows, the Recv socket and the send socket size are the same as the size of the receive and send buffer, but under linux, the Recv socket and the send socket size became double. why? Just watch the follows message.<BR>
<BR>
I don't konw whether the difference is natural between windows and linux or there is some relationship with the netperf tool? <BR>
Would somebody like to help me find out the answer?<BR>
<BR>
<STRONG></STRONG> <BR>
<STRONG>Under windows:</STRONG><BR>
>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 Send Send<BR>Socket Socket Message Elapsed<BR>Size Size Size Time Throughput<BR>bytes bytes bytes secs. 10^6bits/sec<BR>
<FONT color=#c00000>2048 2048</FONT> 1024 10.55 390.65<BR>
<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 Send Send<BR>Socket Socket Message Elapsed<BR>Size Size Size Time Throughput<BR>bytes bytes bytes secs. 10^6bits/sec<BR>
<FONT color=#c00000>4096 4096</FONT> 1024 10.00 522.79<BR>
<BR>
<BR>
Thank you & Best Regards,<BR>
<BR>
yadong liu<BR>                                            <br /><hr />Windows 7:寻找最适合您的 PC。 <a href='http://www.microsoft.com/china/windows/buy/ ' target='_new'>了解详情。</a></body>
</html>