From 0cd373e6002cf27a4da717492ddc1b2590d2aca6 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Sun, 16 May 2010 20:19:56 +0000 Subject: [PATCH] --- yaml --- r: 196671 b: refs/heads/master c: 56608209d34b8add40af54031d4e420afbcde9f6 h: refs/heads/master i: 196669: 9f5475f30edc40ecf7919d53babdd781b1f30d95 196667: de1d9ef4c2048d7b68393b3f5959d984a959e98d 196663: ff3b9f1f5ee57952a3642c1130ac29eb6d15303a 196655: a3f5124d4a3c4e642289a982a67ea953f53ec567 196639: 378e464a514f5e3b2d1127357e11ad65f1a0f683 196607: 01bac5e5a8414a3908aa50d1e83fbc56ad7584c3 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 cff9ddcb5db8..6078ea5f63bb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b878dc00595440586874952dd85ce9b803360b87 +refs/heads/master: 56608209d34b8add40af54031d4e420afbcde9f6 diff --git a/trunk/arch/powerpc/include/asm/topology.h b/trunk/arch/powerpc/include/asm/topology.h index 84ad11f65dc2..32adf7280720 100644 --- a/trunk/arch/powerpc/include/asm/topology.h +++ b/trunk/arch/powerpc/include/asm/topology.h @@ -18,6 +18,16 @@ struct device_node; */ #define RECLAIM_DISTANCE 10 +/* + * 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)