[GIT PULL] SLUB fixes for 2.6.27-rc4

Previous thread: [BUG] cpufreq: constant cpu_khz by Peter Zijlstra on Sunday, August 24, 2008 - 11:33 pm. (8 messages)

Next thread: [RFC] [Patch 1/1] [Self Ptrace] System call notification with self_ptrace by Pierre Morel on Monday, August 25, 2008 - 12:34 am. (11 messages)
From: Pekka J Enberg
Date: Monday, August 25, 2008 - 12:32 am

Hi Linus,

Please pull the latest SLAB git tree from:

  git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6.git for-linus

Changes:

  - Fix for excessive memory use by SLUB on NUMA when running 
    hackbench (Christoph Lameter)

                Pekka

Christoph Lameter (1):
      slub: Disable NUMA remote node defragmentation by default

 mm/slub.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/slub.c b/mm/slub.c
index 4f5b961..fb486d5 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2312,7 +2312,7 @@ static int kmem_cache_open(struct kmem_cache *s, gfp_t gfpflags,
 
 	s->refcount = 1;
 #ifdef CONFIG_NUMA
-	s->remote_node_defrag_ratio = 100;
+	s->remote_node_defrag_ratio = 1000;
 #endif
 	if (!init_kmem_cache_nodes(s, gfpflags & ~SLUB_DMA))
 		goto error;
@@ -4058,7 +4058,7 @@ static ssize_t remote_node_defrag_ratio_store(struct kmem_cache *s,
 	if (err)
 		return err;
 
-	if (ratio < 100)
+	if (ratio <= 100)
 		s->remote_node_defrag_ratio = ratio * 10;
 
 	return length;
--

Previous thread: [BUG] cpufreq: constant cpu_khz by Peter Zijlstra on Sunday, August 24, 2008 - 11:33 pm. (8 messages)

Next thread: [RFC] [Patch 1/1] [Self Ptrace] System call notification with self_ptrace by Pierre Morel on Monday, August 25, 2008 - 12:34 am. (11 messages)