€•OŒsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ)/translations/zh_CN/admin-guide/sysctl/vm”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/zh_TW/admin-guide/sysctl/vm”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/it_IT/admin-guide/sysctl/vm”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/ja_JP/admin-guide/sysctl/vm”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/ko_KR/admin-guide/sysctl/vm”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/pt_BR/admin-guide/sysctl/vm”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/sp_SP/admin-guide/sysctl/vm”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒDocumentation for /proc/sys/vm/”h]”hŒDocumentation for /proc/sys/vm/”…”�”}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³ŒC/var/lib/git/docbuild/linux/Documentation/admin-guide/sysctl/vm.rst”h´KubhŒ paragraph”“”)�”}”(hŒkernel version 2.6.29”h]”hŒkernel version 2.6.29”…”�”}”(hhÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hŒ;Copyright (c) 1998, 1999, Rik van Riel ”h]”(hŒ)Copyright (c) 1998, 1999, Rik van Riel <”…”�”}”(hhÛh²hh³Nh´NubhŒ reference”“”)�”}”(hŒriel@nl.linux.org”h]”hŒriel@nl.linux.org”…”�”}”(hhåh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:riel@nl.linux.org”uh1hãhhÛubhŒ>”…”�”}”(hhÛh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hŒCCopyright (c) 2008 Peter W. Morreale ”h]”(hŒ.Copyright (c) 2008 Peter W. Morreale <”…”�”}”(hhÿh²hh³Nh´Nubhä)�”}”(hŒpmorreale@novell.com”h]”hŒpmorreale@novell.com”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:pmorreale@novell.com”uh1hãhhÿubhŒ>”…”�”}”(hhÿh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K hh·h²hubhÌ)�”}”(hŒ;For general info and legal blurb, please look in index.rst.”h]”hŒ;For general info and legal blurb, please look in index.rst.”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K hh·h²hubhŒ transition”“”)�”}”(hŒN------------------------------------------------------------------------------”h]”h}”(h]”h ]”h"]”h$]”h&]”uh1j/h³hÊh´K hh·h²hubhÌ)�”}”(hŒwThis file contains the documentation for the sysctl files in /proc/sys/vm and is valid for Linux kernel version 2.6.29.”h]”hŒwThis file contains the documentation for the sysctl files in /proc/sys/vm and is valid for Linux kernel version 2.6.29.”…”�”}”(hj;h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hŒžThe files in this directory can be used to tune the operation of the virtual memory (VM) subsystem of the Linux kernel and the writeout of dirty data to disk.”h]”hŒžThe files in this directory can be used to tune the operation of the virtual memory (VM) subsystem of the Linux kernel and the writeout of dirty data to disk.”…”�”}”(hjIh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hŒ+Currently, these files are in /proc/sys/vm:”h]”hŒ+Currently, these files are in /proc/sys/vm:”…”�”}”(hjWh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhŒ bullet_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hŒadmin_reserve_kbytes”h]”hÌ)�”}”(hjnh]”hŒadmin_reserve_kbytes”…”�”}”(hjph²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khjlubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒcompact_memory”h]”hÌ)�”}”(hj…h]”hŒcompact_memory”…”�”}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khjƒubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒcompaction_proactiveness”h]”hÌ)�”}”(hjœh]”hŒcompaction_proactiveness”…”�”}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khjšubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒcompact_unevictable_allowed”h]”hÌ)�”}”(hj³h]”hŒcompact_unevictable_allowed”…”�”}”(hjµh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khj±ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒ defrag_mode”h]”hÌ)�”}”(hjÊh]”hŒ defrag_mode”…”�”}”(hjÌh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KhjÈubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒdirty_background_bytes”h]”hÌ)�”}”(hjáh]”hŒdirty_background_bytes”…”�”}”(hjãh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khjßubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒdirty_background_ratio”h]”hÌ)�”}”(hjøh]”hŒdirty_background_ratio”…”�”}”(hjúh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khjöubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒ dirty_bytes”h]”hÌ)�”}”(hjh]”hŒ dirty_bytes”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒdirty_expire_centisecs”h]”hÌ)�”}”(hj&h]”hŒdirty_expire_centisecs”…”�”}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K hj$ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒ dirty_ratio”h]”hÌ)�”}”(hj=h]”hŒ dirty_ratio”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K!hj;ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒdirtytime_expire_seconds”h]”hÌ)�”}”(hjTh]”hŒdirtytime_expire_seconds”…”�”}”(hjVh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K"hjRubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒdirty_writeback_centisecs”h]”hÌ)�”}”(hjkh]”hŒdirty_writeback_centisecs”…”�”}”(hjmh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K#hjiubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒ drop_caches”h]”hÌ)�”}”(hj‚h]”hŒ drop_caches”…”�”}”(hj„h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K$hj€ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒenable_soft_offline”h]”hÌ)�”}”(hj™h]”hŒenable_soft_offline”…”�”}”(hj›h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K%hj—ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒextfrag_threshold”h]”hÌ)�”}”(hj°h]”hŒextfrag_threshold”…”�”}”(hj²h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K&hj®ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒhighmem_is_dirtyable”h]”hÌ)�”}”(hjÇh]”hŒhighmem_is_dirtyable”…”�”}”(hjÉh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K'hjÅubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒhugetlb_shm_group”h]”hÌ)�”}”(hjÞh]”hŒhugetlb_shm_group”…”�”}”(hjàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K(hjÜubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒlegacy_va_layout”h]”hÌ)�”}”(hjõh]”hŒlegacy_va_layout”…”�”}”(hj÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K)hjóubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒlowmem_reserve_ratio”h]”hÌ)�”}”(hj h]”hŒlowmem_reserve_ratio”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K*hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒ max_map_count”h]”hÌ)�”}”(hj#h]”hŒ max_map_count”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K+hj!ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒhjÖubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒovercommit_ratio”h]”hÌ)�”}”(hjïh]”hŒovercommit_ratio”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K?hjíubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒ page-cluster”h]”hÌ)�”}”(hjh]”hŒ page-cluster”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K@hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒpage_lock_unfairness”h]”hÌ)�”}”(hjh]”hŒpage_lock_unfairness”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KAhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒ panic_on_oom”h]”hÌ)�”}”(hj4h]”hŒ panic_on_oom”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KBhj2ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒ%panic_on_unrecoverable_memory_failure”h]”hÌ)�”}”(hjKh]”hŒ%panic_on_unrecoverable_memory_failure”…”�”}”(hjMh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KChjIubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒpercpu_pagelist_high_fraction”h]”hÌ)�”}”(hjbh]”hŒpercpu_pagelist_high_fraction”…”�”}”(hjdh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KDhj`ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒ stat_interval”h]”hÌ)�”}”(hjyh]”hŒ stat_interval”…”�”}”(hj{h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KEhjwubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒ stat_refresh”h]”hÌ)�”}”(hj�h]”hŒ stat_refresh”…”�”}”(hj’h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KFhjŽubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒ numa_stat”h]”hÌ)�”}”(hj§h]”hŒ numa_stat”…”�”}”(hj©h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KGhj¥ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒ swappiness”h]”hÌ)�”}”(hj¾h]”hŒ swappiness”…”�”}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KHhj¼ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒunprivileged_userfaultfd”h]”hÌ)�”}”(hjÕh]”hŒunprivileged_userfaultfd”…”�”}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KIhjÓubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒuser_reserve_kbytes”h]”hÌ)�”}”(hjìh]”hŒuser_reserve_kbytes”…”�”}”(hjîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KJhjêubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒvfs_cache_pressure”h]”hÌ)�”}”(hjh]”hŒvfs_cache_pressure”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KKhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒvfs_cache_pressure_denom”h]”hÌ)�”}”(hjh]”hŒvfs_cache_pressure_denom”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KLhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒwatermark_boost_factor”h]”hÌ)�”}”(hj1h]”hŒwatermark_boost_factor”…”�”}”(hj3h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KMhj/ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒwatermark_scale_factor”h]”hÌ)�”}”(hjHh]”hŒwatermark_scale_factor”…”�”}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KNhjFubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubjk)�”}”(hŒzone_reclaim_mode ”h]”hÌ)�”}”(hŒzone_reclaim_mode”h]”hŒzone_reclaim_mode”…”�”}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KOhj]ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhjgh²hh³hÊh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1jeh³hÊh´Khh·h²hubh¶)�”}”(hhh]”(h»)�”}”(hŒadmin_reserve_kbytes”h]”hŒadmin_reserve_kbytes”…”�”}”(hj€h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj}h²hh³hÊh´KSubhÌ)�”}”(hŒlThe amount of free memory in the system that should be reserved for users with the capability cap_sys_admin.”h]”hŒlThe amount of free memory in the system that should be reserved for users with the capability cap_sys_admin.”…”�”}”(hjŽh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KUhj}h²hubhÌ)�”}”(hŒ;admin_reserve_kbytes defaults to min(3% of free pages, 8MB)”h]”hŒ;admin_reserve_kbytes defaults to min(3% of free pages, 8MB)”…”�”}”(hjœh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KXhj}h²hubhÌ)�”}”(hŒThat should provide enough for the admin to log in and kill a process, if necessary, under the default overcommit 'guess' mode.”h]”hŒƒThat should provide enough for the admin to log in and kill a process, if necessary, under the default overcommit ‘guess’ mode.”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KZhj}h²hubhÌ)�”}”(hŒÇSystems running under overcommit 'never' should increase this to account for the full Virtual Memory Size of programs used to recover. Otherwise, root may not be able to log in to recover the system.”h]”hŒËSystems running under overcommit ‘never’ should increase this to account for the full Virtual Memory Size of programs used to recover. Otherwise, root may not be able to log in to recover the system.”…”�”}”(hj¸h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K]hj}h²hubhÌ)�”}”(hŒ.How do you calculate a minimum useful reserve?”h]”hŒ.How do you calculate a minimum useful reserve?”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kahj}h²hubhÌ)�”}”(hŒDsshd or login + bash (or some other shell) + top (or ps, kill, etc.)”h]”hŒDsshd or login + bash (or some other shell) + top (or ps, kill, etc.)”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kchj}h²hubhÌ)�”}”(hŒYFor overcommit 'guess', we can sum resident set sizes (RSS). On x86_64 this is about 8MB.”h]”hŒ]For overcommit ‘guess’, we can sum resident set sizes (RSS). On x86_64 this is about 8MB.”…”�”}”(hjâh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kehj}h²hubhÌ)�”}”(hŒ…For overcommit 'never', we can take the max of their virtual sizes (VSZ) and add the sum of their RSS. On x86_64 this is about 128MB.”h]”hŒ‰For overcommit ‘never’, we can take the max of their virtual sizes (VSZ) and add the sum of their RSS. On x86_64 this is about 128MB.”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khhj}h²hubhÌ)�”}”(hŒCChanging this takes effect whenever an application requests memory.”h]”hŒCChanging this takes effect whenever an application requests memory.”…”�”}”(hjþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Klhj}h²hubeh}”(h]”Œadmin-reserve-kbytes”ah ]”h"]”Œadmin_reserve_kbytes”ah$]”h&]”uh1hµhh·h²hh³hÊh´KSubh¶)�”}”(hhh]”(h»)�”}”(hŒcompact_memory”h]”hŒcompact_memory”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjh²hh³hÊh´KpubhÌ)�”}”(hX0Available only when CONFIG_COMPACTION is set. When 1 is written to the file, all zones are compacted such that free memory is available in contiguous blocks where possible. This can be important for example in the allocation of huge pages although processes will also directly compact memory as required.”h]”hX0Available only when CONFIG_COMPACTION is set. When 1 is written to the file, all zones are compacted such that free memory is available in contiguous blocks where possible. This can be important for example in the allocation of huge pages although processes will also directly compact memory as required.”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Krhjh²hubeh}”(h]”Œcompact-memory”ah ]”h"]”Œcompact_memory”ah$]”h&]”uh1hµhh·h²hh³hÊh´Kpubh¶)�”}”(hhh]”(h»)�”}”(hŒcompaction_proactiveness”h]”hŒcompaction_proactiveness”…”�”}”(hj>h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj;h²hh³hÊh´KxubhÌ)�”}”(hX'This tunable takes a value in the range [0, 100] with a default value of 20. This tunable determines how aggressively compaction is done in the background. Write of a non zero value to this tunable will immediately trigger the proactive compaction. Setting it to 0 disables proactive compaction.”h]”hX'This tunable takes a value in the range [0, 100] with a default value of 20. This tunable determines how aggressively compaction is done in the background. Write of a non zero value to this tunable will immediately trigger the proactive compaction. Setting it to 0 disables proactive compaction.”…”�”}”(hjLh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kzhj;h²hubhÌ)�”}”(hX=Note that compaction has a non-trivial system-wide impact as pages belonging to different processes are moved around, which could also lead to latency spikes in unsuspecting applications. The kernel employs various heuristics to avoid wasting CPU cycles if it detects that proactive compaction is not being effective.”h]”hX=Note that compaction has a non-trivial system-wide impact as pages belonging to different processes are moved around, which could also lead to latency spikes in unsuspecting applications. The kernel employs various heuristics to avoid wasting CPU cycles if it detects that proactive compaction is not being effective.”…”�”}”(hjZh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khj;h²hubhÌ)�”}”(hX7Setting the value above 80 will, in addition to lowering the acceptable level of fragmentation, make the compaction code more sensitive to increases in fragmentation, i.e. compaction will trigger more often, but reduce fragmentation by a smaller amount. This makes the fragmentation level more stable over time.”h]”hX7Setting the value above 80 will, in addition to lowering the acceptable level of fragmentation, make the compaction code more sensitive to increases in fragmentation, i.e. compaction will trigger more often, but reduce fragmentation by a smaller amount. This makes the fragmentation level more stable over time.”…”�”}”(hjhh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K…hj;h²hubhÌ)�”}”(hŒrBe careful when setting it to extreme values like 100, as that may cause excessive background compaction activity.”h]”hŒrBe careful when setting it to extreme values like 100, as that may cause excessive background compaction activity.”…”�”}”(hjvh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K‹hj;h²hubeh}”(h]”Œcompaction-proactiveness”ah ]”h"]”Œcompaction_proactiveness”ah$]”h&]”uh1hµhh·h²hh³hÊh´Kxubh¶)�”}”(hhh]”(h»)�”}”(hŒcompact_unevictable_allowed”h]”hŒcompact_unevictable_allowed”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjŒh²hh³hÊh´K�ubhÌ)�”}”(hXAvailable only when CONFIG_COMPACTION is set. When set to 1, compaction is allowed to examine the unevictable lru (mlocked pages) for pages to compact. This should be used on systems where stalls for minor page faults are an acceptable trade for large contiguous free memory. Set to 0 to prevent compaction from moving pages that are unevictable. Default value is 1. On CONFIG_PREEMPT_RT the default value is 0 in order to avoid a page fault, due to compaction, which would block the task from becoming active until the fault is resolved.”h]”hXAvailable only when CONFIG_COMPACTION is set. When set to 1, compaction is allowed to examine the unevictable lru (mlocked pages) for pages to compact. This should be used on systems where stalls for minor page faults are an acceptable trade for large contiguous free memory. Set to 0 to prevent compaction from moving pages that are unevictable. Default value is 1. On CONFIG_PREEMPT_RT the default value is 0 in order to avoid a page fault, due to compaction, which would block the task from becoming active until the fault is resolved.”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K‘hjŒh²hubeh}”(h]”Œcompact-unevictable-allowed”ah ]”h"]”Œcompact_unevictable_allowed”ah$]”h&]”uh1hµhh·h²hh³hÊh´K�ubh¶)�”}”(hhh]”(h»)�”}”(hŒ defrag_mode”h]”hŒ defrag_mode”…”�”}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj³h²hh³hÊh´K›ubhÌ)�”}”(hŒŠWhen set to 1, the page allocator tries harder to avoid fragmentation and maintain the ability to produce huge pages / higher-order pages.”h]”hŒŠWhen set to 1, the page allocator tries harder to avoid fragmentation and maintain the ability to produce huge pages / higher-order pages.”…”�”}”(hjÄh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K�hj³h²hubhÌ)�”}”(hŒ}It is recommended to enable this right after boot, as fragmentation, once it occurred, can be long-lasting or even permanent.”h]”hŒ}It is recommended to enable this right after boot, as fragmentation, once it occurred, can be long-lasting or even permanent.”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K hj³h²hubeh}”(h]”Œ defrag-mode”ah ]”h"]”Œ defrag_mode”ah$]”h&]”uh1hµhh·h²hh³hÊh´K›ubh¶)�”}”(hhh]”(h»)�”}”(hŒdirty_background_bytes”h]”hŒdirty_background_bytes”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjèh²hh³hÊh´K¤ubhÌ)�”}”(hŒhContains the amount of dirty memory at which the background kernel flusher threads will start writeback.”h]”hŒhContains the amount of dirty memory at which the background kernel flusher threads will start writeback.”…”�”}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K¦hjèh²hubhŒdefinition_list”“”)�”}”(hhh]”hŒdefinition_list_item”“”)�”}”(hXNote: dirty_background_bytes is the counterpart of dirty_background_ratio. Only one of them may be specified at a time. When one sysctl is written it is immediately taken into account to evaluate the dirty memory limits and the other appears as 0 when read. ”h]”(hŒterm”“”)�”}”(hŒNote:”h]”hŒNote:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´K®hjubhŒ definition”“”)�”}”(hhh]”hÌ)�”}”(hŒûdirty_background_bytes is the counterpart of dirty_background_ratio. Only one of them may be specified at a time. When one sysctl is written it is immediately taken into account to evaluate the dirty memory limits and the other appears as 0 when read.”h]”hŒûdirty_background_bytes is the counterpart of dirty_background_ratio. Only one of them may be specified at a time. When one sysctl is written it is immediately taken into account to evaluate the dirty memory limits and the other appears as 0 when read.”…”�”}”(hj'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kªhj$ubah}”(h]”h ]”h"]”h$]”h&]”uh1j"hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j h³hÊh´K®hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjèh²hh³hÊh´Nubeh}”(h]”Œdirty-background-bytes”ah ]”h"]”Œdirty_background_bytes”ah$]”h&]”uh1hµhh·h²hh³hÊh´K¤ubh¶)�”}”(hhh]”(h»)�”}”(hŒdirty_background_ratio”h]”hŒdirty_background_ratio”…”�”}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjOh²hh³hÊh´K±ubhÌ)�”}”(hŒÉContains, as a percentage of total available memory that contains free pages and reclaimable pages, the number of pages at which the background kernel flusher threads will start writing out dirty data.”h]”hŒÉContains, as a percentage of total available memory that contains free pages and reclaimable pages, the number of pages at which the background kernel flusher threads will start writing out dirty data.”…”�”}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K³hjOh²hubhÌ)�”}”(hŒ?The total available memory is not equal to total system memory.”h]”hŒ?The total available memory is not equal to total system memory.”…”�”}”(hjnh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K·hjOh²hubeh}”(h]”Œdirty-background-ratio”ah ]”h"]”Œdirty_background_ratio”ah$]”h&]”uh1hµhh·h²hh³hÊh´K±ubh¶)�”}”(hhh]”(h»)�”}”(hŒ dirty_bytes”h]”hŒ dirty_bytes”…”�”}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj„h²hh³hÊh´K»ubhÌ)�”}”(hŒjContains the amount of dirty memory at which a process generating disk writes will itself start writeback.”h]”hŒjContains the amount of dirty memory at which a process generating disk writes will itself start writeback.”…”�”}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K½hj„h²hubhÌ)�”}”(hŒëNote: dirty_bytes is the counterpart of dirty_ratio. Only one of them may be specified at a time. When one sysctl is written it is immediately taken into account to evaluate the dirty memory limits and the other appears as 0 when read.”h]”hŒëNote: dirty_bytes is the counterpart of dirty_ratio. Only one of them may be specified at a time. When one sysctl is written it is immediately taken into account to evaluate the dirty memory limits and the other appears as 0 when read.”…”�”}”(hj£h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÀhj„h²hubhÌ)�”}”(hŒ¤Note: the minimum value allowed for dirty_bytes is two pages (in bytes); any value lower than this limit will be ignored and the old configuration will be retained.”h]”hŒ¤Note: the minimum value allowed for dirty_bytes is two pages (in bytes); any value lower than this limit will be ignored and the old configuration will be retained.”…”�”}”(hj±h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÅhj„h²hubeh}”(h]”Œ dirty-bytes”ah ]”h"]”Œ dirty_bytes”ah$]”h&]”uh1hµhh·h²hh³hÊh´K»ubh¶)�”}”(hhh]”(h»)�”}”(hŒdirty_expire_centisecs”h]”hŒdirty_expire_centisecs”…”�”}”(hjÊh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjÇh²hh³hÊh´KËubhÌ)�”}”(hXThis tunable is used to define when dirty data is old enough to be eligible for writeout by the kernel flusher threads. It is expressed in 100'ths of a second. Data which has been dirty in-memory for longer than this interval will be written out next time a flusher thread wakes up.”h]”hXThis tunable is used to define when dirty data is old enough to be eligible for writeout by the kernel flusher threads. It is expressed in 100’ths of a second. Data which has been dirty in-memory for longer than this interval will be written out next time a flusher thread wakes up.”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÍhjÇh²hubeh}”(h]”Œdirty-expire-centisecs”ah ]”h"]”Œdirty_expire_centisecs”ah$]”h&]”uh1hµhh·h²hh³hÊh´KËubh¶)�”}”(hhh]”(h»)�”}”(hŒ dirty_ratio”h]”hŒ dirty_ratio”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjîh²hh³hÊh´KÔubhÌ)�”}”(hŒÔContains, as a percentage of total available memory that contains free pages and reclaimable pages, the number of pages at which a process which is generating disk writes will itself start writing out dirty data.”h]”hŒÔContains, as a percentage of total available memory that contains free pages and reclaimable pages, the number of pages at which a process which is generating disk writes will itself start writing out dirty data.”…”�”}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÖhjîh²hubhÌ)�”}”(hŒ?The total available memory is not equal to total system memory.”h]”hŒ?The total available memory is not equal to total system memory.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÚhjîh²hubeh}”(h]”Œ dirty-ratio”ah ]”h"]”Œ dirty_ratio”ah$]”h&]”uh1hµhh·h²hh³hÊh´KÔubh¶)�”}”(hhh]”(h»)�”}”(hŒdirtytime_expire_seconds”h]”hŒdirtytime_expire_seconds”…”�”}”(hj& h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj# h²hh³hÊh´KÞubhÌ)�”}”(hXWhen a lazytime inode is constantly having its pages dirtied, the inode with an updated timestamp will never get chance to be written out. And, if the only thing that has happened on the file system is a dirtytime inode caused by an atime update, a worker will be scheduled to make sure that inode eventually gets pushed out to disk. This tunable is used to define when dirty inode is old enough to be eligible for writeback by the kernel flusher threads. And, it is also used as the interval to wakeup dirtytime_writeback thread.”h]”hXWhen a lazytime inode is constantly having its pages dirtied, the inode with an updated timestamp will never get chance to be written out. And, if the only thing that has happened on the file system is a dirtytime inode caused by an atime update, a worker will be scheduled to make sure that inode eventually gets pushed out to disk. This tunable is used to define when dirty inode is old enough to be eligible for writeback by the kernel flusher threads. And, it is also used as the interval to wakeup dirtytime_writeback thread.”…”�”}”(hj4 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kàhj# h²hubhÌ)�”}”(hŒ;Setting this to zero disables periodic dirtytime writeback.”h]”hŒ;Setting this to zero disables periodic dirtytime writeback.”…”�”}”(hjB h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kèhj# h²hubeh}”(h]”Œdirtytime-expire-seconds”ah ]”h"]”Œdirtytime_expire_seconds”ah$]”h&]”uh1hµhh·h²hh³hÊh´KÞubh¶)�”}”(hhh]”(h»)�”}”(hŒdirty_writeback_centisecs”h]”hŒdirty_writeback_centisecs”…”�”}”(hj[ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjX h²hh³hÊh´KìubhÌ)�”}”(hŒªThe kernel flusher threads will periodically wake up and write `old` data out to disk. This tunable expresses the interval between those wakeups, in 100'ths of a second.”h]”(hŒ?The kernel flusher threads will periodically wake up and write ”…”�”}”(hji h²hh³Nh´NubhŒtitle_reference”“”)�”}”(hŒ`old`”h]”hŒold”…”�”}”(hjs h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jq hji ubhŒh data out to disk. This tunable expresses the interval between those wakeups, in 100’ths of a second.”…”�”}”(hji h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KîhjX h²hubhÌ)�”}”(hŒ /proc/sys/vm/drop_caches”h]”hŒ!echo 1 > /proc/sys/vm/drop_caches”…”�”}”hjÐ sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1jÎ h³hÊh´Kþhj¡ h²hubhÌ)�”}”(hŒATo free reclaimable slab objects (includes dentries and inodes)::”h]”hŒ@To free reclaimable slab objects (includes dentries and inodes):”…”�”}”(hjà h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj¡ h²hubjÏ )�”}”(hŒ!echo 2 > /proc/sys/vm/drop_caches”h]”hŒ!echo 2 > /proc/sys/vm/drop_caches”…”�”}”hjî sbah}”(h]”h ]”h"]”h$]”h&]”jÞ jß uh1jÎ h³hÊh´Mhj¡ h²hubhÌ)�”}”(hŒ$To free slab objects and pagecache::”h]”hŒ#To free slab objects and pagecache:”…”�”}”(hjü h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj¡ h²hubjÏ )�”}”(hŒ!echo 3 > /proc/sys/vm/drop_caches”h]”hŒ!echo 3 > /proc/sys/vm/drop_caches”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”jÞ jß uh1jÎ h³hÊh´Mhj¡ h²hubhÌ)�”}”(hX1This is a non-destructive operation and will not free any dirty objects. To increase the number of objects freed by this operation, the user may run `sync` prior to writing to /proc/sys/vm/drop_caches. This will minimize the number of dirty objects on the system and create more candidates to be dropped.”h]”(hŒ•This is a non-destructive operation and will not free any dirty objects. To increase the number of objects freed by this operation, the user may run ”…”�”}”(hj h²hh³Nh´Nubjr )�”}”(hŒ`sync`”h]”hŒsync”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jq hj ubhŒ– prior to writing to /proc/sys/vm/drop_caches. This will minimize the number of dirty objects on the system and create more candidates to be dropped.”…”�”}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj¡ h²hubhÌ)�”}”(hŒÙThis file is not a means to control the growth of the various kernel caches (inodes, dentries, pagecache, etc...) These objects are automatically reclaimed by the kernel when memory is needed elsewhere on the system.”h]”hŒÙThis file is not a means to control the growth of the various kernel caches (inodes, dentries, pagecache, etc...) These objects are automatically reclaimed by the kernel when memory is needed elsewhere on the system.”…”�”}”(hj8 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj¡ h²hubhÌ)�”}”(hX%Use of this file can cause performance problems. Since it discards cached objects, it may cost a significant amount of I/O and CPU to recreate the dropped objects, especially if they were under heavy use. Because of this, use outside of a testing or debugging environment is not recommended.”h]”hX%Use of this file can cause performance problems. Since it discards cached objects, it may cost a significant amount of I/O and CPU to recreate the dropped objects, especially if they were under heavy use. Because of this, use outside of a testing or debugging environment is not recommended.”…”�”}”(hjF h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj¡ h²hubhÌ)�”}”(hŒNYou may see informational messages in your kernel log when this file is used::”h]”hŒMYou may see informational messages in your kernel log when this file is used:”…”�”}”(hjT h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj¡ h²hubjÏ )�”}”(hŒcat (1234): drop_caches: 3”h]”hŒcat (1234): drop_caches: 3”…”�”}”hjb sbah}”(h]”h ]”h"]”h$]”h&]”jÞ jß uh1jÎ h³hÊh´Mhj¡ h²hubhÌ)�”}”(hŒ‹These are informational only. They do not mean that anything is wrong with your system. To disable them, echo 4 (bit 2) into drop_caches.”h]”hŒ‹These are informational only. They do not mean that anything is wrong with your system. To disable them, echo 4 (bit 2) into drop_caches.”…”�”}”(hjp h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj¡ h²hubeh}”(h]”Œ drop-caches”ah ]”h"]”Œ drop_caches”ah$]”h&]”uh1hµhh·h²hh³hÊh´Köubh¶)�”}”(hhh]”(h»)�”}”(hŒenable_soft_offline”h]”hŒenable_soft_offline”…”�”}”(hj‰ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj† h²hh³hÊh´M ubhÌ)�”}”(hŒ”Correctable memory errors are very common on servers. Soft-offline is kernel's solution for memory pages having (excessive) corrected memory errors.”h]”hŒ–Correctable memory errors are very common on servers. Soft-offline is kernel’s solution for memory pages having (excessive) corrected memory errors.”…”�”}”(hj— h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M!hj† h²hubhÌ)�”}”(hŒJFor different types of page, soft-offline has different behaviors / costs.”h]”hŒJFor different types of page, soft-offline has different behaviors / costs.”…”�”}”(hj¥ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M$hj† h²hubjf)�”}”(hhh]”(jk)�”}”(hŒYFor a raw error page, soft-offline migrates the in-use page's content to a new raw page. ”h]”hÌ)�”}”(hŒXFor a raw error page, soft-offline migrates the in-use page's content to a new raw page.”h]”hŒZFor a raw error page, soft-offline migrates the in-use page’s content to a new raw page.”…”�”}”(hjº h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M&hj¶ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhj³ h²hh³hÊh´Nubjk)�”}”(hŒúFor a page that is part of a transparent hugepage, soft-offline splits the transparent hugepage into raw pages, then migrates only the raw error page. As a result, user is transparently backed by 1 less hugepage, impacting memory access performance. ”h]”hÌ)�”}”(hŒùFor a page that is part of a transparent hugepage, soft-offline splits the transparent hugepage into raw pages, then migrates only the raw error page. As a result, user is transparently backed by 1 less hugepage, impacting memory access performance.”h]”hŒùFor a page that is part of a transparent hugepage, soft-offline splits the transparent hugepage into raw pages, then migrates only the raw error page. As a result, user is transparently backed by 1 less hugepage, impacting memory access performance.”…”�”}”(hjÒ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M)hjÎ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhj³ h²hh³hÊh´Nubjk)�”}”(hX)For a page that is part of a HugeTLB hugepage, soft-offline first migrates the entire HugeTLB hugepage, during which a free hugepage will be consumed as migration target. Then the original hugepage is dissolved into raw pages without compensation, reducing the capacity of the HugeTLB pool by 1. ”h]”hÌ)�”}”(hX(For a page that is part of a HugeTLB hugepage, soft-offline first migrates the entire HugeTLB hugepage, during which a free hugepage will be consumed as migration target. Then the original hugepage is dissolved into raw pages without compensation, reducing the capacity of the HugeTLB pool by 1.”h]”hX(For a page that is part of a HugeTLB hugepage, soft-offline first migrates the entire HugeTLB hugepage, during which a free hugepage will be consumed as migration target. Then the original hugepage is dissolved into raw pages without compensation, reducing the capacity of the HugeTLB pool by 1.”…”�”}”(hjê h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M.hjæ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhj³ h²hh³hÊh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j{j|uh1jeh³hÊh´M&hj† h²hubhÌ)�”}”(hŒ¤It is user's call to choose between reliability (staying away from fragile physical memory) vs performance / capacity implications in transparent and HugeTLB cases.”h]”hŒ¦It is user’s call to choose between reliability (staying away from fragile physical memory) vs performance / capacity implications in transparent and HugeTLB cases.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M3hj† h²hubhÌ)�”}”(hXFor all architectures, enable_soft_offline controls whether to soft offline memory pages. When set to 1, kernel attempts to soft offline the pages whenever it thinks needed. When set to 0, kernel returns EOPNOTSUPP to the request to soft offline the pages. Its default value is 1.”h]”hXFor all architectures, enable_soft_offline controls whether to soft offline memory pages. When set to 1, kernel attempts to soft offline the pages whenever it thinks needed. When set to 0, kernel returns EOPNOTSUPP to the request to soft offline the pages. Its default value is 1.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M7hj† h²hubhÌ)�”}”(hŒ‡It is worth mentioning that after setting enable_soft_offline to 0, the following requests to soft offline pages will not be performed:”h]”hŒ‡It is worth mentioning that after setting enable_soft_offline to 0, the following requests to soft offline pages will not be performed:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M<hj† h²hubjf)�”}”(hhh]”(jk)�”}”(hŒERequest to soft offline pages from RAS Correctable Errors Collector. ”h]”hÌ)�”}”(hŒDRequest to soft offline pages from RAS Correctable Errors Collector.”h]”hŒDRequest to soft offline pages from RAS Correctable Errors Collector.”…”�”}”(hj5 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M?hj1 ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhj. h²hh³hÊh´Nubjk)�”}”(hŒprotection[j] = (total sums of managed_pages from zone[i+1] to zone[j] on the node) / lowmem_reserve_ratio[i]; (i = j): (should not be protected. = 0; (i > j): (not necessary, but looks 0)”h]”hŒÜ(i < j): zone[i]->protection[j] = (total sums of managed_pages from zone[i+1] to zone[j] on the node) / lowmem_reserve_ratio[i]; (i = j): (should not be protected. = 0; (i > j): (not necessary, but looks 0)”…”�”}”hj: sbah}”(h]”h ]”h"]”h$]”h&]”jÞ jß uh1jÎ h³hÊh´M´hjM h²hubhÌ)�”}”(hŒ1The default values of lowmem_reserve_ratio[i] are”h]”hŒ1The default values of lowmem_reserve_ratio[i] are”…”�”}”(hjH h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M½hjM h²hubhŒ block_quote”“”)�”}”(hŒˆ=== ==================================== 256 (if zone[i] means DMA or DMA32 zone) 32 (others) === ==================================== ”h]”hŒtable”“”)�”}”(hhh]”hŒtgroup”“”)�”}”(hhh]”(hŒcolspec”“”)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jf hjc ubjg )�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”K$uh1jf hjc ubhŒtbody”“”)�”}”(hhh]”(hŒrow”“”)�”}”(hhh]”(hŒentry”“”)�”}”(hhh]”hÌ)�”}”(hŒ256”h]”hŒ256”…”�”}”(hj‹ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÀhjˆ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hjƒ ubj‡ )�”}”(hhh]”hÌ)�”}”(hŒ$(if zone[i] means DMA or DMA32 zone)”h]”hŒ$(if zone[i] means DMA or DMA32 zone)”…”�”}”(hj¢ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÀhjŸ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hjƒ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� hj~ ubj‚ )�”}”(hhh]”(j‡ )�”}”(hhh]”hÌ)�”}”(hŒ32”h]”hŒ32”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÁhj¿ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hj¼ ubj‡ )�”}”(hhh]”hÌ)�”}”(hŒ(others)”h]”hŒ(others)”…”�”}”(hjÙ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÁhjÖ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hj¼ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� hj~ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j| hjc ubeh}”(h]”h ]”h"]”h$]”h&]”Œcols”Kuh1ja hj^ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j\ hjX ubah}”(h]”h ]”h"]”h$]”h&]”uh1jV h³hÊh´M¿hjM h²hubhÌ)�”}”(hŒªAs above expression, they are reciprocal number of ratio. 256 means 1/256. # of protection pages becomes about "0.39%" of total managed pages of higher zones on the node.”h]”hŒ®As above expression, they are reciprocal number of ratio. 256 means 1/256. # of protection pages becomes about “0.39%â€� of total managed pages of higher zones on the node.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÄhjM h²hubhÌ)�”}”(hŒ¯If you would like to protect more pages, smaller values are effective. The minimum value is 1 (1/1 -> 100%). The value less than 1 completely disables protection of the pages.”h]”hŒ¯If you would like to protect more pages, smaller values are effective. The minimum value is 1 (1/1 -> 100%). The value less than 1 completely disables protection of the pages.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÈhjM h²hubeh}”(h]”Œlowmem-reserve-ratio”ah ]”h"]”Œlowmem_reserve_ratio”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mvubh¶)�”}”(hhh]”(h»)�”}”(hŒ max_map_count”h]”hŒ max_map_count”…”�”}”(hj3h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj0h²hh³hÊh´MÎubhÌ)�”}”(hŒÜThis file contains the maximum number of memory map areas a process may have. Memory map areas are used as a side-effect of calling malloc, directly by mmap, mprotect, and madvise, and also when loading shared libraries.”h]”hŒÜThis file contains the maximum number of memory map areas a process may have. Memory map areas are used as a side-effect of calling malloc, directly by mmap, mprotect, and madvise, and also when loading shared libraries.”…”�”}”(hjAh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÐhj0h²hubhÌ)�”}”(hŒ®While most applications need less than a thousand maps, certain programs, particularly malloc debuggers, may consume lots of them, e.g., up to one or two maps per allocation.”h]”hŒ®While most applications need less than a thousand maps, certain programs, particularly malloc debuggers, may consume lots of them, e.g., up to one or two maps per allocation.”…”�”}”(hjOh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÕhj0h²hubhÌ)�”}”(hŒThe default value is 65530.”h]”hŒThe default value is 65530.”…”�”}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÙhj0h²hubeh}”(h]”Œ max-map-count”ah ]”h"]”Œ max_map_count”ah$]”h&]”uh1hµhh·h²hh³hÊh´MÎubh¶)�”}”(hhh]”(h»)�”}”(hŒ mem_profiling”h]”hŒ mem_profiling”…”�”}”(hjvh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjsh²hh³hÊh´MÝubhÌ)�”}”(hŒ;Enable memory profiling (when CONFIG_MEM_ALLOC_PROFILING=y)”h]”hŒ;Enable memory profiling (when CONFIG_MEM_ALLOC_PROFILING=y)”…”�”}”(hj„h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mßhjsh²hubhÌ)�”}”(hŒ1: Enable memory profiling.”h]”hŒ1: Enable memory profiling.”…”�”}”(hj’h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Máhjsh²hubhÌ)�”}”(hŒ0: Disable memory profiling.”h]”hŒ0: Disable memory profiling.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mãhjsh²hubhÌ)�”}”(hŒ]Enabling memory profiling introduces a small performance overhead for all memory allocations.”h]”hŒ]Enabling memory profiling introduces a small performance overhead for all memory allocations.”…”�”}”(hj®h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Måhjsh²hubhÌ)�”}”(hŒKThe default value depends on CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT.”h]”hŒKThe default value depends on CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT.”…”�”}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mèhjsh²hubhÌ)�”}”(hŒªWhen CONFIG_MEM_ALLOC_PROFILING_DEBUG=y, this control is read-only to avoid warnings produced by allocations made while profiling is disabled and freed when it's enabled.”h]”hŒ¬When CONFIG_MEM_ALLOC_PROFILING_DEBUG=y, this control is read-only to avoid warnings produced by allocations made while profiling is disabled and freed when it’s enabled.”…”�”}”(hjÊh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mêhjsh²hubeh}”(h]”Œ mem-profiling”ah ]”h"]”Œ mem_profiling”ah$]”h&]”uh1hµhh·h²hh³hÊh´MÝubh¶)�”}”(hhh]”(h»)�”}”(hŒmemory_failure_early_kill”h]”hŒmemory_failure_early_kill”…”�”}”(hjãh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjàh²hh³hÊh´MðubhÌ)�”}”(hXÀControl how to kill processes when uncorrected memory error (typically a 2bit error in a memory module) is detected in the background by hardware that cannot be handled by the kernel. In some cases (like the page still having a valid copy on disk) the kernel will handle the failure transparently without affecting any applications. But if there is no other up-to-date copy of the data it will kill to prevent any data corruptions from propagating.”h]”hXÀControl how to kill processes when uncorrected memory error (typically a 2bit error in a memory module) is detected in the background by hardware that cannot be handled by the kernel. In some cases (like the page still having a valid copy on disk) the kernel will handle the failure transparently without affecting any applications. But if there is no other up-to-date copy of the data it will kill to prevent any data corruptions from propagating.”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mòhjàh²hubhÌ)�”}”(hX 1: Kill all processes that have the corrupted and not reloadable page mapped as soon as the corruption is detected. Note this is not supported for a few types of pages, like kernel internally allocated data or the swap cache, but works for the majority of user pages.”h]”hX 1: Kill all processes that have the corrupted and not reloadable page mapped as soon as the corruption is detected. Note this is not supported for a few types of pages, like kernel internally allocated data or the swap cache, but works for the majority of user pages.”…”�”}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Múhjàh²hubhÌ)�”}”(hŒc0: Only unmap the corrupted page from all processes and only kill a process who tries to access it.”h]”hŒc0: Only unmap the corrupted page from all processes and only kill a process who tries to access it.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mÿhjàh²hubhÌ)�”}”(hŒkThe kill is done using a catchable SIGBUS with BUS_MCEERR_AO, so processes can handle this if they want to.”h]”hŒkThe kill is done using a catchable SIGBUS with BUS_MCEERR_AO, so processes can handle this if they want to.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhjàh²hubhÌ)�”}”(hŒ}This is only active on architectures/platforms with advanced machine check handling and depends on the hardware capabilities.”h]”hŒ}This is only active on architectures/platforms with advanced machine check handling and depends on the hardware capabilities.”…”�”}”(hj)h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhjàh²hubhÌ)�”}”(hŒNApplications can override this setting individually with the PR_MCE_KILL prctl”h]”hŒNApplications can override this setting individually with the PR_MCE_KILL prctl”…”�”•}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhjàh²hubeh}”(h]”Œmemory-failure-early-kill”ah ]”h"]”Œmemory_failure_early_kill”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mðubh¶)�”}”(hhh]”(h»)�”}”(hŒmemory_failure_recovery”h]”hŒmemory_failure_recovery”…”�”}”(hjPh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjMh²hh³hÊh´M ubhÌ)�”}”(hŒ?Enable memory failure recovery (when supported by the platform)”h]”hŒ?Enable memory failure recovery (when supported by the platform)”…”�”}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MhjMh²hubhÌ)�”}”(hŒ1: Attempt recovery.”h]”hŒ1: Attempt recovery.”…”�”}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MhjMh²hubhÌ)�”}”(hŒ$0: Always panic on a memory failure.”h]”hŒ$0: Always panic on a memory failure.”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MhjMh²hubeh}”(h]”Œmemory-failure-recovery”ah ]”h"]”Œmemory_failure_recovery”ah$]”h&]”uh1hµhh·h²hh³hÊh´M ubh¶)�”}”(hhh]”(h»)�”}”(hŒmin_free_kbytes”h]”hŒmin_free_kbytes”…”�”}”(hj“h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj�h²hh³hÊh´MubhÌ)�”}”(hX This is used to force the Linux VM to keep a minimum number of kilobytes free. The VM uses this number to compute a watermark[WMARK_MIN] value for each lowmem zone in the system. Each lowmem zone gets a number of reserved free pages based proportionally on its size.”h]”hX This is used to force the Linux VM to keep a minimum number of kilobytes free. The VM uses this number to compute a watermark[WMARK_MIN] value for each lowmem zone in the system. Each lowmem zone gets a number of reserved free pages based proportionally on its size.”…”�”}”(hj¡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj�h²hubhÌ)�”}”(hŒÀSome minimal amount of memory is needed to satisfy PF_MEMALLOC allocations; if you set this to lower than 1024KB, your system will become subtly broken, and prone to deadlock under high loads.”h]”hŒÀSome minimal amount of memory is needed to satisfy PF_MEMALLOC allocations; if you set this to lower than 1024KB, your system will become subtly broken, and prone to deadlock under high loads.”…”�”}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj�h²hubhÌ)�”}”(hŒ6Setting this too high will OOM your machine instantly.”h]”hŒ6Setting this too high will OOM your machine instantly.”…”�”}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M"hj�h²hubeh}”(h]”Œmin-free-kbytes”ah ]”h"]”Œmin_free_kbytes”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mubh¶)�”}”(hhh]”(h»)�”}”(hŒmin_slab_ratio”h]”hŒmin_slab_ratio”…”�”}”(hjÖh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjÓh²hh³hÊh´M&ubhÌ)�”}”(hŒ'This is available only on NUMA kernels.”h]”hŒ'This is available only on NUMA kernels.”…”�”}”(hjäh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M(hjÓh²hubhÌ)�”}”(hX7A percentage of the total pages in each zone. On Zone reclaim (fallback from the local zone occurs) slabs will be reclaimed if more than this percentage of pages in a zone are reclaimable slab pages. This insures that the slab growth stays under control even in NUMA systems that rarely perform global reclaim.”h]”hX7A percentage of the total pages in each zone. On Zone reclaim (fallback from the local zone occurs) slabs will be reclaimed if more than this percentage of pages in a zone are reclaimable slab pages. This insures that the slab growth stays under control even in NUMA systems that rarely perform global reclaim.”…”�”}”(hjòh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M*hjÓh²hubhÌ)�”}”(hŒThe default is 5 percent.”h]”hŒThe default is 5 percent.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M0hjÓh²hubhÌ)�”}”(hŒ›Note that slab reclaim is triggered in a per zone / node fashion. The process of reclaiming slab memory is currently not node specific and may not be fast.”h]”hŒ›Note that slab reclaim is triggered in a per zone / node fashion. The process of reclaiming slab memory is currently not node specific and may not be fast.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M2hjÓh²hubeh}”(h]”Œmin-slab-ratio”ah ]”h"]”Œmin_slab_ratio”ah$]”h&]”uh1hµhh·h²hh³hÊh´M&ubh¶)�”}”(hhh]”(h»)�”}”(hŒmin_unmapped_ratio”h]”hŒmin_unmapped_ratio”…”�”}”(hj'h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj$h²hh³hÊh´M8ubhÌ)�”}”(hŒ'This is available only on NUMA kernels.”h]”hŒ'This is available only on NUMA kernels.”…”�”}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M:hj$h²hubhÌ)�”}”(hŒ¶This is a percentage of the total pages in each zone. Zone reclaim will only occur if more than this percentage of pages are in a state that zone_reclaim_mode allows to be reclaimed.”h]”hŒ¶This is a percentage of the total pages in each zone. Zone reclaim will only occur if more than this percentage of pages are in a state that zone_reclaim_mode allows to be reclaimed.”…”�”}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M<hj$h²hubhÌ)�”}”(hXIf zone_reclaim_mode has the value 4 OR'd, then the percentage is compared against all file-backed unmapped pages including swapcache pages and tmpfs files. Otherwise, only unmapped pages backed by normal files but not tmpfs files and similar are considered.”h]”hXIf zone_reclaim_mode has the value 4 OR’d, then the percentage is compared against all file-backed unmapped pages including swapcache pages and tmpfs files. Otherwise, only unmapped pages backed by normal files but not tmpfs files and similar are considered.”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M@hj$h²hubhÌ)�”}”(hŒThe default is 1 percent.”h]”hŒThe default is 1 percent.”…”�”}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MEhj$h²hubeh}”(h]”Œmin-unmapped-ratio”ah ]”h"]”Œmin_unmapped_ratio”ah$]”h&]”uh1hµhh·h²hh³hÊh´M8ubh¶)�”}”(hhh]”(h»)�”}”(hŒ mmap_min_addr”h]”hŒ mmap_min_addr”…”�”}”(hjxh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjuh²hh³hÊh´MIubhÌ)�”}”(hX-This file indicates the amount of address space which a user process will be restricted from mmapping. Since kernel null dereference bugs could accidentally operate based on the information in the first couple of pages of memory userspace processes should not be allowed to write to them. By default this value is set to 0 and no protections will be enforced by the security module. Setting this value to something like 64k will allow the vast majority of applications to work correctly and provide defense in depth against future potential kernel bugs.”h]”hX-This file indicates the amount of address space which a user process will be restricted from mmapping. Since kernel null dereference bugs could accidentally operate based on the information in the first couple of pages of memory userspace processes should not be allowed to write to them. By default this value is set to 0 and no protections will be enforced by the security module. Setting this value to something like 64k will allow the vast majority of applications to work correctly and provide defense in depth against future potential kernel bugs.”…”�”}”(hj†h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MKhjuh²hubeh}”(h]”Œ mmap-min-addr”ah ]”h"]”Œ mmap_min_addr”ah$]”h&]”uh1hµhh·h²hh³hÊh´MIubh¶)�”}”(hhh]”(h»)�”}”(hŒ mmap_rnd_bits”h]”hŒ mmap_rnd_bits”…”�”}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjœh²hh³hÊh´MVubhÌ)�”}”(hX7This value can be used to select the number of bits to use to determine the random offset to the base address of vma regions resulting from mmap allocations on architectures which support tuning address space randomization. This value will be bounded by the architecture's minimum and maximum supported values.”h]”hX9This value can be used to select the number of bits to use to determine the random offset to the base address of vma regions resulting from mmap allocations on architectures which support tuning address space randomization. This value will be bounded by the architecture’s minimum and maximum supported values.”…”�”}”(hj­h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MXhjœh²hubhÌ)�”}”(hŒQThis value can be changed after boot using the /proc/sys/vm/mmap_rnd_bits tunable”h]”hŒQThis value can be changed after boot using the /proc/sys/vm/mmap_rnd_bits tunable”…”�”}”(hj»h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M^hjœh²hubeh}”(h]”Œ mmap-rnd-bits”ah ]”h"]”Œ mmap_rnd_bits”ah$]”h&]”uh1hµhh·h²hh³hÊh´MVubh¶)�”}”(hhh]”(h»)�”}”(hŒmmap_rnd_compat_bits”h]”hŒmmap_rnd_compat_bits”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjÑh²hh³hÊh´McubhÌ)�”}”(hXbThis value can be used to select the number of bits to use to determine the random offset to the base address of vma regions resulting from mmap allocations for applications run in compatibility mode on architectures which support tuning address space randomization. This value will be bounded by the architecture's minimum and maximum supported values.”h]”hXdThis value can be used to select the number of bits to use to determine the random offset to the base address of vma regions resulting from mmap allocations for applications run in compatibility mode on architectures which support tuning address space randomization. This value will be bounded by the architecture’s minimum and maximum supported values.”…”�”}”(hjâh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MehjÑh²hubhÌ)�”}”(hŒXThis value can be changed after boot using the /proc/sys/vm/mmap_rnd_compat_bits tunable”h]”hŒXThis value can be changed after boot using the /proc/sys/vm/mmap_rnd_compat_bits tunable”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MlhjÑh²hubeh}”(h]”Œmmap-rnd-compat-bits”ah ]”h"]”Œmmap_rnd_compat_bits”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mcubh¶)�”}”(hhh]”(h»)�”}”(hŒmovable_gigantic_pages”h]”hŒmovable_gigantic_pages”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjh²hh³hÊh´MqubhÌ)�”}”(hX>This parameter controls whether gigantic pages may be allocated from ZONE_MOVABLE. If set to non-zero, gigantic pages can be allocated from ZONE_MOVABLE. ZONE_MOVABLE memory may be created via the kernel boot parameter `kernelcore` or via memory hotplug as discussed in Documentation/admin-guide/mm/memory-hotplug.rst.”h]”(hŒÛThis parameter controls whether gigantic pages may be allocated from ZONE_MOVABLE. If set to non-zero, gigantic pages can be allocated from ZONE_MOVABLE. ZONE_MOVABLE memory may be created via the kernel boot parameter ”…”�”}”(hjh²hh³Nh´Nubjr )�”}”(hŒ `kernelcore`”h]”hŒ kernelcore”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jq hjubhŒW or via memory hotplug as discussed in Documentation/admin-guide/mm/memory-hotplug.rst.”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mshjh²hubhÌ)�”}”(hŒ,Support may depend on specific architecture.”h]”hŒ,Support may depend on specific architecture.”…”�”}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Myhjh²hubhÌ)�”}”(hŒMNote that using ZONE_MOVABLE gigantic pages make memory hotremove unreliable.”h]”hŒMNote that using ZONE_MOVABLE gigantic pages make memory hotremove unreliable.”…”�”}”(hjEh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M{hjh²hubhÌ)�”}”(hXlMemory hot-remove operations will block indefinitely until the admin reserves sufficient gigantic pages to service migration requests associated with the memory offlining process. As HugeTLB gigantic page reservation is a manual process (via `nodeN/hugepages/.../nr_hugepages` interfaces) this may not be obvious when just attempting to offline a block of memory.”h]”(hŒóMemory hot-remove operations will block indefinitely until the admin reserves sufficient gigantic pages to service migration requests associated with the memory offlining process. As HugeTLB gigantic page reservation is a manual process (via ”…”�”}”(hjSh²hh³Nh´Nubjr )�”}”(hŒ"`nodeN/hugepages/.../nr_hugepages`”h]”hŒ nodeN/hugepages/.../nr_hugepages”…”�”}”(hj[h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jq hjSubhŒW interfaces) this may not be obvious when just attempting to offline a block of memory.”…”�”}”(hjSh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M}hjh²hubhÌ)�”}”(hX»Additionally, as multiple gigantic pages may be reserved on a single block, it may appear that gigantic pages are available for migration when in reality they are in the process of being removed. For example if `memoryN` contains two gigantic pages, one reserved and one allocated, and an admin attempts to offline that block, this operations may hang indefinitely unless another reserved gigantic page is available on another block `memoryM`.”h]”(hŒÓAdditionally, as multiple gigantic pages may be reserved on a single block, it may appear that gigantic pages are available for migration when in reality they are in the process of being removed. For example if ”…”�”}”(hjsh²hh³Nh´Nubjr )�”}”(hŒ `memoryN`”h]”hŒmemoryN”…”�”}”(hj{h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jq hjsubhŒÕ contains two gigantic pages, one reserved and one allocated, and an admin attempts to offline that block, this operations may hang indefinitely unless another reserved gigantic page is available on another block ”…”�”}”(hjsh²hh³Nh´Nubjr )�”}”(hŒ `memoryM`”h]”hŒmemoryM”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jq hjsubhŒ.”…”�”}”(hjsh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mƒhjh²hubeh}”(h]”Œmovable-gigantic-pages”ah ]”h"]”Œmovable_gigantic_pages”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mqubh¶)�”}”(hhh]”(h»)�”}”(hŒ nr_hugepages”h]”hŒ nr_hugepages”…”�”}”(hj°h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj­h²hh³hÊh´MŒubhÌ)�”}”(hŒ-Change the minimum size of the hugepage pool.”h]”hŒ-Change the minimum size of the hugepage pool.”…”�”}”(hj¾h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MŽhj­h²hubhÌ)�”}”(hŒ0See Documentation/admin-guide/mm/hugetlbpage.rst”h]”hŒ0See Documentation/admin-guide/mm/hugetlbpage.rst”…”�”}”(hjÌh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M�hj­h²hubeh}”(h]”Œ nr-hugepages”ah ]”h"]”Œ nr_hugepages”ah$]”h&]”uh1hµhh·h²hh³hÊh´MŒubh¶)�”}”(hhh]”(h»)�”}”(hŒhugetlb_optimize_vmemmap”h]”hŒhugetlb_optimize_vmemmap”…”�”}”(hjåh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjâh²hh³hÊh´M”ubhÌ)�”}”(hŒ°This knob is not available when the size of 'struct page' (a structure defined in include/linux/mm_types.h) is not power of two (an unusual system config could result in this).”h]”hŒ´This knob is not available when the size of ‘struct page’ (a structure defined in include/linux/mm_types.h) is not power of two (an unusual system config could result in this).”…”�”}”(hjóh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M–hjâh²hubhÌ)�”}”(hŒKEnable (set to 1) or disable (set to 0) HugeTLB Vmemmap Optimization (HVO).”h]”hŒKEnable (set to 1) or disable (set to 0) HugeTLB Vmemmap Optimization (HVO).”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mšhjâh²hubhÌ)�”}”(hXÛOnce enabled, the vmemmap pages of subsequent allocation of HugeTLB pages from buddy allocator will be optimized (7 pages per 2MB HugeTLB page and 4095 pages per 1GB HugeTLB page), whereas already allocated HugeTLB pages will not be optimized. When those optimized HugeTLB pages are freed from the HugeTLB pool to the buddy allocator, the vmemmap pages representing that range needs to be remapped again and the vmemmap pages discarded earlier need to be rellocated again. If your use case is that HugeTLB pages are allocated 'on the fly' (e.g. never explicitly allocating HugeTLB pages with 'nr_hugepages' but only set 'nr_overcommit_hugepages', those overcommitted HugeTLB pages are allocated 'on the fly') instead of being pulled from the HugeTLB pool, you should weigh the benefits of memory savings against the more overhead (~2x slower than before) of allocation or freeing HugeTLB pages between the HugeTLB pool and the buddy allocator. Another behavior to note is that if the system is under heavy memory pressure, it could prevent the user from freeing HugeTLB pages from the HugeTLB pool to the buddy allocator since the allocation of vmemmap pages could be failed, you have to retry later if your system encounter this situation.”h]”hXëOnce enabled, the vmemmap pages of subsequent allocation of HugeTLB pages from buddy allocator will be optimized (7 pages per 2MB HugeTLB page and 4095 pages per 1GB HugeTLB page), whereas already allocated HugeTLB pages will not be optimized. When those optimized HugeTLB pages are freed from the HugeTLB pool to the buddy allocator, the vmemmap pages representing that range needs to be remapped again and the vmemmap pages discarded earlier need to be rellocated again. If your use case is that HugeTLB pages are allocated ‘on the fly’ (e.g. never explicitly allocating HugeTLB pages with ‘nr_hugepages’ but only set ‘nr_overcommit_hugepages’, those overcommitted HugeTLB pages are allocated ‘on the fly’) instead of being pulled from the HugeTLB pool, you should weigh the benefits of memory savings against the more overhead (~2x slower than before) of allocation or freeing HugeTLB pages between the HugeTLB pool and the buddy allocator. Another behavior to note is that if the system is under heavy memory pressure, it could prevent the user from freeing HugeTLB pages from the HugeTLB pool to the buddy allocator since the allocation of vmemmap pages could be failed, you have to retry later if your system encounter this situation.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mœhjâh²hubhÌ)�”}”(hXŸOnce disabled, the vmemmap pages of subsequent allocation of HugeTLB pages from buddy allocator will not be optimized meaning the extra overhead at allocation time from buddy allocator disappears, whereas already optimized HugeTLB pages will not be affected. If you want to make sure there are no optimized HugeTLB pages, you can set "nr_hugepages" to 0 first and then disable this. Note that writing 0 to nr_hugepages will make any "in use" HugeTLB pages become surplus pages. So, those surplus pages are still optimized until they are no longer in use. You would need to wait for those surplus pages to be released before there are no optimized pages in the system.”h]”hX§Once disabled, the vmemmap pages of subsequent allocation of HugeTLB pages from buddy allocator will not be optimized meaning the extra overhead at allocation time from buddy allocator disappears, whereas already optimized HugeTLB pages will not be affected. If you want to make sure there are no optimized HugeTLB pages, you can set “nr_hugepagesâ€� to 0 first and then disable this. Note that writing 0 to nr_hugepages will make any “in useâ€� HugeTLB pages become surplus pages. So, those surplus pages are still optimized until they are no longer in use. You would need to wait for those surplus pages to be released before there are no optimized pages in the system.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M­hjâh²hubeh}”(h]”Œhugetlb-optimize-vmemmap”ah ]”h"]”Œhugetlb_optimize_vmemmap”ah$]”h&]”uh1hµhh·h²hh³hÊh´M”ubh¶)�”}”(hhh]”(h»)�”}”(hŒnr_hugepages_mempolicy”h]”hŒnr_hugepages_mempolicy”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj3h²hh³hÊh´M¹ubhÌ)�”}”(hŒQChange the size of the hugepage pool at run-time on a specific set of NUMA nodes.”h]”hŒQChange the size of the hugepage pool at run-time on a specific set of NUMA nodes.”…”�”}”(hjDh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M»hj3h²hubhÌ)�”}”(hŒ0See Documentation/admin-guide/mm/hugetlbpage.rst”h]”hŒ0See Documentation/admin-guide/mm/hugetlbpage.rst”…”�”}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M¾hj3h²hubeh}”(h]”Œnr-hugepages-mempolicy”ah ]”h"]”Œnr_hugepages_mempolicy”ah$]”h&]”uh1hµhh·h²hh³hÊh´M¹ubh¶)�”}”(hhh]”(h»)�”}”(hŒnr_overcommit_hugepages”h]”hŒnr_overcommit_hugepages”…”�”}”(hjkh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjhh²hh³hÊh´MÂubhÌ)�”}”(hŒdChange the maximum size of the hugepage pool. The maximum is nr_hugepages + nr_overcommit_hugepages.”h]”hŒdChange the maximum size of the hugepage pool. The maximum is nr_hugepages + nr_overcommit_hugepages.”…”�”}”(hjyh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÄhjhh²hubhÌ)�”}”(hŒ0See Documentation/admin-guide/mm/hugetlbpage.rst”h]”hŒ0See Documentation/admin-guide/mm/hugetlbpage.rst”…”�”}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÇhjhh²hubeh}”(h]”Œnr-overcommit-hugepages”ah ]”h"]”Œnr_overcommit_hugepages”ah$]”h&]”uh1hµhh·h²hh³hÊh´MÂubh¶)�”}”(hhh]”(h»)�”}”(hŒ nr_trim_pages”h]”hŒ nr_trim_pages”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj�h²hh³hÊh´MËubhÌ)�”}”(hŒ(This is available only on NOMMU kernels.”h]”hŒ(This is available only on NOMMU kernels.”…”�”}”(hj®h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÍhj�h²hubhÌ)�”}”(hŒcThis value adjusts the excess page trimming behaviour of power-of-2 aligned NOMMU mmap allocations.”h]”hŒcThis value adjusts the excess page trimming behaviour of power-of-2 aligned NOMMU mmap allocations.”…”�”}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÏhj�h²hubhÌ)�”}”(hŒ¼A value of 0 disables trimming of allocations entirely, while a value of 1 trims excess pages aggressively. Any value >= 1 acts as the watermark where trimming of allocations is initiated.”h]”hŒ¼A value of 0 disables trimming of allocations entirely, while a value of 1 trims excess pages aggressively. Any value >= 1 acts as the watermark where trimming of allocations is initiated.”…”�”}”(hjÊh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÒhj�h²hubhÌ)�”}”(hŒThe default value is 1.”h]”hŒThe default value is 1.”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÖhj�h²hubhÌ)�”}”(hŒESee Documentation/admin-guide/mm/nommu-mmap.rst for more information.”h]”hŒESee Documentation/admin-guide/mm/nommu-mmap.rst for more information.”…”�”}”(hjæh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MØhj�h²hubeh}”(h]”Œ nr-trim-pages”ah ]”h"]”Œ nr_trim_pages”ah$]”h&]”uh1hµhh·h²hh³hÊh´MËubh¶)�”}”(hhh]”(h»)�”}”(hŒnuma_zonelist_order”h]”hŒnuma_zonelist_order”…”�”}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjüh²hh³hÊh´MÜubhÌ)�”}”(hŒUThis sysctl is only for NUMA and it is deprecated. Anything but Node order will fail!”h]”hŒUThis sysctl is only for NUMA and it is deprecated. Anything but Node order will fail!”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÞhjüh²hubhÌ)�”}”(hŒ@'where the memory is allocated from' is controlled by zonelists.”h]”hŒD‘where the memory is allocated from’ is controlled by zonelists.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Máhjüh²hubhÌ)�”}”(hŒ~(This documentation ignores ZONE_HIGHMEM/ZONE_DMA32 for simple explanation. you may be able to read ZONE_DMA as ZONE_DMA32...)”h]”hŒ~(This documentation ignores ZONE_HIGHMEM/ZONE_DMA32 for simple explanation. you may be able to read ZONE_DMA as ZONE_DMA32...)”…”�”}”(hj)h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mãhjüh²hubhÌ)�”}”(hŒÝIn non-NUMA case, a zonelist for GFP_KERNEL is ordered as following. ZONE_NORMAL -> ZONE_DMA This means that a memory allocation request for GFP_KERNEL will get memory from ZONE_DMA only when ZONE_NORMAL is not available.”h]”hŒÝIn non-NUMA case, a zonelist for GFP_KERNEL is ordered as following. ZONE_NORMAL -> ZONE_DMA This means that a memory allocation request for GFP_KERNEL will get memory from ZONE_DMA only when ZONE_NORMAL is not available.”…”�”}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mæhjüh²hubhÌ)�”}”(hŒ}In NUMA case, you can think of following 2 types of order. Assume 2 node NUMA and below is zonelist of Node(0)'s GFP_KERNEL::”h]”hŒ~In NUMA case, you can think of following 2 types of order. Assume 2 node NUMA and below is zonelist of Node(0)’s GFP_KERNEL:”…”�”}”(hjEh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mëhjüh²hubjÏ )�”}”(hŒ†(A) Node(0) ZONE_NORMAL -> Node(0) ZONE_DMA -> Node(1) ZONE_NORMAL (B) Node(0) ZONE_NORMAL -> Node(1) ZONE_NORMAL -> Node(0) ZONE_DMA.”h]”hŒ†(A) Node(0) ZONE_NORMAL -> Node(0) ZONE_DMA -> Node(1) ZONE_NORMAL (B) Node(0) ZONE_NORMAL -> Node(1) ZONE_NORMAL -> Node(0) ZONE_DMA.”…”�”}”hjSsbah}”(h]”h ]”h"]”h$]”h&]”jÞ jß uh1jÎ h³hÊh´Mîhjüh²hubhÌ)�”}”(hŒÖType(A) offers the best locality for processes on Node(0), but ZONE_DMA will be used before ZONE_NORMAL exhaustion. This increases possibility of out-of-memory(OOM) of ZONE_DMA because ZONE_DMA is tend to be small.”h]”hŒÖType(A) offers the best locality for processes on Node(0), but ZONE_DMA will be used before ZONE_NORMAL exhaustion. This increases possibility of out-of-memory(OOM) of ZONE_DMA because ZONE_DMA is tend to be small.”…”�”}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mñhjüh²hubhÌ)�”}”(hŒVType(B) cannot offer the best locality but is more robust against OOM of the DMA zone.”h]”hŒVType(B) cannot offer the best locality but is more robust against OOM of the DMA zone.”…”�”}”(hjoh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mõhjüh²hubhÌ)�”}”(hŒThis value contains a flag that enables memory overcommitment.”h]”hŒ>This value contains a flag that enables memory overcommitment.”…”�”}”(hjÝh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MEhjÌh²hubhÌ)�”}”(hŒŠWhen this flag is 0, the kernel compares the userspace memory request size against total memory plus swap and rejects obvious overcommits.”h]”hŒŠWhen this flag is 0, the kernel compares the userspace memory request size against total memory plus swap and rejects obvious overcommits.”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MGhjÌh²hubhÌ)�”}”(hŒbWhen this flag is 1, the kernel pretends there is always enough memory until it actually runs out.”h]”hŒbWhen this flag is 1, the kernel pretends there is always enough memory until it actually runs out.”…”�”}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MJhjÌh²hubhÌ)�”}”(hŒ¦When this flag is 2, the kernel uses a "never overcommit" policy that attempts to prevent any overcommit of memory. Note that user_reserve_kbytes affects this policy.”h]”hŒªWhen this flag is 2, the kernel uses a “never overcommitâ€� policy that attempts to prevent any overcommit of memory. Note that user_reserve_kbytes affects this policy.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MMhjÌh²hubhÌ)�”}”(hŒ‘This feature can be very useful because there are a lot of programs that malloc() huge amounts of memory "just-in-case" and don't use much of it.”h]”hŒ—This feature can be very useful because there are a lot of programs that malloc() huge amounts of memory “just-in-caseâ€� and don’t use much of it.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MQhjÌh²hubhÌ)�”}”(hŒThe default value is 0.”h]”hŒThe default value is 0.”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MUhjÌh²hubhÌ)�”}”(hŒhSee Documentation/mm/overcommit-accounting.rst and mm/util.c::__vm_enough_memory() for more information.”h]”hŒhSee Documentation/mm/overcommit-accounting.rst and mm/util.c::__vm_enough_memory() for more information.”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MWhjÌh²hubeh}”(h]”Œovercommit-memory”ah ]”h"]”Œovercommit_memory”ah$]”h&]”uh1hµhh·h²hh³hÊh´MCubh¶)�”}”(hhh]”(h»)�”}”(hŒovercommit_ratio”h]”hŒovercommit_ratio”…”�”}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjGh²hh³hÊh´M\ubhÌ)�”}”(hŒ‘When overcommit_memory is set to 2, the committed address space is not permitted to exceed swap plus this percentage of physical RAM. See above.”h]”hŒ‘When overcommit_memory is set to 2, the committed address space is not permitted to exceed swap plus this percentage of physical RAM. See above.”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M^hjGh²hubeh}”(h]”Œovercommit-ratio”ah ]”h"]”Œovercommit_ratio”ah$]”h&]”uh1hµhh·h²hh³hÊh´M\ubh¶)�”}”(hhh]”(h»)�”}”(hŒ page-cluster”h]”hŒ page-cluster”…”�”}”(hjqh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjnh²hh³hÊh´MdubhÌ)�”}”(hX>page-cluster controls the number of pages up to which consecutive pages are read in from swap in a single attempt. This is the swap counterpart to page cache readahead. The mentioned consecutivity is not in terms of virtual/physical addresses, but consecutive on swap space - that means they were swapped out together.”h]”hX>page-cluster controls the number of pages up to which consecutive pages are read in from swap in a single attempt. This is the swap counterpart to page cache readahead. The mentioned consecutivity is not in terms of virtual/physical addresses, but consecutive on swap space - that means they were swapped out together.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mfhjnh²hubhÌ)�”}”(hŒ®It is a logarithmic value - setting it to zero means "1 page", setting it to 1 means "2 pages", setting it to 2 means "4 pages", etc. Zero disables swap readahead completely.”h]”hŒºIt is a logarithmic value - setting it to zero means “1 pageâ€�, setting it to 1 means “2 pagesâ€�, setting it to 2 means “4 pagesâ€�, etc. Zero disables swap readahead completely.”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mlhjnh²hubhÌ)�”}”(hŒ�The default value is three (eight pages at a time). There may be some small benefits in tuning this to a different value if your workload is swap-intensive.”h]”hŒ�The default value is three (eight pages at a time). There may be some small benefits in tuning this to a different value if your workload is swap-intensive.”…”�”}”(hj›h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mphjnh²hubhÌ)�”}”(hŒÓLower values mean lower latencies for initial faults, but at the same time extra faults and I/O delays for following faults if they would have been part of that consecutive pages readahead would have brought in.”h]”hŒÓLower values mean lower latencies for initial faults, but at the same time extra faults and I/O delays for following faults if they would have been part of that consecutive pages readahead would have brought in.”…”�”}”(hj©h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mthjnh²hubeh}”(h]”Œ page-cluster”ah ]”h"]”Œ page-cluster”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mdubh¶)�”}”(hhh]”(h»)�”}”(hŒpage_lock_unfairness”h]”hŒpage_lock_unfairness”…”�”}”(hjÂh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj¿h²hh³hÊh´MzubhÌ)�”}”(hX This value determines the number of times that the page lock can be stolen from under a waiter. After the lock is stolen the number of times specified in this file (default is 5), the "fair lock handoff" semantics will apply, and the waiter will only be awakened if the lock can be taken.”h]”hX$This value determines the number of times that the page lock can be stolen from under a waiter. After the lock is stolen the number of times specified in this file (default is 5), the “fair lock handoffâ€� semantics will apply, and the waiter will only be awakened if the lock can be taken.”…”�”}”(hjÐh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M|hj¿h²hubeh}”(h]”Œpage-lock-unfairness”ah ]”h"]”Œpage_lock_unfairness”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mzubh¶)�”}”(hhh]”(h»)�”}”(hŒ panic_on_oom”h]”hŒ panic_on_oom”…”�”}”(hjéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjæh²hh³hÊh´M‚ubhÌ)�”}”(hŒ8This enables or disables panic on out-of-memory feature.”h]”hŒ8This enables or disables panic on out-of-memory feature.”…”�”}”(hj÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M„hjæh²hubhÌ)�”}”(hŒ—If this is set to 0, the kernel will kill some rogue process, called oom_killer. Usually, oom_killer can kill rogue processes and system will survive.”h]”hŒ—If this is set to 0, the kernel will kill some rogue process, called oom_killer. Usually, oom_killer can kill rogue processes and system will survive.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M†hjæh²hubhÌ)�”}”(hXWIf this is set to 1, the kernel panics when out-of-memory happens. However, if a process limits using nodes by mempolicy/cpusets, and those nodes become memory exhaustion status, one process may be killed by oom-killer. No panic occurs in this case. Because other nodes' memory may be free. This means system total status may be not fatal yet.”h]”hXYIf this is set to 1, the kernel panics when out-of-memory happens. However, if a process limits using nodes by mempolicy/cpusets, and those nodes become memory exhaustion status, one process may be killed by oom-killer. No panic occurs in this case. Because other nodes’ memory may be free. This means system total status may be not fatal yet.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MŠhjæh²hubhÌ)�”}”(hŒ�If this is set to 2, the kernel panics compulsorily even on the above-mentioned. Even oom happens under memory cgroup, the whole system panics.”h]”hŒ�If this is set to 2, the kernel panics compulsorily even on the above-mentioned. Even oom happens under memory cgroup, the whole system panics.”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M‘hjæh²hubhÌ)�”}”(hŒThe default value is 0.”h]”hŒThe default value is 0.”…”�”}”(hj/h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M•hjæh²hubhÌ)�”}”(hŒb1 and 2 are for failover of clustering. Please select either according to your policy of failover.”h]”hŒb1 and 2 are for failover of clustering. Please select either according to your policy of failover.”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M—hjæh²hubhÌ)�”}”(hŒepanic_on_oom=2+kdump gives you very strong tool to investigate why oom happens. You can get snapshot.”h]”hŒepanic_on_oom=2+kdump gives you very strong tool to investigate why oom happens. You can get snapshot.”…”�”}”(hjKh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mšhjæh²hubeh}”(h]”Œ panic-on-oom”ah ]”h"]”Œ panic_on_oom”ah$]”h&]”uh1hµhh·h²hh³hÊh´M‚ubh¶)�”}”(hhh]”(h»)�”}”(hŒ%panic_on_unrecoverable_memory_failure”h]”hŒ%panic_on_unrecoverable_memory_failure”…”�”}”(hjdh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjah²hh³hÊh´MŸubhÌ)�”}”(hXnWhen a hardware memory error (e.g. multi-bit ECC) hits a kernel page that cannot be recovered by the memory failure handler, the default behaviour is to ignore the error and continue operation. This is dangerous because the corrupted data remains accessible to the kernel, risking silent data corruption or a delayed crash when the poisoned memory is next accessed.”h]”hXnWhen a hardware memory error (e.g. multi-bit ECC) hits a kernel page that cannot be recovered by the memory failure handler, the default behaviour is to ignore the error and continue operation. This is dangerous because the corrupted data remains accessible to the kernel, risking silent data corruption or a delayed crash when the poisoned memory is next accessed.”…”�”}”(hjrh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M¡hjah²hubhÌ)�”}”(hXŠWhen enabled, this sysctl triggers a panic on memory failure events hitting kernel-owned pages that the handler cannot recover: ``PageReserved`` (firmware reservations, kernel image, vDSO, zero page, and similar memblock-reserved regions), ``PageSlab``, ``PageTable``, and ``PageLargeKmalloc``. These are owned by the kernel and the memory failure handler cannot reliably evict their contents.”h]”(hŒ€When enabled, this sysctl triggers a panic on memory failure events hitting kernel-owned pages that the handler cannot recover: ”…”�”}”(hj€h²hh³Nh´NubhŒliteral”“”)�”}”(hŒ``PageReserved``”h]”hŒ PageReserved”…”�”}”(hjŠh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jˆhj€ubhŒ` (firmware reservations, kernel image, vDSO, zero page, and similar memblock-reserved regions), ”…”�”}”(hj€h²hh³Nh´Nubj‰)�”}”(hŒ ``PageSlab``”h]”hŒPageSlab”…”�”}”(hjœh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jˆhj€ubhŒ, ”…”�”}”(hj€h²hh³Nh´Nubj‰)�”}”(hŒ ``PageTable``”h]”hŒ PageTable”…”�”}”(hj®h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jˆhj€ubhŒ, and ”…”�”}”(hj€h²hh³Nh´Nubj‰)�”}”(hŒ``PageLargeKmalloc``”h]”hŒPageLargeKmalloc”…”�”}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jˆhj€ubhŒe. These are owned by the kernel and the memory failure handler cannot reliably evict their contents.”…”�”}”(hj€h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M¨hjah²hubhÌ)�”}”(hXïOther unrecoverable kernel-owned populations (vmalloc allocations, kernel stack pages, ...) are not currently covered because the handler has no page-type signal that distinguishes them from a userspace folio temporarily off the LRU during migration or compaction. Such pages still go through the standard MF_MSG_GET_HWPOISON path: ``PG_hwpoison`` is set on them and a delayed crash on the next access remains possible. Coverage may grow as the handler gains stronger kernel-ownership signals.”h]”(hXMOther unrecoverable kernel-owned populations (vmalloc allocations, kernel stack pages, ...) are not currently covered because the handler has no page-type signal that distinguishes them from a userspace folio temporarily off the LRU during migration or compaction. Such pages still go through the standard MF_MSG_GET_HWPOISON path: ”…”�”}”(hjØh²hh³Nh´Nubj‰)�”}”(hŒ``PG_hwpoison``”h]”hŒ PG_hwpoison”…”�”}”(hjàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jˆhjØubhŒ“ is set on them and a delayed crash on the next access remains possible. Coverage may grow as the handler gains stronger kernel-ownership signals.”…”�”}”(hjØh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M°hjah²hubhÌ)�”}”(hX·Recoverable failure paths are also intentionally left out: in-flight buddy allocations and other transient races with the page allocator can reach the same diagnostic, and panicking on them would risk killing the box for a page destined for userspace where the standard SIGBUS recovery path applies. Pages whose state could not be classified at all are not covered either, since an unknown state is not a sound basis for a panic decision.”h]”hX·Recoverable failure paths are also intentionally left out: in-flight buddy allocations and other transient races with the page allocator can reach the same diagnostic, and panicking on them would risk killing the box for a page destined for userspace where the standard SIGBUS recovery path applies. Pages whose state could not be classified at all are not covered either, since an unknown state is not a sound basis for a panic decision.”…”�”}”(hjøh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M¹hjah²hubhÌ)�”}”(hŒÙFor many environments it is preferable to panic immediately with a clean crash dump that captures the original error context, rather than to continue and face a random crash later whose cause is difficult to diagnose.”h]”hŒÙFor many environments it is preferable to panic immediately with a clean crash dump that captures the original error context, rather than to continue and face a random crash later whose cause is difficult to diagnose.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÁhjah²hubh¶)�”}”(hhh]”(h»)�”}”(hŒ Use cases”h]”hŒ Use cases”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjh²hh³hÊh´MÇubhÌ)�”}”(hŒœThis option is most useful in environments where unattributed crashes are expensive to debug or where data integrity must take precedence over availability:”h]”hŒœThis option is most useful in environments where unattributed crashes are expensive to debug or where data integrity must take precedence over availability:”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÉhjh²hubjf)�”}”(hhh]”(jk)�”}”(hŒçLarge fleets, where multi-bit ECC errors on kernel pages are observed regularly and post-mortem analysis of an unrelated downstream crash (often seconds to minutes after the original error) consumes significant engineering effort. ”h]”hÌ)�”}”(hŒæLarge fleets, where multi-bit ECC errors on kernel pages are observed regularly and post-mortem analysis of an unrelated downstream crash (often seconds to minutes after the original error) consumes significant engineering effort.”h]”hŒæLarge fleets, where multi-bit ECC errors on kernel pages are observed regularly and post-mortem analysis of an unrelated downstream crash (often seconds to minutes after the original error) consumes significant engineering effort.”…”�”}”(hj:h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÍhj6ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhj3h²hh³hÊh´Nubjk)�”}”(hXSystems configured with kdump, where panicking at the moment of the hardware error produces a vmcore that still contains the faulting address, the affected page state, and the originating MCE/GHES record — context that is typically lost by the time a delayed crash occurs. ”h]”hÌ)�”}”(hXSystems configured with kdump, where panicking at the moment of the hardware error produces a vmcore that still contains the faulting address, the affected page state, and the originating MCE/GHES record — context that is typically lost by the time a delayed crash occurs.”h]”hXSystems configured with kdump, where panicking at the moment of the hardware error produces a vmcore that still contains the faulting address, the affected page state, and the originating MCE/GHES record — context that is typically lost by the time a delayed crash occurs.”…”�”}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÒhjNubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhj3h²hh³hÊh´Nubjk)�”}”(hŒÀHigh-availability clusters that rely on fast, deterministic node failure for failover, and prefer an immediate panic over silent data corruption propagating to replicas or persistent storage. ”h]”hÌ)�”}”(hŒ¿High-availability clusters that rely on fast, deterministic node failure for failover, and prefer an immediate panic over silent data corruption propagating to replicas or persistent storage.”h]”hŒ¿High-availability clusters that rely on fast, deterministic node failure for failover, and prefer an immediate panic over silent data corruption propagating to replicas or persistent storage.”…”�”}”(hjjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MØhjfubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhj3h²hh³hÊh´Nubjk)�”}”(hXKernel and platform developers reproducing hwpoison issues with tools such as ``mce-inject`` or error-injection debugfs interfaces, where panicking on the unrecoverable path makes regressions immediately visible instead of surfacing as later, unrelated failures. ”h]”hÌ)�”}”(hXKernel and platform developers reproducing hwpoison issues with tools such as ``mce-inject`` or error-injection debugfs interfaces, where panicking on the unrecoverable path makes regressions immediately visible instead of surfacing as later, unrelated failures.”h]”(hŒNKernel and platform developers reproducing hwpoison issues with tools such as ”…”�”}”(hj‚h²hh³Nh´Nubj‰)�”}”(hŒ``mce-inject``”h]”hŒ mce-inject”…”�”}”(hjŠh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jˆhj‚ubhŒª or error-injection debugfs interfaces, where panicking on the unrecoverable path makes regressions immediately visible instead of surfacing as later, unrelated failures.”…”�”}”(hj‚h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÜhj~ubah}”(h]”h ]”h"]”h$]”h&]”uh1jjhj3h²hh³hÊh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j{Œ*”uh1jeh³hÊh´MÍhjh²hubj] )�”}”(hhh]”jb )�”}”(hhh]”(jg )�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jf hj²ubjg )�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”KEuh1jf hj²ubj} )�”}”(hhh]”(j‚ )�”}”(hhh]”(j‡ )�”}”(hhh]”hÌ)�”}”(hŒ0”h]”hŒ0”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MãhjÏubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hjÌubj‡ )�”}”(hhh]”hÌ)�”}”(hŒ$Try to continue operation (default).”h]”hŒ$Try to continue operation (default).”…”�”}”(hjéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mãhjæubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hjÌubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� hjÉubj‚ )�”}”(hhh]”(j‡ )�”}”(hhh]”hÌ)�”}”(hŒ1”h]”hŒ1”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mähjubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hjubj‡ )�”}”(hhh]”hÌ)�”}”(hŒ_Panic immediately. If the ``panic`` sysctl is also non-zero then the machine will be rebooted.”h]”(hŒPanic immediately. If the ”…”�”}”(hj h²hh³Nh´Nubj‰)�”}”(hŒ ``panic``”h]”hŒpanic”…”�”}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jˆhj ubhŒ; sysctl is also non-zero then the machine will be rebooted.”…”�”}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mähjubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� hjÉubeh}”(h]”h ]”h"]”h$]”h&]”uh1j| hj²ubeh}”(h]”h ]”h"]”h$]”h&]”Œcols”Kuh1ja hj¯ubah}”(h]”h ]”h"]”h$]”h&]”uh1j\ hjh²hh³hÊh´NubhÌ)�”}”(hŒ Example::”h]”hŒExample:”…”�”}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mèhjh²hubjÏ )�”}”(hŒ;echo 1 > /proc/sys/vm/panic_on_unrecoverable_memory_failure”h]”hŒ;echo 1 > /proc/sys/vm/panic_on_unrecoverable_memory_failure”…”�”}”hjmsbah}”(h]”h ]”h"]”h$]”h&]”jÞ jß uh1jÎ h³hÊh´Mêhjh²hubeh}”(h]”Œ use-cases”ah ]”h"]”Œ use cases”ah$]”h&]”uh1hµhjah²hh³hÊh´MÇubeh}”(h]”Œ%panic-on-unrecoverable-memory-failure”ah ]”h"]”Œ%panic_on_unrecoverable_memory_failure”ah$]”h&]”uh1hµhh·h²hh³hÊh´MŸubh¶)�”}”(hhh]”(h»)�”}”(hŒpercpu_pagelist_high_fraction”h]”hŒpercpu_pagelist_high_fraction”…”�”}”(hjŽh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj‹h²hh³hÊh´MîubhÌ)�”}”(hXÉThis is the fraction of pages in each zone that are can be stored to per-cpu page lists. It is an upper boundary that is divided depending on the number of online CPUs. The min value for this is 8 which means that we do not allow more than 1/8th of pages in each zone to be stored on per-cpu page lists. This entry only changes the value of hot per-cpu page lists. A user can specify a number like 100 to allocate 1/100th of each zone between per-cpu lists.”h]”hXÉThis is the fraction of pages in each zone that are can be stored to per-cpu page lists. It is an upper boundary that is divided depending on the number of online CPUs. The min value for this is 8 which means that we do not allow more than 1/8th of pages in each zone to be stored on per-cpu page lists. This entry only changes the value of hot per-cpu page lists. A user can specify a number like 100 to allocate 1/100th of each zone between per-cpu lists.”…”�”}”(hjœh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mðhj‹h²hubhÌ)�”}”(hŒ�The batch value of each per-cpu page list remains the same regardless of the value of the high fraction so allocation latencies are unaffected.”h]”hŒ�The batch value of each per-cpu page list remains the same regardless of the value of the high fraction so allocation latencies are unaffected.”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Møhj‹h²hubhÌ)�”}”(hŒîThe initial value is zero. Kernel uses this value to set the high pcp->high mark based on the low watermark for the zone and the number of local online CPUs. If the user writes '0' to this sysctl, it will revert to this default behavior.”h]”hŒòThe initial value is zero. Kernel uses this value to set the high pcp->high mark based on the low watermark for the zone and the number of local online CPUs. If the user writes ‘0’ to this sysctl, it will revert to this default behavior.”…”�”}”(hj¸h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mûhj‹h²hubeh}”(h]”Œpercpu-pagelist-high-fraction”ah ]”h"]”Œpercpu_pagelist_high_fraction”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mîubh¶)�”}”(hhh]”(h»)�”}”(hŒ stat_interval”h]”hŒ stat_interval”…”�”}”(hjÑh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjÎh²hh³hÊh´MubhÌ)�”}”(hŒTThe time interval between which vm statistics are updated. The default is 1 second.”h]”hŒTThe time interval between which vm statistics are updated. The default is 1 second.”…”�”}”(hjßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MhjÎh²hubeh}”(h]”Œ stat-interval”ah ]”h"]”Œ stat_interval”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mubh¶)�”}”(hhh]”(h»)�”}”(hŒ stat_refresh”h]”hŒ stat_refresh”…”�”}”(hjøh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjõh²hh³hÊh´M ubhÌ)�”}”(hŒ¸Any read or write (by root only) flushes all the per-cpu vm statistics into their global totals, for more accurate reports when testing e.g. cat /proc/sys/vm/stat_refresh /proc/meminfo”h]”hŒ¸Any read or write (by root only) flushes all the per-cpu vm statistics into their global totals, for more accurate reports when testing e.g. cat /proc/sys/vm/stat_refresh /proc/meminfo”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M hjõh²hubhÌ)�”}”(hX%As a side-effect, it also checks for negative totals (elsewhere reported as 0) and "fails" with EINVAL if any are found, with a warning in dmesg. (At time of writing, a few stats are known sometimes to be found negative, with no ill effects: errors and warnings on these stats are suppressed.)”h]”hX)As a side-effect, it also checks for negative totals (elsewhere reported as 0) and “failsâ€� with EINVAL if any are found, with a warning in dmesg. (At time of writing, a few stats are known sometimes to be found negative, with no ill effects: errors and warnings on these stats are suppressed.)”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhjõh²hubeh}”(h]”Œ stat-refresh”ah ]”h"]”Œ stat_refresh”ah$]”h&]”uh1hµhh·h²hh³hÊh´M ubh¶)�”}”(hhh]”(h»)�”}”(hŒ numa_stat”h]”hŒ numa_stat”…”�”}”(hj-h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj*h²hh³hÊh´MubhÌ)�”}”(hŒ?This interface allows runtime configuration of numa statistics.”h]”hŒ?This interface allows runtime configuration of numa statistics.”…”�”}”(hj;h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj*h²hubhÌ)�”}”(hŒ™When page allocation performance becomes a bottleneck and you can tolerate some possible tool breakage and decreased numa counter precision, you can do::”h]”hŒ˜When page allocation performance becomes a bottleneck and you can tolerate some possible tool breakage and decreased numa counter precision, you can do:”…”�”}”(hjIh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj*h²hubjÏ )�”}”(hŒecho 0 > /proc/sys/vm/numa_stat”h]”hŒecho 0 > /proc/sys/vm/numa_stat”…”�”}”hjWsbah}”(h]”h ]”h"]”h$]”h&]”jÞ jß uh1jÎ h³hÊh´Mhj*h²hubhÌ)�”}”(hŒcWhen page allocation performance is not a bottleneck and you want all tooling to work, you can do::”h]”hŒbWhen page allocation performance is not a bottleneck and you want all tooling to work, you can do:”…”�”}”(hjeh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M hj*h²hubjÏ )�”}”(hŒecho 1 > /proc/sys/vm/numa_stat”h]”hŒecho 1 > /proc/sys/vm/numa_stat”…”�”}”hjssbah}”(h]”h ]”h"]”h$]”h&]”jÞ jß uh1jÎ h³hÊh´M#hj*h²hubeh}”(h]”Œ numa-stat”ah ]”h"]”Œ numa_stat”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mubh¶)�”}”(hhh]”(h»)�”}”(hŒ swappiness”h]”hŒ swappiness”…”�”}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj‰h²hh³hÊh´M'ubhÌ)�”}”(hXBThis control is used to define the rough relative IO cost of swapping and filesystem paging, as a value between 0 and 200. At 100, the VM assumes equal IO cost and will thus apply memory pressure to the page cache and swap-backed pages equally; lower values signify more expensive swap IO, higher values indicates cheaper.”h]”hXBThis control is used to define the rough relative IO cost of swapping and filesystem paging, as a value between 0 and 200. At 100, the VM assumes equal IO cost and will thus apply memory pressure to the page cache and swap-backed pages equally; lower values signify more expensive swap IO, higher values indicates cheaper.”…”�”}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M)hj‰h²hubhÌ)�”}”(hŒÂKeep in mind that filesystem IO patterns under memory pressure tend to be more efficient than swap's random IO. An optimal value will require experimentation and will also be workload-dependent.”h]”hŒÄKeep in mind that filesystem IO patterns under memory pressure tend to be more efficient than swap’s random IO. An optimal value will require experimentation and will also be workload-dependent.”…”�”}”(hj¨h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M/hj‰h²hubhÌ)�”}”(hŒThe default value is 60.”h]”hŒThe default value is 60.”…”�”}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M3hj‰h²hubhÌ)�”}”(hX<For in-memory swap, like zram or zswap, as well as hybrid setups that have swap on faster devices than the filesystem, values beyond 100 can be considered. For example, if the random IO against the swap device is on average 2x faster than IO from the filesystem, swappiness should be 133 (x + 2x = 200, 2x = 133.33).”h]”hX<For in-memory swap, like zram or zswap, as well as hybrid setups that have swap on faster devices than the filesystem, values beyond 100 can be considered. For example, if the random IO against the swap device is on average 2x faster than IO from the filesystem, swappiness should be 133 (x + 2x = 200, 2x = 133.33).”…”�”}”(hjÄh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M5hj‰h²hubhÌ)�”}”(hŒ�At 0, the kernel will not initiate swap until the amount of free and file-backed pages is less than the high watermark in a zone.”h]”hŒ�At 0, the kernel will not initiate swap until the amount of free and file-backed pages is less than the high watermark in a zone.”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M;hj‰h²hubeh}”(h]”Œ swappiness”ah ]”h"]”Œ swappiness”ah$]”h&]”uh1hµhh·h²hh³hÊh´M'ubh¶)�”}”(hhh]”(h»)�”}”(hŒunprivileged_userfaultfd”h]”hŒunprivileged_userfaultfd”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjèh²hh³hÊh´M@ubhÌ)�”}”(hX¡This flag controls the mode in which unprivileged users can use the userfaultfd system calls. Set this to 0 to restrict unprivileged users to handle page faults in user mode only. In this case, users without SYS_CAP_PTRACE must pass UFFD_USER_MODE_ONLY in order for userfaultfd to succeed. Prohibiting use of userfaultfd for handling faults from kernel mode may make certain vulnerabilities more difficult to exploit.”h]”hX¡This flag controls the mode in which unprivileged users can use the userfaultfd system calls. Set this to 0 to restrict unprivileged users to handle page faults in user mode only. In this case, users without SYS_CAP_PTRACE must pass UFFD_USER_MODE_ONLY in order for userfaultfd to succeed. Prohibiting use of userfaultfd for handling faults from kernel mode may make certain vulnerabilities more difficult to exploit.”…”�”}”(hjùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MBhjèh²hubhÌ)�”}”(hŒgSet this to 1 to allow unprivileged users to use the userfaultfd system calls without any restrictions.”h]”hŒgSet this to 1 to allow unprivileged users to use the userfaultfd system calls without any restrictions.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MIhjèh²hubhÌ)�”}”(hŒThe default value is 0.”h]”hŒThe default value is 0.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MLhjèh²hubhÌ)�”}”(hŒšAnother way to control permissions for userfaultfd is to use /dev/userfaultfd instead of userfaultfd(2). See Documentation/admin-guide/mm/userfaultfd.rst.”h]”hŒšAnother way to control permissions for userfaultfd is to use /dev/userfaultfd instead of userfaultfd(2). See Documentation/admin-guide/mm/userfaultfd.rst.”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MNhjèh²hubeh}”(h]”Œunprivileged-userfaultfd”ah ]”h"]”Œunprivileged_userfaultfd”ah$]”h&]”uh1hµhh·h²hh³hÊh´M@ubh¶)�”}”(hhh]”(h»)�”}”(hŒuser_reserve_kbytes”h]”hŒuser_reserve_kbytes”…”�”}”(hj<h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj9h²hh³hÊh´MSubhÌ)�”}”(hX When overcommit_memory is set to 2, "never overcommit" mode, reserve min(3% of current process size, user_reserve_kbytes) of free memory. This is intended to prevent a user from starting a single memory hogging process, such that they cannot recover (kill the hog).”h]”hX When overcommit_memory is set to 2, “never overcommitâ€� mode, reserve min(3% of current process size, user_reserve_kbytes) of free memory. This is intended to prevent a user from starting a single memory hogging process, such that they cannot recover (kill the hog).”…”�”}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MUhj9h²hubhÌ)�”}”(hŒCThis setting has no effect when overcommit_memory is set to 0 or 1.”h]”hŒCThis setting has no effect when overcommit_memory is set to 0 or 1.”…”�”}”(hjXh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MZhj9h²hubhÌ)�”}”(hŒKuser_reserve_kbytes defaults to min(3% of the current process size, 128MB).”h]”hŒKuser_reserve_kbytes defaults to min(3% of the current process size, 128MB).”…”�”}”(hjfh²•¹Ehh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M\hj9h²hubhÌ)�”}”(hŒäIf this is reduced to zero, then the user will be allowed to allocate all free memory with a single process, minus admin_reserve_kbytes. Any subsequent attempts to execute a command will result in "fork: Cannot allocate memory".”h]”hŒèIf this is reduced to zero, then the user will be allowed to allocate all free memory with a single process, minus admin_reserve_kbytes. Any subsequent attempts to execute a command will result in “fork: Cannot allocate memoryâ€�.”…”�”}”(hjth²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M^hj9h²hubhÌ)�”}”(hŒCChanging this takes effect whenever an application requests memory.”h]”hŒCChanging this takes effect whenever an application requests memory.”…”�”}”(hj‚h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mchj9h²hubeh}”(h]”Œuser-reserve-kbytes”ah ]”h"]”Œuser_reserve_kbytes”ah$]”h&]”uh1hµhh·h²hh³hÊh´MSubh¶)�”}”(hhh]”(h»)�”}”(hŒvfs_cache_pressure”h]”hŒvfs_cache_pressure”…”�”}”(hj›h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj˜h²hh³hÊh´MgubhÌ)�”}”(hŒ‰This percentage value controls the tendency of the kernel to reclaim the memory which is used for caching of directory and inode objects.”h]”hŒ‰This percentage value controls the tendency of the kernel to reclaim the memory which is used for caching of directory and inode objects.”…”�”}”(hj©h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mihj˜h²hubhÌ)�”}”(hX.At the default value of vfs_cache_pressure=vfs_cache_pressure_denom the kernel will attempt to reclaim dentries and inodes at a "fair" rate with respect to pagecache and swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer to retain dentry and inode caches. When vfs_cache_pressure=0, the kernel will never reclaim dentries and inodes due to memory pressure and this can easily lead to out-of-memory conditions. Increasing vfs_cache_pressure beyond vfs_cache_pressure_denom causes the kernel to prefer to reclaim dentries and inodes.”h]”hX2At the default value of vfs_cache_pressure=vfs_cache_pressure_denom the kernel will attempt to reclaim dentries and inodes at a “fairâ€� rate with respect to pagecache and swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer to retain dentry and inode caches. When vfs_cache_pressure=0, the kernel will never reclaim dentries and inodes due to memory pressure and this can easily lead to out-of-memory conditions. Increasing vfs_cache_pressure beyond vfs_cache_pressure_denom causes the kernel to prefer to reclaim dentries and inodes.”…”�”}”(hj·h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mlhj˜h²hubhÌ)�”}”(hXIIncreasing vfs_cache_pressure significantly beyond vfs_cache_pressure_denom may have negative performance impact. Reclaim code needs to take various locks to find freeable directory and inode objects. When vfs_cache_pressure equals (10 * vfs_cache_pressure_denom), it will look for ten times more freeable objects than there are.”h]”hXIIncreasing vfs_cache_pressure significantly beyond vfs_cache_pressure_denom may have negative performance impact. Reclaim code needs to take various locks to find freeable directory and inode objects. When vfs_cache_pressure equals (10 * vfs_cache_pressure_denom), it will look for ten times more freeable objects than there are.”…”�”}”(hjÅh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Muhj˜h²hubhÌ)�”}”(hŒPNote: This setting should always be used together with vfs_cache_pressure_denom.”h]”hŒPNote: This setting should always be used together with vfs_cache_pressure_denom.”…”�”}”(hjÓh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M{hj˜h²hubeh}”(h]”Œvfs-cache-pressure”ah ]”h"]”Œvfs_cache_pressure”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mgubh¶)�”}”(hhh]”(h»)�”}”(hŒvfs_cache_pressure_denom”h]”hŒvfs_cache_pressure_denom”…”�”}”(hjìh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjéh²hh³hÊh´M~ubhÌ)�”}”(hŒjDefaults to 100 (minimum allowed value). Requires corresponding vfs_cache_pressure setting to take effect.”h]”hŒjDefaults to 100 (minimum allowed value). Requires corresponding vfs_cache_pressure setting to take effect.”…”�”}”(hjúh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M€hjéh²hubeh}”(h]”Œvfs-cache-pressure-denom”ah ]”h"]”Œvfs_cache_pressure_denom”ah$]”h&]”uh1hµhh·h²hh³hÊh´M~ubh¶)�”}”(hhh]”(h»)�”}”(hŒwatermark_boost_factor”h]”hŒwatermark_boost_factor”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjh²hh³hÊh´M„ubhÌ)�”}”(hX’This factor controls the level of reclaim when memory is being fragmented. It defines the percentage of the high watermark of a zone that will be reclaimed if pages of different mobility are being mixed within pageblocks. The intent is that compaction has less work to do in the future and to increase the success rate of future high-order allocations such as SLUB allocations, THP and hugetlbfs pages.”h]”hX’This factor controls the level of reclaim when memory is being fragmented. It defines the percentage of the high watermark of a zone that will be reclaimed if pages of different mobility are being mixed within pageblocks. The intent is that compaction has less work to do in the future and to increase the success rate of future high-order allocations such as SLUB allocations, THP and hugetlbfs pages.”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M†hjh²hubhÌ)�”}”(hXTo make it sensible with respect to the watermark_scale_factor parameter, the unit is in fractions of 10,000. The default value of 15,000 means that up to 150% of the high watermark will be reclaimed in the event of a pageblock being mixed due to fragmentation. The level of reclaim is determined by the number of fragmentation events that occurred in the recent past. If this value is smaller than a pageblock then a pageblocks worth of pages will be reclaimed (e.g. 2MB on 64-bit x86). A boost factor of 0 will disable the feature.”h]”hXTo make it sensible with respect to the watermark_scale_factor parameter, the unit is in fractions of 10,000. The default value of 15,000 means that up to 150% of the high watermark will be reclaimed in the event of a pageblock being mixed due to fragmentation. The level of reclaim is determined by the number of fragmentation events that occurred in the recent past. If this value is smaller than a pageblock then a pageblocks worth of pages will be reclaimed (e.g. 2MB on 64-bit x86). A boost factor of 0 will disable the feature.”…”�”}”(hj/h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M�hjh²hubeh}”(h]”Œwatermark-boost-factor”ah ]”h"]”Œwatermark_boost_factor”ah$]”h&]”uh1hµhh·h²hh³hÊh´M„ubh¶)�”}”(hhh]”(h»)�”}”(hŒwatermark_scale_factor”h]”hŒwatermark_scale_factor”…”�”}”(hjHh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjEh²hh³hÊh´M˜ubhÌ)�”}”(hŒÉThis factor controls the aggressiveness of kswapd. It defines the amount of memory left in a node/system before kswapd is woken up and how much memory needs to be free before kswapd goes back to sleep.”h]”hŒÉThis factor controls the aggressiveness of kswapd. It defines the amount of memory left in a node/system before kswapd is woken up and how much memory needs to be free before kswapd goes back to sleep.”…”�”}”(hjVh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MšhjEh²hubhÌ)�”}”(hŒÄThe unit is in fractions of 10,000. The default value of 10 means the distances between watermarks are 0.1% of the available memory in the node/system. The maximum value is 3000, or 30% of memory.”h]”hŒÄThe unit is in fractions of 10,000. The default value of 10 means the distances between watermarks are 0.1% of the available memory in the node/system. The maximum value is 3000, or 30% of memory.”…”�”}”(hjdh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MžhjEh²hubhÌ)�”}”(hXUA high rate of threads entering direct reclaim (allocstall) or kswapd going to sleep prematurely (kswapd_low_wmark_hit_quickly) can indicate that the number of free pages kswapd maintains for latency reasons is too small for the allocation bursts occurring in the system. This knob can then be used to tune kswapd aggressiveness accordingly.”h]”hXUA high rate of threads entering direct reclaim (allocstall) or kswapd going to sleep prematurely (kswapd_low_wmark_hit_quickly) can indicate that the number of free pages kswapd maintains for latency reasons is too small for the allocation bursts occurring in the system. This knob can then be used to tune kswapd aggressiveness accordingly.”…”�”}”(hjrh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M¢hjEh²hubeh}”(h]”Œwatermark-scale-factor”ah ]”h"]”Œwatermark_scale_factor”ah$]”h&]”uh1hµhh·h²hh³hÊh´M˜ubh¶)�”}”(hhh]”(h»)�”}”(hŒzone_reclaim_mode”h]”hŒzone_reclaim_mode”…”�”}”(hj‹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjˆh²hh³hÊh´MªubhÌ)�”}”(hŒôZone_reclaim_mode allows someone to set more or less aggressive approaches to reclaim memory when a zone runs out of memory. If it is set to zero then no zone reclaim occurs. Allocations will be satisfied from other zones / nodes in the system.”h]”hŒôZone_reclaim_mode allows someone to set more or less aggressive approaches to reclaim memory when a zone runs out of memory. If it is set to zero then no zone reclaim occurs. Allocations will be satisfied from other zones / nodes in the system.”…”�”}”(hj™h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M¬hjˆh²hubhÌ)�”}”(hŒThis is value OR'ed together of”h]”hŒ!This is value OR’ed together of”…”�”}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M±hjˆh²hubj] )�”}”(hhh]”jb )�”}”(hhh]”(jg )�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1jf hj¸ubjg )�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”K#uh1jf hj¸ubj} )�”}”(hhh]”(j‚ )�”}”(hhh]”(j‡ )�”}”(hhh]”hÌ)�”}”(hj h]”hŒ1”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M´hjÕubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hjÒubj‡ )�”}”(hhh]”hÌ)�”}”(hŒZone reclaim on”h]”hŒZone reclaim on”…”�”}”(hjîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M´hjëubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hjÒubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� hjÏubj‚ )�”}”(hhh]”(j‡ )�”}”(hhh]”hÌ)�”}”(hŒ2”h]”hŒ2”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mµhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hjubj‡ )�”}”(hhh]”hÌ)�”}”(hŒ#Zone reclaim writes dirty pages out”h]”hŒ#Zone reclaim writes dirty pages out”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mµhj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� hjÏubj‚ )�”}”(hhh]”(j‡ )�”}”(hhh]”hÌ)�”}”(hŒ4”h]”hŒ4”…”�”}”(hjEh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M¶hjBubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hj?ubj‡ )�”}”(hhh]”hÌ)�”}”(hŒZone reclaim swaps pages”h]”hŒZone reclaim swaps pages”…”�”}”(hj\h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M¶hjYubah}”(h]”h ]”h"]”h$]”h&]”uh1j† hj?ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j� hjÏubeh}”(h]”h ]”h"]”h$]”h&]”uh1j| hj¸ubeh}”(h]”h ]”h"]”h$]”h&]”Œcols”Kuh1ja hjµubah}”(h]”h ]”h"]”h$]”h&]”uh1j\ hjˆh²hh³hÊh´NubhÌ)�”}”(hŒçzone_reclaim_mode is disabled by default. For file servers or workloads that benefit from having their data cached, zone_reclaim_mode should be left disabled as the caching effect is likely to be more important than data locality.”h]”hŒçzone_reclaim_mode is disabled by default. For file servers or workloads that benefit from having their data cached, zone_reclaim_mode should be left disabled as the caching effect is likely to be more important than data locality.”…”�”}”(hj‰h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M¹hjˆh²hubhÌ)�”}”(hX8Consider enabling one or more zone_reclaim mode bits if it's known that the workload is partitioned such that each partition fits within a NUMA node and that accessing remote memory would cause a measurable performance reduction. The page allocator will take additional actions before allocating off node pages.”h]”hX:Consider enabling one or more zone_reclaim mode bits if it’s known that the workload is partitioned such that each partition fits within a NUMA node and that accessing remote memory would cause a measurable performance reduction. The page allocator will take additional actions before allocating off node pages.”…”�”}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M¾hjˆh²hubhÌ)�”}”(hXîAllowing zone reclaim to write out pages stops processes that are writing large amounts of data from dirtying pages on other nodes. Zone reclaim will write out dirty pages if a zone fills up and so effectively throttle the process. This may decrease the performance of a single process since it cannot use all of system memory to buffer the outgoing writes anymore but it preserve the memory on other nodes so that the performance of other processes running on other nodes will not be affected.”h]”hXîAllowing zone reclaim to write out pages stops processes that are writing large amounts of data from dirtying pages on other nodes. Zone reclaim will write out dirty pages if a zone fills up and so effectively throttle the process. This may decrease the performance of a single process since it cannot use all of system memory to buffer the outgoing writes anymore but it preserve the memory on other nodes so that the performance of other processes running on other nodes will not be affected.”…”�”}”(hj¥h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÄhjˆh²hubhÌ)�”}”(hŒ“Allowing regular swap effectively restricts allocations to the local node unless explicitly overridden by memory policies or cpuset configurations.”h]”hŒ“Allowing regular swap effectively restricts allocations to the local node unless explicitly overridden by memory policies or cpuset configurations.”…”�”}”(hj³h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÌhjˆh²hubeh}”(h]”Œzone-reclaim-mode”ah ]”h"]”Œzone_reclaim_mode”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mªubeh}”(h]”Œdocumentation-for-proc-sys-vm”ah ]”h"]”Œdocumentation for /proc/sys/vm/”ah$]”h&]”uh1hµhhh²hh³hÊh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÊuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)�”}”(hºNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”j† Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jóŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÊŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jÎjËjjj8j5j‰j†j°j­jåjâjLjIj�j~jÄjÁjëjèj j jU jR jž j› jƒ j€ j„ j� j¹ j¶ jü jù j# j jJ jG j-j*jpjmjÝjÚjJjGj�jŠjÐjÍj!jjrjoj™j–jÎjËjjjªj§jßjÜj0j-jejbjšj—jùjöjäjáj5j2j”j‘jÉjÆjDjAjkjhj¼j¹jãjàj^j[jˆj…j€j}jËjÈjòjïj'j$j†jƒjåjâj6j3j•j’jæjãj j jBj?j…j‚jÆjÃuŒ nametypes”}”(jΉj‰j8‰j‰‰j°‰jå‰jL‰j�‰jĉjë‰j ‰jU ‰jž ‰jƒ ‰j„ ‰j¹ ‰jü ‰j# ‰jJ ‰j-‰jp‰j݉jJ‰j�‰jЉj!‰jr‰j™‰jΉj‰jª‰j߉j0‰je‰jš‰jù‰jä‰j5‰j”‰jɉjD‰jk‰j¼‰jã‰j^‰jˆ‰j€‰jˉjò‰j'‰j†‰jå‰j6‰j•‰jæ‰j ‰jB‰j…‰jƉuh}”(jËh·jj}j5jj†j;j­jŒjâj³jIjèj~jOjÁj„jèjÇj jîjR j# j› jX j€ j¡ j� j† j¶ j‡ jù j¼ j jÿ jG j& j*jM jmj0jÚjsjGjàjŠjMjÍj�jjÓjoj$j–jujËjœjjÑj§jjÜj­j-jâjbj3j—jhjöj�jájüj2jçj‘j8jÆj—jAjÌjhjGj¹jnjàj¿j[jæj…jaj}jjÈj‹jïjÎj$jõjƒj*jâj‰j3jèj’j9jãj˜j jéj?jj‚jEjÃjˆuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.