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

Linus Torvalds (torvalds@transmeta.com)
Sat, 20 Jan 2001 11:39:30 -0800 (PST)


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/