[lkml]   [2002]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: TCP/IP Speed
Zwane Mwaikambo wrote:

>On Wed, 30 Jan 2002, Richard B. Johnson wrote:
>>But it's already connected.
>> host:
>> for (;;) {
>> gettimeofday(...);
>> write(s, buf, 64);
>> read(s, buf, sizeof(buffer));
>> gettimeofday(...);
>> /* delay is 1.0 ms */
>> }
>> server is IPPORT_ECHO
>You didn't make that explicit in your previous email, and anyway what kind
>of resolution can you expect from gettimeofday...
Depending on the processor, gettimeofday has very high resolution.

If I remember correctly, the TCP stacks put in delays for small sends so
they can pack multiple things together. I think there are ways to work
around this via some type of flush, but memory fails me on exactly how.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:18    [W:0.080 / U:1.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site