aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2014-01-23 18:53:13 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-23 19:36:51 -0500
commit54a43d54988a3731d644fdeb7a1d6f46b4ac64c7 (patch)
tree87dc618d08b23d042e3ea01b3acbc56a0358cbdb /mm/mempolicy.c
parent5e270e254885893f8c82ab9b91caa648af3690df (diff)
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>
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r--mm/mempolicy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 0cd2c4d4e270..947293e76533 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -2668,7 +2668,7 @@ static void __init check_numabalancing_enable(void)
2668 2668
2669 if (nr_node_ids > 1 && !numabalancing_override) { 2669 if (nr_node_ids > 1 && !numabalancing_override) {
2670 printk(KERN_INFO "Enabling automatic NUMA balancing. " 2670 printk(KERN_INFO "Enabling automatic NUMA balancing. "
2671 "Configure with numa_balancing= or sysctl"); 2671 "Configure with numa_balancing= or the kernel.numa_balancing sysctl");
2672 set_numabalancing_state(numabalancing_default); 2672 set_numabalancing_state(numabalancing_default);
2673 } 2673 }
2674} 2674}