vm.txt

来自「Linux Kernel 2.6.9 for OMAP1710」· 文本 代码 · 共 105 行

TXT
105
字号
Documentation for /proc/sys/vm/*	kernel version 2.2.10	(c) 1998, 1999,  Rik van Riel <riel@nl.linux.org>For general info and legal blurb, please look in README.==============================================================This file contains the documentation for the sysctl files in/proc/sys/vm and is valid for Linux kernel version 2.2.The files in this directory can be used to tune the operationof the virtual memory (VM) subsystem of the Linux kernel andthe writeout of dirty data to disk.Default values and initialization routines for most of thesefiles can be found in mm/swap.c.Currently, these files are in /proc/sys/vm:- overcommit_memory- page-cluster- dirty_ratio- dirty_background_ratio- dirty_expire_centisecs- dirty_writeback_centisecs- max_map_count- min_free_kbytes- laptop_mode- block_dump==============================================================dirty_ratio, dirty_background_ratio, dirty_expire_centisecs,dirty_writeback_centisecs, vfs_cache_pressure, laptop_mode,block_dump:See Documentation/filesystems/proc.txt==============================================================overcommit_memory:This value contains a flag that enables memory overcommitment.When this flag is 0, the kernel attempts to estimate the amountof free memory left when userspace requests more memory.When this flag is 1, the kernel pretends there is always enoughmemory until it actually runs out.When this flag is 2, the kernel uses a "never overcommit"policy that attempts to prevent any overcommit of memory.  This feature can be very useful because there are a lot ofprograms that malloc() huge amounts of memory "just-in-case"and don't use much of it.The default value is 0.See Documentation/vm/overcommit-accounting andsecurity/commoncap.c::cap_vm_enough_memory() for more information.==============================================================overcommit_ratio:When overcommit_memory is set to 2, the committed addressspace is not permitted to exceed swap plus this percentageof physical RAM.  See above.==============================================================page-cluster:The Linux VM subsystem avoids excessive disk seeks by readingmultiple pages on a page fault. The number of pages it readsis dependent on the amount of memory in your machine.The number of pages the kernel reads in at once is equal to2 ^ page-cluster. Values above 2 ^ 5 don't make much sensefor swap because we only cluster swap data in 32-page groups.==============================================================max_map_count:This file contains the maximum number of memory map areas a processmay have. Memory map areas are used as a side-effect of callingmalloc, directly by mmap and mprotect, and also when loading sharedlibraries.While most applications need less than a thousand maps, certainprograms, particularly malloc debuggers, may consume lots of them,e.g., up to one or two maps per allocation.The default value is 65536.==============================================================min_free_kbytes:This is used to force the Linux VM to keep a minimum number of kilobytes free.  The VM uses this number to compute a pages_minvalue for each lowmem zone in the system.  Each lowmem zone gets a number of reserved free pages based proportionally on its size.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?