On Fri, 4 May 2007, Pekka Enberg wrote: > Christoph Lameter wrote: > > On Fri, 4 May 2007, Pekka Enberg wrote: > > > > > Again, slab has no way of actually estimating how many pages you need for > > > a > > > given number of objects. So we end up calculating some upper bound which > > > doesn't belong in mm/slab.c. I am perfectly okay with: > > > > It can give a worst case number and that is what he wants. > > Sure. But he can calculate that elsewhere instead of bringing it in mm/slab.c > where it's no use for anyone else...
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. - 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/