Re: Preallocated skb's?

From: jamal (hadi@cyberus.ca)
Date: Thu Sep 14 2000 - 15:40:55 EST


What Alexey's code does is _not_ preallocation -- it does re-cycling.
On tx_completion, the skb is recycled onto a recycle queue unless the
queue is full (which is a tunable parameter) in which case it is freed.
This is more sensible than doing pre-allocation during idle times
or other smart schemes. On a busy system this queue will always
have something.

What i meant by aging is to have a separate thread that prunes the queue
based on age i.e how long the skb has been sitting there etc. I think Jes
had a bottom-half running there; a simple per-cpu timer might suffice.
The heuristic (such as the timer decay etc) for this part needs a study
and thats what Robert and i are planing to do.

cheers,
jamal

-
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 : Fri Sep 15 2000 - 21:00:24 EST