diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-12-14 03:17:58 -0800 |
|---|---|---|
| committer | Jaroslav Kysela <perex@suse.cz> | 2002-12-14 03:17:58 -0800 |
| commit | c18592135f19933d4509328d6c9923731b06ed69 (patch) | |
| tree | 8b7faf88c1c390c8372bdde4a0ceb94ea9dd3bde /include/linux/sysctl.h | |
| parent | 20b96b5225db64dbc4b1226a46dfdb9fd659deb7 (diff) | |
[PATCH] Add /proc/sys/vm/lower_zone_protection
This allows us to control the aggressiveness of the lower-zone defense
algorithm. The `incremental min'. For workloads which are using a
serious amount of mlocked memory, a few megabytes is not enough.
So the `lower_zone_protection' tunable allows the administrator to
increase the amount of protection which lower zones receive against
allocations which _could_ use higher zones.
The default value of lower_zone_protection is zero, giving unchanged
behaviour. We should not normally make large amounts of memory
unavailable for pagecache just in case someone mlocks many hundreds of
megabytes.
Diffstat (limited to 'include/linux/sysctl.h')
| -rw-r--r-- | include/linux/sysctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index e70fc2ef0856..0b905659ac4b 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h @@ -154,6 +154,7 @@ enum VM_PAGEBUF=17, /* struct: Control pagebuf parameters */ VM_HUGETLB_PAGES=18, /* int: Number of available Huge Pages */ VM_SWAPPINESS=19, /* Tendency to steal mapped memory */ + VM_LOWER_ZONE_PROTECTION=20,/* Amount of protection of lower zones */ }; |
