|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 3/3] Remove MINIMUM_OBJECT_SIZE
On 19/07/2021 11:03, Owen Smith wrote: MINIMUM_OBJECT_SIZE would make all cached objects at least 0x80 bytes, which would limit the number of objects in each slab to 31 objects. This limitation is not needed, as the slab's mask is dynamically allocated to cope with the correct number of objects that can fit into a single slab. Cache object's sizes are rounded up to the nearest pointer boundary to maintain object alignment. Removing the minimum size allows more objects per cache slab, reducing the memory overhead of caches. Yes, that restriction dates from a time when the slab mask was inline. Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx> Acked-by: Paul Durrant <paul@xxxxxxx>
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |