Memoryless nodes: No need for kswapd A node without memory does not need a kswapd. So use the memory map instead of the online map when starting kswapd. Signed-off-by: Christoph Lameter Acked-by: Nishanth Aravamudan Tested-by: Lee Schermerhorn Acked-by: Bob Picco --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.23-rc1-mm2/mm/vmscan.c =================================================================== --- linux-2.6.23-rc1-mm2.orig/mm/vmscan.c 2007-08-03 16:31:50.000000000 -0700 +++ linux-2.6.23-rc1-mm2/mm/vmscan.c 2007-08-03 16:35:08.000000000 -0700 @@ -1716,7 +1716,7 @@ static int __init kswapd_init(void) int nid; swap_setup(); - for_each_online_node(nid) + for_each_node_state(nid, N_HIGH_MEMORY) kswapd_run(nid); hotcpu_notifier(cpu_callback, 0); return 0;