Re: [Fwd: [Fwd: Is sendfile all that sexy? (fwd)]]

From: Linus Torvalds (torvalds@transmeta.com)
Date: Sat Jan 20 2001 - 14:39:30 EST


On Sat, 20 Jan 2001, Andrea Arcangeli wrote:

> On Sat, Jan 20, 2001 at 10:05:45PM +0300, kuznet@ms2.inr.ac.ru wrote:
> > It makes. One small packet is allowed to fly, not depending on packets_out.
>
> So this mean if I do:
>
> write(100000*MSS)
> write(1)
> write(1)
>
> 2.4 can send 100000 packet with MSS large payload plus two packets with a
> payload of 1 byte even if during the two write(1) the previous packets were
> still out (not acknowledged yet). Classical nagle would send 100000 packet with
> MSS large payload plus 1 packet with a two bytes payload in the same
> scenario.

As far as I can tell, the second "write(1)" will always merge with the
first one - unless the first one has already been sent out, of course (in
which classical nagle would have done the same thing).

So I think we'd do TheRightThing(tm) regardless. But maybe I misread.

                Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jan 23 2001 - 21:00:22 EST