[patch 6/7] SLUB: Free slabs and sort partial slab lists in kmem_cache_shrink

2007-04-25 Thread clameter
At kmem_cache_shrink check if we have any empty slabs on the partial if so then remove them. Also--as an anti-fragmentation measure--sort the partial slabs so that the most fully allocated ones come first and the least allocated last. The next allocations may fill up the nearly full slabs.

[patch 6/7] SLUB: Free slabs and sort partial slab lists in kmem_cache_shrink

2007-04-25 Thread clameter
At kmem_cache_shrink check if we have any empty slabs on the partial if so then remove them. Also--as an anti-fragmentation measure--sort the partial slabs so that the most fully allocated ones come first and the least allocated last. The next allocations may fill up the nearly full slabs.