[OpenAFS-devel] .35 sec rx delay bug?
Jean-Marc Saffroy
saffroy@gmail.com
Thu, 9 Nov 2006 21:14:04 +0100 (CET)
On Thu, 9 Nov 2006, Ken Hornstein wrote:
>> I think it should be possible to achieve the same result with sendfile()
>> and TCP_CORK. This may be for Linux only however.
>
> Yay, more #ifdef's!
That's not my problem, I'm just suggesting ideas. ;-)
> Hm, I am wondering if that's a win; that means two extra syscalls.
Here two extra syscalls (a few microseconds nowadays?) can save processing
a packet (or more), and incurring network latency (a hundred microseconds
on my Ether).
> We could play some games if you're sending a large chunk of data,
> though ... you would only need to set TCP_CORK at the beginning of
> sending a large chunk, and clear it at the end. Clearly plenty of
> things to play with.
This is exactly how it's meant to be used.
--
saffroy@gmail.com