Re: New net features for added performance

From: Andi Kleen (
Date: Sat Feb 24 2001 - 18:48:35 EST

Jeff Garzik <> writes:

> Advantages: A de-allocation immediately followed by a reallocation is
> eliminated, less L1 cache pollution during interrupt handling.
> Potentially less DMA traffic between card and host.
> Disadvantages?

You need a new mechanism to cope with low memory situations because the
drivers can tie up quite a bit of memory (in fact you gave up unified
memory management).

> 3) Slabbier packet allocation. Even though skb allocation is decently
> fast, you are still looking at an skb buffer head grab and a kmalloc,
> for each [dev_]alloc_skb call. I was wondering if it would be possible
> to create a helper function for drivers which would improve the hot-path
> considerably:

If you need such a horror it just means there is something wrong with slab.
Better fix slab.

4) Better support for aligned RX by only copying the header, no the whole
packet, to end up with an aligned IP header. Unless the driver knows about
all protocol lengths this means the stack needs to support "parse header
in this buffer, then switch to other buffer with computed offset for data"

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

This archive was generated by hypermail 2b29 : Wed Feb 28 2001 - 21:00:08 EST