diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-01-18 20:42:32 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-18 22:20:17 -0500 |
commit | 1743660b911bfb849b1fb33830522254561b9f9b (patch) | |
tree | 82bfd84f534e7a571667916f90e2492c7148cbac /kernel | |
parent | 9eeff2395e3cfd05c9b2e6074ff943a34b0c5c21 (diff) |
[PATCH] Zone reclaim: proc override
proc support for zone reclaim
This patch creates a proc entry /proc/sys/vm/zone_reclaim_mode that may be
used to override the automatic determination of the zone reclaim made on
bootup.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sysctl.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index f5d69b6e29f5..cb99a42f8b37 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -870,6 +870,17 @@ static ctl_table vm_table[] = { | |||
870 | .strategy = &sysctl_jiffies, | 870 | .strategy = &sysctl_jiffies, |
871 | }, | 871 | }, |
872 | #endif | 872 | #endif |
873 | #ifdef CONFIG_NUMA | ||
874 | { | ||
875 | .ctl_name = VM_ZONE_RECLAIM_MODE, | ||
876 | .procname = "zone_reclaim_mode", | ||
877 | .data = &zone_reclaim_mode, | ||
878 | .maxlen = sizeof(zone_reclaim_mode), | ||
879 | .mode = 0644, | ||
880 | .proc_handler = &proc_dointvec, | ||
881 | .strategy = &zero, | ||
882 | }, | ||
883 | #endif | ||
873 | { .ctl_name = 0 } | 884 | { .ctl_name = 0 } |
874 | }; | 885 | }; |
875 | 886 | ||