From: Pekka Enberg <penberg@cs.helsinki.fi>
To: David Rientjes <rientjes@google.com>
Cc: Christoph Lameter <cl@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [patch 2/2] slub: add min_partial sysfs tunable
Date: Mon, 23 Feb 2009 12:26:24 +0200 [thread overview]
Message-ID: <1235384784.6216.34.camel@penberg-laptop> (raw)
In-Reply-To: <alpine.DEB.2.00.0902230126080.19494@chino.kir.corp.google.com>
Hi David,
On Mon, 23 Feb 2009, Pekka Enberg wrote:
> > The patches look good but the description is bit lacking. Does this
> > actually fix up something? Why don't we fix the limit calculations
> > instead?
> >
> > I'm a sucker for numbers so I'm easily fooled into merging patches with
> > statements of the form "this shaves off N bytes/kb/mb on XYZ systems".
On Mon, 2009-02-23 at 01:58 -0800, David Rientjes wrote:
> The memory savings from simply moving min_partial from struct
> kmem_cache_node to struct kmem_cache is obviously not significant (unless
> maybe you're from SGI or something), at the largest it's
>
> # allocated caches * (MAX_NUMNODES - 1) * sizeof(unsigned long)
>
> The true savings occurs when userspace reduces the number of partial slabs
> that would otherwise be wasted, especially on machines with a large
> number of nodes (ia64 with CONFIG_NODES_SHIFT at 10 for default?). As
> well as the kernel estimates ideal values for n->min_partial and ensures
> it's within a sane range, userspace has no other input other than writing
> to /sys/kernel/slab/cache/shrink.
Applied with the above explanation added to the changelog. Thanks!
Pekka
next prev parent reply other threads:[~2009-02-23 10:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-23 1:40 [patch 1/2] slub: move min_partial to struct kmem_cache David Rientjes
2009-02-23 1:40 ` [patch 2/2] slub: add min_partial sysfs tunable David Rientjes
2009-02-23 8:19 ` Pekka Enberg
2009-02-23 9:58 ` David Rientjes
2009-02-23 10:26 ` Pekka Enberg [this message]
2009-02-23 16:11 ` Christoph Lameter
2009-02-23 16:09 ` [patch 1/2] slub: move min_partial to struct kmem_cache Christoph Lameter
2009-02-23 16:23 ` David Rientjes
2009-02-23 16:20 ` [patch 1/2] slub: move min_partial to struct kmem_cach Christoph Lameter
2009-02-23 16:37 ` David Rientjes
2009-02-25 7:17 ` Pekka Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1235384784.6216.34.camel@penberg-laptop \
--to=penberg@cs.helsinki.fi \
--cc=cl@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rientjes@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox