From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: David Rientjes <rientjes@google.com>
Cc: kosaki.motohiro@jp.fujitsu.com,
Andrew Morton <akpm@linux-foundation.org>,
Christoph Lameter <cl@linux-foundation.org>,
Pekka Enberg <penberg@cs.helsinki.fi>,
Matt Mackall <mpm@selenic.com>, Paul Menage <menage@google.com>,
Randy Dunlap <randy.dunlap@oracle.com>,
linux-kernel@vger.kernel.org
Subject: Re: [patch -mm] cpusets: add memory_slab_hardwall flag
Date: Mon, 9 Mar 2009 19:19:16 +0900 (JST) [thread overview]
Message-ID: <20090309181756.CF66.A69D9226@jp.fujitsu.com> (raw)
In-Reply-To: <alpine.DEB.2.00.0903090206010.24605@chino.kir.corp.google.com>
> On Mon, 9 Mar 2009, KOSAKI Motohiro wrote:
>
> > Hmmm,
> > this description only explay how to implement this.
> > but no explain why this patch is useful.
> >
> > Could you please who and why need it?
> >
>
> The change to Documentation/cgroups/cpusets.txt should have explained it.
>
> This is for two cases: true memory isolation (now including slab
> allocations at the object level) and NUMA optimizations.
>
> Prior to this change, it was possible for slabs to be allocated in a
> cpuset while its objects were largely consumed by disjoint cpusets. We
> can fix that by only allocating objects from slabs that are found on
> current->mems_allowed. While this incurs a performance penalty, some
> users may find that true isolation outweighs the cache optimizations.
>
> It is also helpful for long-lived objects that require NUMA affinity to a
> certain cpu or group of cpus. That is, after all, the reasoning behind
> cpusets in the first place. If slab objects were all allocated from a
> node with remote affinity to the cpus that will be addressing it, it
> negates a significant advantage that cpusets provides to the user.
My question mean, Why anyone need isolation?
your patch insert new branch into hotpath.
then, it makes slower hotpath a abit although a user don't use this feature.
typically, slab cache don't need strict node binding because
inode/dentry touched from multiple cpus.
In addition, on large numa systems, slab cache is relatively small
than page cache. then this feature's improvement seems relatively small too.
if you have strongly reason, I don't oppose this proposal.
but I don't think your explanation is enough reasonable reason.
btw, have you seen "immediate values" patch series? I think it
can become make the patch zero cost for non-cpuset user.
after that patch merging, I don't oppose this patch although
your reason isn't so much.
next prev parent reply other threads:[~2009-03-09 10:19 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-08 16:27 David Rientjes
2009-03-08 16:53 ` Paul Menage
2009-03-08 21:38 ` David Rientjes
2009-03-09 7:08 ` Paul Menage
2009-03-09 9:18 ` David Rientjes
2009-03-08 17:01 ` Matt Mackall
2009-03-08 21:51 ` David Rientjes
2009-03-09 4:49 ` KOSAKI Motohiro
2009-03-09 9:12 ` David Rientjes
2009-03-09 10:19 ` KOSAKI Motohiro [this message]
2009-03-09 20:26 ` David Rientjes
2009-03-09 21:14 ` Christoph Lameter
2009-03-09 21:31 ` David Rientjes
2009-03-10 20:50 ` Christoph Lameter
2009-03-10 21:08 ` Matt Mackall
2009-03-12 16:08 ` Christoph Lameter
2009-03-12 17:23 ` Matt Mackall
2009-03-10 22:12 ` Paul Menage
2009-03-12 15:51 ` Christoph Lameter
2009-03-09 18:50 ` Christoph Lameter
2009-03-09 20:13 ` David Rientjes
2009-03-10 1:35 ` KOSAKI Motohiro
2009-03-10 2:01 ` David Rientjes
2009-03-10 4:05 ` Matt Mackall
2009-03-10 4:26 ` David Rientjes
2009-03-12 1:03 ` Paul E. McKenney
2009-03-12 5:51 ` David Rientjes
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=20090309181756.CF66.A69D9226@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=cl@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=menage@google.com \
--cc=mpm@selenic.com \
--cc=penberg@cs.helsinki.fi \
--cc=randy.dunlap@oracle.com \
--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
all inboxes | Powered by JetHome®