[PATCH] drop-pagecache
[deliverable/linux.git] / Documentation / sysctl / vm.txt
CommitLineData
1da177e4
LT
1Documentation for /proc/sys/vm/* kernel version 2.2.10
2 (c) 1998, 1999, Rik van Riel <riel@nl.linux.org>
3
4For general info and legal blurb, please look in README.
5
6==============================================================
7
8This file contains the documentation for the sysctl files in
9/proc/sys/vm and is valid for Linux kernel version 2.2.
10
11The files in this directory can be used to tune the operation
12of the virtual memory (VM) subsystem of the Linux kernel and
13the writeout of dirty data to disk.
14
15Default values and initialization routines for most of these
16files can be found in mm/swap.c.
17
18Currently, these files are in /proc/sys/vm:
19- overcommit_memory
20- page-cluster
21- dirty_ratio
22- dirty_background_ratio
23- dirty_expire_centisecs
24- dirty_writeback_centisecs
25- max_map_count
26- min_free_kbytes
27- laptop_mode
28- block_dump
9d0243bc 29- drop-caches
1da177e4
LT
30
31==============================================================
32
33dirty_ratio, dirty_background_ratio, dirty_expire_centisecs,
34dirty_writeback_centisecs, vfs_cache_pressure, laptop_mode,
9d0243bc 35block_dump, swap_token_timeout, drop-caches:
1da177e4
LT
36
37See Documentation/filesystems/proc.txt
38
39==============================================================
40
41overcommit_memory:
42
43This value contains a flag that enables memory overcommitment.
44
45When this flag is 0, the kernel attempts to estimate the amount
46of free memory left when userspace requests more memory.
47
48When this flag is 1, the kernel pretends there is always enough
49memory until it actually runs out.
50
51When this flag is 2, the kernel uses a "never overcommit"
52policy that attempts to prevent any overcommit of memory.
53
54This feature can be very useful because there are a lot of
55programs that malloc() huge amounts of memory "just-in-case"
56and don't use much of it.
57
58The default value is 0.
59
60See Documentation/vm/overcommit-accounting and
61security/commoncap.c::cap_vm_enough_memory() for more information.
62
63==============================================================
64
65overcommit_ratio:
66
67When overcommit_memory is set to 2, the committed address
68space is not permitted to exceed swap plus this percentage
69of physical RAM. See above.
70
71==============================================================
72
73page-cluster:
74
75The Linux VM subsystem avoids excessive disk seeks by reading
76multiple pages on a page fault. The number of pages it reads
77is dependent on the amount of memory in your machine.
78
79The number of pages the kernel reads in at once is equal to
802 ^ page-cluster. Values above 2 ^ 5 don't make much sense
81for swap because we only cluster swap data in 32-page groups.
82
83==============================================================
84
85max_map_count:
86
87This file contains the maximum number of memory map areas a process
88may have. Memory map areas are used as a side-effect of calling
89malloc, directly by mmap and mprotect, and also when loading shared
90libraries.
91
92While most applications need less than a thousand maps, certain
93programs, particularly malloc debuggers, may consume lots of them,
94e.g., up to one or two maps per allocation.
95
96The default value is 65536.
97
98==============================================================
99
100min_free_kbytes:
101
102This is used to force the Linux VM to keep a minimum number
103of kilobytes free. The VM uses this number to compute a pages_min
104value for each lowmem zone in the system. Each lowmem zone gets
105a number of reserved free pages based proportionally on its size.
This page took 0.168235 seconds and 5 git commands to generate.