Re: [PATCH v2 3/5] slab: restrict the number of objects in a slab

2013-10-20 Thread Christoph Lameter
On Sat, 19 Oct 2013, JoonSoo Kim wrote: > > Ok so that results in a mininum size object size of 2^(12 - 8) = 2^4 == > > 16 bytes on x86. This is not true for order 1 pages (which SLAB also > > supports) where we need 32 bytes. > > According to current slab size calculating logic, slab whose object

Re: [PATCH v2 3/5] slab: restrict the number of objects in a slab

2013-10-18 Thread JoonSoo Kim
2013/10/18 Christoph Lameter : > n Thu, 17 Oct 2013, Joonsoo Kim wrote: > >> To prepare to implement byte sized index for managing the freelist >> of a slab, we should restrict the number of objects in a slab to be less >> or equal to 256, since byte only represent 256 different values. >> Setting

Re: [PATCH v2 3/5] slab: restrict the number of objects in a slab

2013-10-17 Thread Christoph Lameter
n Thu, 17 Oct 2013, Joonsoo Kim wrote: > To prepare to implement byte sized index for managing the freelist > of a slab, we should restrict the number of objects in a slab to be less > or equal to 256, since byte only represent 256 different values. > Setting the size of object to value equal or m

[PATCH v2 3/5] slab: restrict the number of objects in a slab

2013-10-16 Thread Joonsoo Kim
To prepare to implement byte sized index for managing the freelist of a slab, we should restrict the number of objects in a slab to be less or equal to 256, since byte only represent 256 different values. Setting the size of object to value equal or more than newly introduced SLAB_MIN_SIZE ensures