On Wednesday 04 January 2006 12:13, Eric Dumazet wrote:Andi Kleen a écrit :Eric Dumazet <dada1@xxxxxxxxxxxxx> writes:Well in theory yes, if you really expect thousand of tasks running...1) Reduces the size of (struct fdtable) to exactly 64 bytes on 32bitsIt should be probably a kmem_cache_alloc() instead of a kmalloc
platforms, lowering kmalloc() allocated space by 50%.
in the first place anyways. This would reduce fragmentation.
But for most machines, number of concurrent tasks is < 200, and using a special cache for this is not a win.
It is because it avoids fragmentation because objects with similar livetimes
are clustered together. In general caches are a win
if the data is nearly a page or more.