diff options
author | Arve Hjønnevåg <arve@android.com> | 2009-02-17 14:51:02 -0800 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2010-02-03 20:48:13 -0800 |
commit | c177d04116de6acff4d41706df54cf6c909aa5a2 (patch) | |
tree | acf20a7a8a150393814a99014e18b5041aae04ab /kernel | |
parent | 7725dd9abd08371ccab1025e5b7b77bd5a206e73 (diff) |
mm: Add min_free_order_shift tunable.
By default the kernel tries to keep half as much memory free at each
order as it does for one order below. This can be too agressive when
running without swap.
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sysctl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 0d949c517412..79d527a99561 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -79,6 +79,7 @@ extern char core_pattern[]; extern unsigned int core_pipe_limit; extern int pid_max; extern int min_free_kbytes; +extern int min_free_order_shift; extern int pid_max_min, pid_max_max; extern int sysctl_drop_caches; extern int percpu_pagelist_fraction; @@ -1229,6 +1230,14 @@ static struct ctl_table vm_table[] = { .extra1 = &zero, }, { + .ctl_name = CTL_UNNUMBERED, + .procname = "min_free_order_shift", + .data = &min_free_order_shift, + .maxlen = sizeof(min_free_order_shift), + .mode = 0644, + .proc_handler = &proc_dointvec + }, + { .ctl_name = VM_PERCPU_PAGELIST_FRACTION, .procname = "percpu_pagelist_fraction", .data = &percpu_pagelist_fraction, |