mirror of https://gitee.com/openkylin/linux.git
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 <clameter@sgi.com> Acked-by: Nishanth Aravamudan <nacc@us.ibm.com> Tested-by: Lee Schermerhorn <lee.schermerhorn@hp.com> Acked-by: Bob Picco <bob.picco@hp.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Mel Gorman <mel@skynet.ie> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ee31af5d64
commit
9422ffba4a
|
@ -1733,7 +1733,7 @@ static int __init kswapd_init(void)
|
||||||
int nid;
|
int nid;
|
||||||
|
|
||||||
swap_setup();
|
swap_setup();
|
||||||
for_each_online_node(nid)
|
for_each_node_state(nid, N_HIGH_MEMORY)
|
||||||
kswapd_run(nid);
|
kswapd_run(nid);
|
||||||
hotcpu_notifier(cpu_callback, 0);
|
hotcpu_notifier(cpu_callback, 0);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue