From e93368772e7c18f0a6f4b0021ec5667122e8000d Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Thu, 18 Feb 2010 12:29:23 +0000 Subject: [PATCH] --- yaml --- r: 196606 b: refs/heads/master c: 27f10907b7cca57df5e2a9c94c14354dd1b7879d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/powerpc/include/asm/topology.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 7a1070ed1ce4..3cba3f8868f2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7429b3842cfb2b8ef5d333d8f680d80f8f7c787f +refs/heads/master: 27f10907b7cca57df5e2a9c94c14354dd1b7879d diff --git a/trunk/arch/powerpc/include/asm/topology.h b/trunk/arch/powerpc/include/asm/topology.h index 8eaec310a25b..a7d769491555 100644 --- a/trunk/arch/powerpc/include/asm/topology.h +++ b/trunk/arch/powerpc/include/asm/topology.h @@ -8,6 +8,16 @@ struct device_node; #ifdef CONFIG_NUMA +/* + * Before going off node we want the VM to try and reclaim from the local + * node. It does this if the remote distance is larger than RECLAIM_DISTANCE. + * With the default REMOTE_DISTANCE of 20 and the default RECLAIM_DISTANCE of + * 20, we never reclaim and go off node straight away. + * + * To fix this we choose a smaller value of RECLAIM_DISTANCE. + */ +#define RECLAIM_DISTANCE 10 + #include static inline int cpu_to_node(int cpu)