From: Christoph Lameter Zone reclaim is usually only run on the local node. Headless nodes do not have any local processors. This patch checks for headless nodes and performs zone reclaim on them. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton --- mm/vmscan.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN mm/vmscan.c~zone_reclaim-reclaim-on-memory-only-node-support mm/vmscan.c --- 25/mm/vmscan.c~zone_reclaim-reclaim-on-memory-only-node-support Thu Jan 19 15:29:25 2006 +++ 25-akpm/mm/vmscan.c Thu Jan 19 15:29:25 2006 @@ -1605,7 +1605,8 @@ int zone_reclaim(struct zone *zone, gfp_ return 0; if (!(gfp_mask & __GFP_WAIT) || - zone->zone_pgdat->node_id != numa_node_id() || + (!cpus_empty(node_to_cpumask(zone->zone_pgdat->node_id)) && + zone->zone_pgdat->node_id != numa_node_id()) || zone->all_unreclaimable || atomic_read(&zone->reclaim_in_progress) > 0) return 0; _