lkml.org 
[lkml]   [2009]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] slub: default min_partial to at least highest cpus per node
On Tue, 7 Apr 2009, Christoph Lameter wrote:

> The partial list sizes cannot be adjusted.

It's adjustable via /sys/kernel/slab/cache/min_partial.

> There is just a mininum size
> that is set via MIN_PARTIAL. Currently we use that to avoid trips to the
> page allocator by keeping the list artificially long. This should not be
> done because it increases memory overhead by keeping slab pages around
> with no objects.

That memory is easily reclaimed with kmem_cache_shrink().

> If the page allocator trips are not that expensive
> anymore then there is no reason to keep these slab pages around. A hot
> page can be reused by any other subsystemm in the kernel.
>

Right, but right now allocating new slabs is extremely slow compared to
using a partial slab.


\
 
 \ /
  Last update: 2009-04-07 23:49    [W:0.250 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site