blob: b716d33912d8a02b219b6c39e0270c01b7b733a4 [file] [log] [blame]
Peter W Morrealedb0fb182009-01-15 13:50:42 -08001Documentation for /proc/sys/vm/* kernel version 2.6.29
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 (c) 1998, 1999, Rik van Riel <riel@nl.linux.org>
Peter W Morrealedb0fb182009-01-15 13:50:42 -08003 (c) 2008 Peter W. Morreale <pmorreale@novell.com>
Linus Torvalds1da177e2005-04-16 15:20:36 -07004
5For general info and legal blurb, please look in README.
6
7==============================================================
8
9This file contains the documentation for the sysctl files in
Peter W Morrealedb0fb182009-01-15 13:50:42 -080010/proc/sys/vm and is valid for Linux kernel version 2.6.29.
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
12The files in this directory can be used to tune the operation
13of the virtual memory (VM) subsystem of the Linux kernel and
14the writeout of dirty data to disk.
15
16Default values and initialization routines for most of these
17files can be found in mm/swap.c.
18
19Currently, these files are in /proc/sys/vm:
Peter W Morrealedb0fb182009-01-15 13:50:42 -080020
21- block_dump
22- dirty_background_bytes
Linus Torvalds1da177e2005-04-16 15:20:36 -070023- dirty_background_ratio
Peter W Morrealedb0fb182009-01-15 13:50:42 -080024- dirty_bytes
Linus Torvalds1da177e2005-04-16 15:20:36 -070025- dirty_expire_centisecs
Peter W Morrealedb0fb182009-01-15 13:50:42 -080026- dirty_ratio
Linus Torvalds1da177e2005-04-16 15:20:36 -070027- dirty_writeback_centisecs
Peter W Morrealedb0fb182009-01-15 13:50:42 -080028- drop_caches
29- hugepages_treat_as_movable
30- hugetlb_shm_group
31- laptop_mode
32- legacy_va_layout
33- lowmem_reserve_ratio
Linus Torvalds1da177e2005-04-16 15:20:36 -070034- max_map_count
35- min_free_kbytes
Christoph Lameter0ff38492006-09-25 23:31:52 -070036- min_slab_ratio
Peter W Morrealedb0fb182009-01-15 13:50:42 -080037- min_unmapped_ratio
38- mmap_min_addr
Nishanth Aravamudand5dbac82007-12-17 16:20:25 -080039- nr_hugepages
40- nr_overcommit_hugepages
Peter W Morrealedb0fb182009-01-15 13:50:42 -080041- nr_pdflush_threads
Peter W Morrealefafd6882009-04-06 19:00:29 -070042- nr_pdflush_threads_min
43- nr_pdflush_threads_max
Peter W Morrealedb0fb182009-01-15 13:50:42 -080044- nr_trim_pages (only if CONFIG_MMU=n)
45- numa_zonelist_order
46- oom_dump_tasks
47- oom_kill_allocating_task
48- overcommit_memory
49- overcommit_ratio
50- page-cluster
51- panic_on_oom
52- percpu_pagelist_fraction
53- stat_interval
54- swappiness
55- vfs_cache_pressure
56- zone_reclaim_mode
57
Linus Torvalds1da177e2005-04-16 15:20:36 -070058
59==============================================================
60
Peter W Morrealedb0fb182009-01-15 13:50:42 -080061block_dump
Linus Torvalds1da177e2005-04-16 15:20:36 -070062
Peter W Morrealedb0fb182009-01-15 13:50:42 -080063block_dump enables block I/O debugging when set to a nonzero value. More
64information on block I/O debugging is in Documentation/laptops/laptop-mode.txt.
Linus Torvalds1da177e2005-04-16 15:20:36 -070065
66==============================================================
67
Peter W Morrealedb0fb182009-01-15 13:50:42 -080068dirty_background_bytes
Linus Torvalds1da177e2005-04-16 15:20:36 -070069
Peter W Morrealedb0fb182009-01-15 13:50:42 -080070Contains the amount of dirty memory at which the pdflush background writeback
71daemon will start writeback.
Linus Torvalds1da177e2005-04-16 15:20:36 -070072
Peter W Morrealedb0fb182009-01-15 13:50:42 -080073If dirty_background_bytes is written, dirty_background_ratio becomes a function
74of its value (dirty_background_bytes / the amount of dirtyable system memory).
Linus Torvalds1da177e2005-04-16 15:20:36 -070075
76==============================================================
77
Peter W Morrealedb0fb182009-01-15 13:50:42 -080078dirty_background_ratio
Linus Torvalds1da177e2005-04-16 15:20:36 -070079
Peter W Morrealedb0fb182009-01-15 13:50:42 -080080Contains, as a percentage of total system memory, the number of pages at which
81the pdflush background writeback daemon will start writing out dirty data.
Linus Torvalds1da177e2005-04-16 15:20:36 -070082
83==============================================================
84
Peter W Morrealedb0fb182009-01-15 13:50:42 -080085dirty_bytes
Linus Torvalds1da177e2005-04-16 15:20:36 -070086
Peter W Morrealedb0fb182009-01-15 13:50:42 -080087Contains the amount of dirty memory at which a process generating disk writes
88will itself start writeback.
Linus Torvalds1da177e2005-04-16 15:20:36 -070089
Peter W Morrealedb0fb182009-01-15 13:50:42 -080090If dirty_bytes is written, dirty_ratio becomes a function of its value
91(dirty_bytes / the amount of dirtyable system memory).
92
Andrea Righi9e4a5bd2009-04-30 15:08:57 -070093Note: the minimum value allowed for dirty_bytes is two pages (in bytes); any
94value lower than this limit will be ignored and the old configuration will be
95retained.
96
Peter W Morrealedb0fb182009-01-15 13:50:42 -080097==============================================================
98
99dirty_expire_centisecs
100
101This tunable is used to define when dirty data is old enough to be eligible
102for writeout by the pdflush daemons. It is expressed in 100'ths of a second.
103Data which has been dirty in-memory for longer than this interval will be
104written out next time a pdflush daemon wakes up.
105
106==============================================================
107
108dirty_ratio
109
110Contains, as a percentage of total system memory, the number of pages at which
111a process which is generating disk writes will itself start writing out dirty
112data.
113
114==============================================================
115
116dirty_writeback_centisecs
117
118The pdflush writeback daemons will periodically wake up and write `old' data
119out to disk. This tunable expresses the interval between those wakeups, in
120100'ths of a second.
121
122Setting this to zero disables periodic writeback altogether.
123
124==============================================================
125
126drop_caches
127
128Writing to this will cause the kernel to drop clean caches, dentries and
129inodes from memory, causing that memory to become free.
130
131To free pagecache:
132 echo 1 > /proc/sys/vm/drop_caches
133To free dentries and inodes:
134 echo 2 > /proc/sys/vm/drop_caches
135To free pagecache, dentries and inodes:
136 echo 3 > /proc/sys/vm/drop_caches
137
138As this is a non-destructive operation and dirty objects are not freeable, the
139user should run `sync' first.
140
141==============================================================
142
143hugepages_treat_as_movable
144
145This parameter is only useful when kernelcore= is specified at boot time to
146create ZONE_MOVABLE for pages that may be reclaimed or migrated. Huge pages
147are not movable so are not normally allocated from ZONE_MOVABLE. A non-zero
148value written to hugepages_treat_as_movable allows huge pages to be allocated
149from ZONE_MOVABLE.
150
151Once enabled, the ZONE_MOVABLE is treated as an area of memory the huge
152pages pool can easily grow or shrink within. Assuming that applications are
153not running that mlock() a lot of memory, it is likely the huge pages pool
154can grow to the size of ZONE_MOVABLE by repeatedly entering the desired value
155into nr_hugepages and triggering page reclaim.
156
157==============================================================
158
159hugetlb_shm_group
160
161hugetlb_shm_group contains group id that is allowed to create SysV
162shared memory segment using hugetlb page.
163
164==============================================================
165
166laptop_mode
167
168laptop_mode is a knob that controls "laptop mode". All the things that are
169controlled by this knob are discussed in Documentation/laptops/laptop-mode.txt.
170
171==============================================================
172
173legacy_va_layout
174
175If non-zero, this sysctl disables the new 32-bit mmap mmap layout - the kernel
176will use the legacy (2.4) layout for all processes.
177
178==============================================================
179
180lowmem_reserve_ratio
181
182For some specialised workloads on highmem machines it is dangerous for
183the kernel to allow process memory to be allocated from the "lowmem"
184zone. This is because that memory could then be pinned via the mlock()
185system call, or by unavailability of swapspace.
186
187And on large highmem machines this lack of reclaimable lowmem memory
188can be fatal.
189
190So the Linux page allocator has a mechanism which prevents allocations
191which _could_ use highmem from using too much lowmem. This means that
192a certain amount of lowmem is defended from the possibility of being
193captured into pinned user memory.
194
195(The same argument applies to the old 16 megabyte ISA DMA region. This
196mechanism will also defend that region from allocations which could use
197highmem or lowmem).
198
199The `lowmem_reserve_ratio' tunable determines how aggressive the kernel is
200in defending these lower zones.
201
202If you have a machine which uses highmem or ISA DMA and your
203applications are using mlock(), or if you are running with no swap then
204you probably should change the lowmem_reserve_ratio setting.
205
206The lowmem_reserve_ratio is an array. You can see them by reading this file.
207-
208% cat /proc/sys/vm/lowmem_reserve_ratio
209256 256 32
210-
211Note: # of this elements is one fewer than number of zones. Because the highest
212 zone's value is not necessary for following calculation.
213
214But, these values are not used directly. The kernel calculates # of protection
215pages for each zones from them. These are shown as array of protection pages
216in /proc/zoneinfo like followings. (This is an example of x86-64 box).
217Each zone has an array of protection pages like this.
218
219-
220Node 0, zone DMA
221 pages free 1355
222 min 3
223 low 3
224 high 4
225 :
226 :
227 numa_other 0
228 protection: (0, 2004, 2004, 2004)
229 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
230 pagesets
231 cpu: 0 pcp: 0
232 :
233-
234These protections are added to score to judge whether this zone should be used
235for page allocation or should be reclaimed.
236
237In this example, if normal pages (index=2) are required to this DMA zone and
238pages_high is used for watermark, the kernel judges this zone should not be
239used because pages_free(1355) is smaller than watermark + protection[2]
240(4 + 2004 = 2008). If this protection value is 0, this zone would be used for
241normal page requirement. If requirement is DMA zone(index=0), protection[0]
242(=0) is used.
243
244zone[i]'s protection[j] is calculated by following expression.
245
246(i < j):
247 zone[i]->protection[j]
248 = (total sums of present_pages from zone[i+1] to zone[j] on the node)
249 / lowmem_reserve_ratio[i];
250(i = j):
251 (should not be protected. = 0;
252(i > j):
253 (not necessary, but looks 0)
254
255The default values of lowmem_reserve_ratio[i] are
256 256 (if zone[i] means DMA or DMA32 zone)
257 32 (others).
258As above expression, they are reciprocal number of ratio.
259256 means 1/256. # of protection pages becomes about "0.39%" of total present
260pages of higher zones on the node.
261
262If you would like to protect more pages, smaller values are effective.
263The minimum value is 1 (1/1 -> 100%).
Linus Torvalds1da177e2005-04-16 15:20:36 -0700264
265==============================================================
266
267max_map_count:
268
269This file contains the maximum number of memory map areas a process
270may have. Memory map areas are used as a side-effect of calling
271malloc, directly by mmap and mprotect, and also when loading shared
272libraries.
273
274While most applications need less than a thousand maps, certain
275programs, particularly malloc debuggers, may consume lots of them,
276e.g., up to one or two maps per allocation.
277
278The default value is 65536.
279
280==============================================================
281
282min_free_kbytes:
283
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800284This is used to force the Linux VM to keep a minimum number
Linus Torvalds1da177e2005-04-16 15:20:36 -0700285of kilobytes free. The VM uses this number to compute a pages_min
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800286value for each lowmem zone in the system. Each lowmem zone gets
Linus Torvalds1da177e2005-04-16 15:20:36 -0700287a number of reserved free pages based proportionally on its size.
Rohit Seth8ad4b1f2006-01-08 01:00:40 -0800288
Matt LaPlanted9195882008-07-25 19:45:33 -0700289Some minimal amount of memory is needed to satisfy PF_MEMALLOC
Pavel Machek24950892007-10-16 23:31:28 -0700290allocations; if you set this to lower than 1024KB, your system will
291become subtly broken, and prone to deadlock under high loads.
292
293Setting this too high will OOM your machine instantly.
294
Christoph Lameter96146342006-07-03 00:24:13 -0700295=============================================================
296
Christoph Lameter0ff38492006-09-25 23:31:52 -0700297min_slab_ratio:
298
299This is available only on NUMA kernels.
300
301A percentage of the total pages in each zone. On Zone reclaim
302(fallback from the local zone occurs) slabs will be reclaimed if more
303than this percentage of pages in a zone are reclaimable slab pages.
304This insures that the slab growth stays under control even in NUMA
305systems that rarely perform global reclaim.
306
307The default is 5 percent.
308
309Note that slab reclaim is triggered in a per zone / node fashion.
310The process of reclaiming slab memory is currently not node specific
311and may not be fast.
312
313=============================================================
314
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800315min_unmapped_ratio:
KAMEZAWA Hiroyukifadd8fb2006-06-23 02:03:13 -0700316
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800317This is available only on NUMA kernels.
Yasunori Goto2b744c02007-05-06 14:49:59 -0700318
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800319A percentage of the total pages in each zone. Zone reclaim will only
320occur if more than this percentage of pages are file backed and unmapped.
321This is to insure that a minimal amount of local pages is still available for
322file I/O even if the node is overallocated.
Yasunori Goto2b744c02007-05-06 14:49:59 -0700323
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800324The default is 1 percent.
David Rientjesfe071d72007-10-16 23:25:56 -0700325
Eric Parised032182007-06-28 15:55:21 -0400326==============================================================
327
328mmap_min_addr
329
330This file indicates the amount of address space which a user process will
331be restricted from mmaping. Since kernel null dereference bugs could
332accidentally operate based on the information in the first couple of pages
333of memory userspace processes should not be allowed to write to them. By
334default this value is set to 0 and no protections will be enforced by the
335security module. Setting this value to something like 64k will allow the
336vast majority of applications to work correctly and provide defense in depth
337against future potential kernel bugs.
338
KAMEZAWA Hiroyukif0c0b2b2007-07-15 23:38:01 -0700339==============================================================
340
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800341nr_hugepages
342
343Change the minimum size of the hugepage pool.
344
345See Documentation/vm/hugetlbpage.txt
346
347==============================================================
348
349nr_overcommit_hugepages
350
351Change the maximum size of the hugepage pool. The maximum is
352nr_hugepages + nr_overcommit_hugepages.
353
354See Documentation/vm/hugetlbpage.txt
355
356==============================================================
357
358nr_pdflush_threads
359
360The current number of pdflush threads. This value is read-only.
361The value changes according to the number of dirty pages in the system.
362
363When neccessary, additional pdflush threads are created, one per second, up to
364nr_pdflush_threads_max.
365
366==============================================================
367
368nr_trim_pages
369
370This is available only on NOMMU kernels.
371
372This value adjusts the excess page trimming behaviour of power-of-2 aligned
373NOMMU mmap allocations.
374
375A value of 0 disables trimming of allocations entirely, while a value of 1
376trims excess pages aggressively. Any value >= 1 acts as the watermark where
377trimming of allocations is initiated.
378
379The default value is 1.
380
381See Documentation/nommu-mmap.txt for more information.
382
383==============================================================
384
KAMEZAWA Hiroyukif0c0b2b2007-07-15 23:38:01 -0700385numa_zonelist_order
386
387This sysctl is only for NUMA.
388'where the memory is allocated from' is controlled by zonelists.
389(This documentation ignores ZONE_HIGHMEM/ZONE_DMA32 for simple explanation.
390 you may be able to read ZONE_DMA as ZONE_DMA32...)
391
392In non-NUMA case, a zonelist for GFP_KERNEL is ordered as following.
393ZONE_NORMAL -> ZONE_DMA
394This means that a memory allocation request for GFP_KERNEL will
395get memory from ZONE_DMA only when ZONE_NORMAL is not available.
396
397In NUMA case, you can think of following 2 types of order.
398Assume 2 node NUMA and below is zonelist of Node(0)'s GFP_KERNEL
399
400(A) Node(0) ZONE_NORMAL -> Node(0) ZONE_DMA -> Node(1) ZONE_NORMAL
401(B) Node(0) ZONE_NORMAL -> Node(1) ZONE_NORMAL -> Node(0) ZONE_DMA.
402
403Type(A) offers the best locality for processes on Node(0), but ZONE_DMA
404will be used before ZONE_NORMAL exhaustion. This increases possibility of
405out-of-memory(OOM) of ZONE_DMA because ZONE_DMA is tend to be small.
406
407Type(B) cannot offer the best locality but is more robust against OOM of
408the DMA zone.
409
410Type(A) is called as "Node" order. Type (B) is "Zone" order.
411
412"Node order" orders the zonelists by node, then by zone within each node.
413Specify "[Nn]ode" for zone order
414
415"Zone Order" orders the zonelists by zone type, then by node within each
416zone. Specify "[Zz]one"for zode order.
417
418Specify "[Dd]efault" to request automatic configuration. Autoconfiguration
419will select "node" order in following case.
420(1) if the DMA zone does not exist or
421(2) if the DMA zone comprises greater than 50% of the available memory or
422(3) if any node's DMA zone comprises greater than 60% of its local memory and
423 the amount of local memory is big enough.
424
425Otherwise, "zone" order will be selected. Default order is recommended unless
426this is causing problems for your system/application.
Nishanth Aravamudand5dbac82007-12-17 16:20:25 -0800427
428==============================================================
429
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800430oom_dump_tasks
Nishanth Aravamudand5dbac82007-12-17 16:20:25 -0800431
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800432Enables a system-wide task dump (excluding kernel threads) to be
433produced when the kernel performs an OOM-killing and includes such
434information as pid, uid, tgid, vm size, rss, cpu, oom_adj score, and
435name. This is helpful to determine why the OOM killer was invoked
436and to identify the rogue task that caused it.
Nishanth Aravamudand5dbac82007-12-17 16:20:25 -0800437
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800438If this is set to zero, this information is suppressed. On very
439large systems with thousands of tasks it may not be feasible to dump
440the memory state information for each one. Such systems should not
441be forced to incur a performance penalty in OOM conditions when the
442information may not be desired.
443
444If this is set to non-zero, this information is shown whenever the
445OOM killer actually kills a memory-hogging task.
446
447The default value is 0.
Nishanth Aravamudand5dbac82007-12-17 16:20:25 -0800448
449==============================================================
450
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800451oom_kill_allocating_task
Nishanth Aravamudand5dbac82007-12-17 16:20:25 -0800452
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800453This enables or disables killing the OOM-triggering task in
454out-of-memory situations.
Nishanth Aravamudand5dbac82007-12-17 16:20:25 -0800455
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800456If this is set to zero, the OOM killer will scan through the entire
457tasklist and select a task based on heuristics to kill. This normally
458selects a rogue memory-hogging task that frees up a large amount of
459memory when killed.
460
461If this is set to non-zero, the OOM killer simply kills the task that
462triggered the out-of-memory condition. This avoids the expensive
463tasklist scan.
464
465If panic_on_oom is selected, it takes precedence over whatever value
466is used in oom_kill_allocating_task.
467
468The default value is 0.
Paul Mundtdd8632a2009-01-08 12:04:47 +0000469
470==============================================================
471
Peter W Morrealefafd6882009-04-06 19:00:29 -0700472nr_pdflush_threads_min
473
474This value controls the minimum number of pdflush threads.
475
476At boot time, the kernel will create and maintain 'nr_pdflush_threads_min'
477threads for the kernel's lifetime.
478
479The default value is 2. The minimum value you can specify is 1, and
480the maximum value is the current setting of 'nr_pdflush_threads_max'.
481
482See 'nr_pdflush_threads_max' below for more information.
483
484==============================================================
485
486nr_pdflush_threads_max
487
488This value controls the maximum number of pdflush threads that can be
489created. The pdflush algorithm will create a new pdflush thread (up to
490this maximum) if no pdflush threads have been available for >= 1 second.
491
492The default value is 8. The minimum value you can specify is the
493current value of 'nr_pdflush_threads_min' and the
494maximum is 1000.
495
496==============================================================
497
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800498overcommit_memory:
Paul Mundtdd8632a2009-01-08 12:04:47 +0000499
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800500This value contains a flag that enables memory overcommitment.
Paul Mundtdd8632a2009-01-08 12:04:47 +0000501
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800502When this flag is 0, the kernel attempts to estimate the amount
503of free memory left when userspace requests more memory.
Paul Mundtdd8632a2009-01-08 12:04:47 +0000504
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800505When this flag is 1, the kernel pretends there is always enough
506memory until it actually runs out.
Paul Mundtdd8632a2009-01-08 12:04:47 +0000507
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800508When this flag is 2, the kernel uses a "never overcommit"
509policy that attempts to prevent any overcommit of memory.
Paul Mundtdd8632a2009-01-08 12:04:47 +0000510
Peter W Morrealedb0fb182009-01-15 13:50:42 -0800511This feature can be very useful because there are a lot of
512programs that malloc() huge amounts of memory "just-in-case"
513and don't use much of it.
514
515The default value is 0.
516
517See Documentation/vm/overcommit-accounting and
518security/commoncap.c::cap_vm_enough_memory() for more information.
519
520==============================================================
521
522overcommit_ratio:
523
524When overcommit_memory is set to 2, the committed address
525space is not permitted to exceed swap plus this percentage
526of physical RAM. See above.
527
528==============================================================
529
530page-cluster
531
532page-cluster controls the number of pages which are written to swap in
533a single attempt. The swap I/O size.
534
535It is a logarithmic value - setting it to zero means "1 page", setting
536it to 1 means "2 pages", setting it to 2 means "4 pages", etc.
537
538The default value is three (eight pages at a time). There may be some
539small benefits in tuning this to a different value if your workload is
540swap-intensive.
541
542=============================================================
543
544panic_on_oom
545
546This enables or disables panic on out-of-memory feature.
547
548If this is set to 0, the kernel will kill some rogue process,
549called oom_killer. Usually, oom_killer can kill rogue processes and
550system will survive.
551
552If this is set to 1, the kernel panics when out-of-memory happens.
553However, if a process limits using nodes by mempolicy/cpusets,
554and those nodes become memory exhaustion status, one process
555may be killed by oom-killer. No panic occurs in this case.
556Because other nodes' memory may be free. This means system total status
557may be not fatal yet.
558
559If this is set to 2, the kernel panics compulsorily even on the
560above-mentioned.
561
562The default value is 0.
5631 and 2 are for failover of clustering. Please select either
564according to your policy of failover.
565
566=============================================================
567
568percpu_pagelist_fraction
569
570This is the fraction of pages at most (high mark pcp->high) in each zone that
571are allocated for each per cpu page list. The min value for this is 8. It
572means that we don't allow more than 1/8th of pages in each zone to be
573allocated in any single per_cpu_pagelist. This entry only changes the value
574of hot per cpu pagelists. User can specify a number like 100 to allocate
5751/100th of each zone to each per cpu page list.
576
577The batch value of each per cpu pagelist is also updated as a result. It is
578set to pcp->high/4. The upper limit of batch is (PAGE_SHIFT * 8)
579
580The initial value is zero. Kernel does not use this value at boot time to set
581the high water marks for each per cpu page list.
582
583==============================================================
584
585stat_interval
586
587The time interval between which vm statistics are updated. The default
588is 1 second.
589
590==============================================================
591
592swappiness
593
594This control is used to define how aggressive the kernel will swap
595memory pages. Higher values will increase agressiveness, lower values
596descrease the amount of swap.
597
598The default value is 60.
599
600==============================================================
601
602vfs_cache_pressure
603------------------
604
605Controls the tendency of the kernel to reclaim the memory which is used for
606caching of directory and inode objects.
607
608At the default value of vfs_cache_pressure=100 the kernel will attempt to
609reclaim dentries and inodes at a "fair" rate with respect to pagecache and
610swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer
611to retain dentry and inode caches. Increasing vfs_cache_pressure beyond 100
612causes the kernel to prefer to reclaim dentries and inodes.
613
614==============================================================
615
616zone_reclaim_mode:
617
618Zone_reclaim_mode allows someone to set more or less aggressive approaches to
619reclaim memory when a zone runs out of memory. If it is set to zero then no
620zone reclaim occurs. Allocations will be satisfied from other zones / nodes
621in the system.
622
623This is value ORed together of
624
6251 = Zone reclaim on
6262 = Zone reclaim writes dirty pages out
6274 = Zone reclaim swaps pages
628
629zone_reclaim_mode is set during bootup to 1 if it is determined that pages
630from remote zones will cause a measurable performance reduction. The
631page allocator will then reclaim easily reusable pages (those page
632cache pages that are currently not used) before allocating off node pages.
633
634It may be beneficial to switch off zone reclaim if the system is
635used for a file server and all of memory should be used for caching files
636from disk. In that case the caching effect is more important than
637data locality.
638
639Allowing zone reclaim to write out pages stops processes that are
640writing large amounts of data from dirtying pages on other nodes. Zone
641reclaim will write out dirty pages if a zone fills up and so effectively
642throttle the process. This may decrease the performance of a single process
643since it cannot use all of system memory to buffer the outgoing writes
644anymore but it preserve the memory on other nodes so that the performance
645of other processes running on other nodes will not be affected.
646
647Allowing regular swap effectively restricts allocations to the local
648node unless explicitly overridden by memory policies or cpuset
649configurations.
650
651============ End of Document =================================