From: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: Andi Kleen <ak@suse.de>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm <linux-mm@kvack.org>, Eric Whitney <eric.whitney@hp.com>
Subject: Re: [PATCH] Use MPOL_PREFERRED for system default policy
Date: Thu, 16 Aug 2007 15:06:59 -0400 [thread overview]
Message-ID: <1187291219.5900.36.camel@localhost> (raw)
In-Reply-To: <Pine.LNX.4.64.0708161133250.16816@schroedinger.engr.sgi.com>
On Thu, 2007-08-16 at 11:34 -0700, Christoph Lameter wrote:
> On Thu, 16 Aug 2007, Lee Schermerhorn wrote:
>
> > Given that the mem policy does the right thing with this patch, can we
> > merge it? I think it cleans up the mem policy concepts to have
> > MPOL_DEFAULT mean "use default policy for this context/scope" rather
> > than have an additional allocation behavior of its own.
>
> I still have not gotten my head around this one. Lets wait awhile.
Well, it doesn't get much additional testing just sitting in my tree.
I have placed WARN_ON_ONCE() and a fall back to local in the 'default:'
switch cases where I've removed the MPOL_DEFAULT cases. So, it'll still
have the same behavior while warning us that an MPOL_DEFAULT has snuck
into a struct mempolicy. There shouldn't be any occurrences of this in
the kernel, once system default policy is changed to MPOL_PREFERRED w/
preferred_node == -1. I'd sure like to have more testing exposure,
tho'.
Still, if you need more time, please do look at what mpol_new() returns
for MPOL_DEFAULT and how that result gets used. From my investigations,
system default policy is the only place where MPOL_DEFAULT occurs in a
struct mempolicy. Well, that and when we return a mempolicy to the kmem
cache--we null out the policy member with MPOL_DEFAULT. I've "fixed"
that, too.
Later,
Lee
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2007-08-16 19:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-14 19:44 [PATCH] Use MPOL_PREFERRED for system default policy Lee Schermerhorn
2007-08-14 19:51 ` Christoph Lameter
2007-08-14 20:09 ` Lee Schermerhorn
2007-08-14 20:22 ` Lee Schermerhorn
2007-08-16 14:23 ` Lee Schermerhorn
2007-08-16 18:34 ` Christoph Lameter
2007-08-16 19:06 ` Lee Schermerhorn [this message]
2007-08-16 20:49 ` Christoph Lameter
2007-08-16 21:05 ` Lee Schermerhorn
2007-08-16 21:10 ` Christoph Lameter
2007-08-21 16:00 ` Lee Schermerhorn
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=1187291219.5900.36.camel@localhost \
--to=lee.schermerhorn@hp.com \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=clameter@sgi.com \
--cc=eric.whitney@hp.com \
--cc=linux-mm@kvack.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.