LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: David Rientjes <rientjes@google.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Andi Kleen <ak@suse.de>, Paul Menage <menage@google.com>,
Rohit Seth <rohitseth@google.com>,
linux-kernel@vger.kernel.org
Subject: [patch -mm 6/7] x86_64: disable alien cache for fake numa
Date: Wed, 31 Jan 2007 07:18:24 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.64.0701302226040.23658@chino.kir.corp.google.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0701302225390.23658@chino.kir.corp.google.com>
Disables using alien cache for slab when NUMA emulation is being used.
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Paul Menage <menage@google.com>
Signed-off-by: David Rientjes <rientjes@google.com>
---
arch/x86_64/mm/numa.c | 2 ++
mm/slab.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/x86_64/mm/numa.c b/arch/x86_64/mm/numa.c
index 97b7be4..7edb1b8 100644
--- a/arch/x86_64/mm/numa.c
+++ b/arch/x86_64/mm/numa.c
@@ -280,6 +280,7 @@ void __init numa_init_array(void)
PAGE_SHIFT)
static struct bootnode physical_node_map[MAX_NUMNODES];
+extern int use_alien_caches;
char *cmdline __initdata;
int numa_emu;
@@ -512,6 +513,7 @@ out:
nodes[i].end >> PAGE_SHIFT);
setup_node_bootmem(i, nodes[i].start, nodes[i].end);
}
+ use_alien_caches = 0;
numa_init_array();
return 0;
}
diff --git a/mm/slab.c b/mm/slab.c
index 22bad53..0e68246 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -889,7 +889,7 @@ static void __slab_error(const char *function, struct kmem_cache *cachep,
* line
*/
-static int use_alien_caches __read_mostly = 1;
+int use_alien_caches __read_mostly = 1;
static int __init noaliencache_setup(char *s)
{
use_alien_caches = 0;
next prev parent reply other threads:[~2007-01-31 15:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-31 15:17 [patch -mm 1/7] x86_64: configurable fake numa node sizes David Rientjes
2007-01-31 15:17 ` [patch -mm 2/7] x86_64: split remaining fake nodes equally David Rientjes
2007-01-31 15:18 ` [patch -mm 3/7] x86_64: fixed-size remaining fake nodes David Rientjes
2007-01-31 15:18 ` [patch -mm 4/7] x86_64: fake numa for cpusets document David Rientjes
2007-01-31 15:18 ` [patch -mm 5/7] x86_64: map fake nodes to real nodes David Rientjes
2007-01-31 15:18 ` David Rientjes [this message]
2007-01-31 15:18 ` [patch -mm 7/7] x86_64: export physnode mapping to userspace 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=Pine.LNX.4.64.0701302226040.23658@chino.kir.corp.google.com \
--to=rientjes@google.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=menage@google.com \
--cc=rohitseth@google.com \
--subject='Re: [patch -mm 6/7] x86_64: disable alien cache for fake numa' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).