numa: add a sysctl for numa_balancing
authorAndi Kleen <ak@linux.intel.com>
Thu, 23 Jan 2014 23:53:13 +0000 (15:53 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:51 +0000 (16:36 -0800)
commit54a43d54988a3731d644fdeb7a1d6f46b4ac64c7
tree87dc618d08b23d042e3ea01b3acbc56a0358cbdb
parent5e270e254885893f8c82ab9b91caa648af3690df
numa: add a sysctl for numa_balancing

Add a working sysctl to enable/disable automatic numa memory balancing
at runtime.

This allows us to track down performance problems with this feature and
is generally a good idea.

This was possible earlier through debugfs, but only with special
debugging options set.  Also fix the boot message.

[akpm@linux-foundation.org: s/sched_numa_balancing/sysctl_numa_balancing/]
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/sched/sysctl.h
kernel/sched/core.c
kernel/sysctl.c
mm/mempolicy.c