On Fri, 4 May 2007, Christoph Lameter wrote: > He is not able to calculate it just using the object size since he does > not know where the slab put the slab management structure. And in case of > SLUB there is no slab management structure... Which means he would have to > special case based on the slab allocator selected.
Let me state this once more: he is interested in _rough approximation_. It makes no sense to me to add this kind of fuzzy logic in the slab. Now, as the slab clearly cannot give a _precise number_ either, it shouldn't be added there. But, if both of you really want to stick it in mm/slab.c, I guess I won't be too violently opposed to it. It just doesn't make any sense to me. Pekka - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/