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

2014-01-14 Thread David Rientjes
On Mon, 2 Dec 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

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

2014-01-14 Thread David Rientjes
On Mon, 2 Dec 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 more

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

2013-12-02 Thread Christoph Lameter
On Mon, 2 Dec 2013, Joonsoo Kim wrote: > If page size is rather larger than 4096, above assumption would be wrong. > In this case, we would fall back on 2 bytes sized index. Acked-by: Christoph Lameter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

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

2013-12-02 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_OBJ_MIN_SIZE

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

2013-12-02 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_OBJ_MIN_SIZE

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

2013-12-02 Thread Christoph Lameter
On Mon, 2 Dec 2013, Joonsoo Kim wrote: If page size is rather larger than 4096, above assumption would be wrong. In this case, we would fall back on 2 bytes sized index. Acked-by: Christoph Lameter c...@linux.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the