Re: Avoiding external fragmentation with a placement policyVersion 12

From: David S. Miller
Date: Sun Jun 05 2005 - 14:54:53 EST


From: Nick Piggin <nickpiggin@xxxxxxxxxxxx>
Date: Sat, 04 Jun 2005 12:15:46 +1000

> Herbert Xu wrote:
> > With Dave's latest super-TSO patch, TCP over loopback will only be
> > doing order-0 allocations in the common case. UDP and others may
> > still do large allocations but that logic is all localised in
> > ip_append_data.
> >
> > So if we wanted we could easily remove most large allocations over
> > the loopback device.
>
> I would be very interested to look into that. I would be
> willing to do benchmarks on a range of machines too if
> that would be of any use to you.

Even without the super-TSO patch, we never do larger than
PAGE_SIZE allocations for sendmsg() when the device is
scatter-gather capable (as indicated in netdev->flags).

Loopback does set this bit.

This PAGE_SIZE limit comes from net/ipv4/tcp.c:select_size().
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/