Increase the mininum number of partial slabs to keep around and put
partial slabs to the end of the partial queue so that they can add
more objects.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Christoph Lameter 2007-12-21 14:37:37 -08:00 коммит произвёл Linus Torvalds
Родитель ea67db4cdb
Коммит 76be895001
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -172,7 +172,7 @@ static inline void ClearSlabDebug(struct page *page)
* Mininum number of partial slabs. These will be left on the partial * Mininum number of partial slabs. These will be left on the partial
* lists even if they are empty. kmem_cache_shrink may reclaim them. * lists even if they are empty. kmem_cache_shrink may reclaim them.
*/ */
#define MIN_PARTIAL 2 #define MIN_PARTIAL 5
/* /*
* Maximum number of desirable partial slabs. * Maximum number of desirable partial slabs.
@ -1613,7 +1613,7 @@ checks_ok:
* then add it. * then add it.
*/ */
if (unlikely(!prior)) if (unlikely(!prior))
add_partial(get_node(s, page_to_nid(page)), page); add_partial_tail(get_node(s, page_to_nid(page)), page);
out_unlock: out_unlock:
slab_unlock(page); slab_unlock(page);