diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-27 17:33:06 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-27 17:33:06 -0400 |
| commit | e4268bd3b2b0380faaa62fad3e8d705eea21d124 (patch) | |
| tree | de2b8900714a27bd2f889b77397d76be21fcbb20 | |
| parent | 5b51a7e9d84f19df4d532ebf5624dbb8ad0d6c9c (diff) | |
| parent | e2cb96b7ecba46888cf00252ffdb8ef1e92c4258 (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6:
slub: Disable NUMA remote node defragmentation by default
| -rw-r--r-- | mm/slub.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -2312,7 +2312,7 @@ static int kmem_cache_open(struct kmem_cache *s, gfp_t gfpflags, | |||
| 2312 | 2312 | ||
| 2313 | s->refcount = 1; | 2313 | s->refcount = 1; |
| 2314 | #ifdef CONFIG_NUMA | 2314 | #ifdef CONFIG_NUMA |
| 2315 | s->remote_node_defrag_ratio = 100; | 2315 | s->remote_node_defrag_ratio = 1000; |
| 2316 | #endif | 2316 | #endif |
| 2317 | if (!init_kmem_cache_nodes(s, gfpflags & ~SLUB_DMA)) | 2317 | if (!init_kmem_cache_nodes(s, gfpflags & ~SLUB_DMA)) |
| 2318 | goto error; | 2318 | goto error; |
| @@ -4058,7 +4058,7 @@ static ssize_t remote_node_defrag_ratio_store(struct kmem_cache *s, | |||
| 4058 | if (err) | 4058 | if (err) |
| 4059 | return err; | 4059 | return err; |
| 4060 | 4060 | ||
| 4061 | if (ratio < 100) | 4061 | if (ratio <= 100) |
| 4062 | s->remote_node_defrag_ratio = ratio * 10; | 4062 | s->remote_node_defrag_ratio = ratio * 10; |
| 4063 | 4063 | ||
| 4064 | return length; | 4064 | return length; |
