sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget$/translations/zh_CN/filesystems/procmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/zh_TW/filesystems/procmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/it_IT/filesystems/procmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/ja_JP/filesystems/procmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/ko_KR/filesystems/procmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/sp_SP/filesystems/procmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh>/var/lib/git/docbuild/linux/Documentation/filesystems/proc.rsthKubhsection)}(hhh](htitle)}(hThe /proc Filesystemh]hThe /proc Filesystem}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhhubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK'uh1hhhubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhhubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h paragraph)}(h /proc/sysh]h /proc/sys}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubh)}(hhh]j)}(hDTerrehon Bowden , Bodo Bauer h](hTerrehon Bowden <}(hjhhhNhNubh reference)}(hterrehon@pacbell.neth]hterrehon@pacbell.net}(hj%hhhNhNubah}(h]h ]h"]h$]h&]refurimailto:terrehon@pacbell.netuh1j#hjubh>, Bodo Bauer <}(hjhhhNhNubj$)}(hbb@ricochet.neth]hbb@ricochet.net}(hj9hhhNhNubah}(h]h ]h"]h$]h&]refurimailto:bb@ricochet.netuh1j#hjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhubh)}(hhh]j)}(hOctober 7 1999h]hOctober 7 1999}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjYubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhubh)}(hhh](h)}(hhh]j)}(h 2.4.x updateh]h 2.4.x update}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK hjyubah}(h]h ]h"]h$]h&]uh1hhjvubh)}(hhh]j)}(h&Jorge Nerin h](h Jorge Nerin <}(hjhhhNhNubj$)}(hcomandante@zaralinux.comh]hcomandante@zaralinux.com}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:comandante@zaralinux.comuh1j#hjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhK hjubah}(h]h ]h"]h$]h&]uh1hhjvubh)}(hhh]j)}(hNovember 14 2000h]hNovember 14 2000}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK hjubah}(h]h ]h"]h$]h&]uh1hhjvubeh}(h]h ]h"]h$]h&]uh1hhhubh)}(hhh](h)}(hhh]j)}(hmove /proc/sysh]hmove /proc/sys}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hShen Feng h](h Shen Feng <}(hjhhhNhNubj$)}(hshen@cn.fujitsu.comh]hshen@cn.fujitsu.com}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:shen@cn.fujitsu.comuh1j#hjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhK hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h April 1 2009h]h April 1 2009}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhhubh)}(hhh](h)}(hhh]j)}(hfixes/update part 1.1h]hfixes/update part 1.1}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK hj=ubah}(h]h ]h"]h$]h&]uh1hhj:ubh)}(hhh]j)}(h%Stefani Seibold h](hStefani Seibold <}(hjWhhhNhNubj$)}(hstefani@seibold.neth]hstefani@seibold.net}(hj_hhhNhNubah}(h]h ]h"]h$]h&]refurimailto:stefani@seibold.netuh1j#hjWubh>}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhK hjTubah}(h]h ]h"]h$]h&]uh1hhj:ubh)}(hhh]j)}(h June 9 2009h]h June 9 2009}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK hjubah}(h]h ]h"]h$]h&]uh1hhj:ubeh}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]colsKuh1hhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(hXTable of Contents 0 Preface 0.1 Introduction/Credits 0.2 Legal Stuff 1 Collecting System Information 1.1 Process-Specific Subdirectories 1.2 Kernel data 1.3 IDE devices in /proc/ide 1.4 Networking info in /proc/net 1.5 SCSI info 1.6 Parallel port info in /proc/parport 1.7 TTY info in /proc/tty 1.8 Miscellaneous kernel statistics in /proc/stat 1.9 Ext4 file system parameters 2 Modifying System Parameters 3 Per-Process Parameters 3.1 /proc//oom_adj & /proc//oom_score_adj - Adjust the oom-killer score 3.2 /proc//oom_score - Display current oom-killer score 3.3 /proc//io - Display the IO accounting fields 3.4 /proc//coredump_filter - Core dump filtering settings 3.5 /proc//mountinfo - Information about mounts 3.6 /proc//comm & /proc//task//comm 3.7 /proc//task//children - Information about task children 3.8 /proc//fdinfo/ - Information about opened file 3.9 /proc//map_files - Information about memory mapped files 3.10 /proc//timerslack_ns - Task timerslack value 3.11 /proc//patch_state - Livepatch patch operation state 3.12 /proc//arch_status - Task architecture specific information 3.13 /proc//fd - List of symlinks to open files 3.14 /proc//oom_adj & /proc//oom_score_adj - Adjust the oom-killer score 3.2 /proc//oom_score - Display current oom-killer score 3.3 /proc//io - Display the IO accounting fields 3.4 /proc//coredump_filter - Core dump filtering settings 3.5 /proc//mountinfo - Information about mounts 3.6 /proc//comm & /proc//task//comm 3.7 /proc//task//children - Information about task children 3.8 /proc//fdinfo/ - Information about opened file 3.9 /proc//map_files - Information about memory mapped files 3.10 /proc//timerslack_ns - Task timerslack value 3.11 /proc//patch_state - Livepatch patch operation state 3.12 /proc//arch_status - Task architecture specific information 3.13 /proc//fd - List of symlinks to open files 3.14 /proc/ubj)}(hXvThis documentation is part of a soon (or so we hope) to be released book on the SuSE Linux distribution. As there is no complete documentation for the /proc file system and we've used many freely available sources to write these chapters, it seems only fair to give the work back to the Linux community. This work is based on the 2.2.* kernel version and the upcoming 2.4.*. I'm afraid it's still far from complete, but we hope it will be useful. As far as we know, it is the first 'all-in-one' document about the /proc file system. It is focused on the Intel x86 hardware, so if you are looking for PPC, ARM, SPARC, AXP, etc., features, you probably won't find what you are looking for. It also only covers IPv4 networking, not IPv6 nor other protocols - sorry. But additions and patches are welcome and will be added to this document if you mail them to Bodo.h]hXThis documentation is part of a soon (or so we hope) to be released book on the SuSE Linux distribution. As there is no complete documentation for the /proc file system and we’ve used many freely available sources to write these chapters, it seems only fair to give the work back to the Linux community. This work is based on the 2.2.* kernel version and the upcoming 2.4.*. I’m afraid it’s still far from complete, but we hope it will be useful. As far as we know, it is the first ‘all-in-one’ document about the /proc file system. It is focused on the Intel x86 hardware, so if you are looking for PPC, ARM, SPARC, AXP, etc., features, you probably won’t find what you are looking for. It also only covers IPv4 networking, not IPv6 nor other protocols - sorry. But additions and patches are welcome and will be added to this document if you mail them to Bodo.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK@hjhhubj)}(hXWe'd like to thank Alan Cox, Rik van Riel, and Alexey Kuznetsov and a lot of other people for help compiling this documentation. We'd also like to extend a special thank you to Andi Kleen for documentation, which we relied on heavily to create this document, as well as the additional information he provided. Thanks to everybody else who contributed source or docs to the Linux kernel and helped create a great piece of software... :)h]hXWe’d like to thank Alan Cox, Rik van Riel, and Alexey Kuznetsov and a lot of other people for help compiling this documentation. We’d also like to extend a special thank you to Andi Kleen for documentation, which we relied on heavily to create this document, as well as the additional information he provided. Thanks to everybody else who contributed source or docs to the Linux kernel and helped create a great piece of software... :)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKMhjhhubj)}(hIf you have any comments, corrections or additions, please don't hesitate to contact Bodo Bauer at bb@ricochet.net. We'll be happy to add them to this document.h](hjIf you have any comments, corrections or additions, please don’t hesitate to contact Bodo Bauer at }(hjhhhNhNubj$)}(hbb@ricochet.neth]hbb@ricochet.net}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:bb@ricochet.netuh1j#hjubh2. We’ll be happy to add them to this document.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKThjhhubj)}(hThe latest version of this document is available online at https://www.kernel.org/doc/html/latest/filesystems/proc.htmlh](hOThe latest version of this document is available online at }(hjhhhNhNubj$)}(hubh)}(hhh](h)}(h0.2 Legal Stuffh]h0.2 Legal Stuff}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhhhhhK`ubj)}(hWe don't guarantee the correctness of this document, and if you come to us complaining about how you screwed up your system because of incorrect documentation, we won't feel responsible...h]hWe don’t guarantee the correctness of this document, and if you come to us complaining about how you screwed up your system because of incorrect documentation, we won’t feel responsible...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKbhjxhhubeh}(h] legal-stuffah ]h"]0.2 legal stuffah$]h&]uh1hhjhhhhhK`ubeh}(h]prefaceah ]h"]prefaceah$]h&]uh1hhhhhhhhK;ubh)}(hhh](h)}(h(Chapter 1: Collecting System Informationh]h(Chapter 1: Collecting System Information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKgubh)}(hhh](h)}(hIn This Chapterh]hIn This Chapter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKjubh bullet_list)}(hhh](h list_item)}(hInvestigating the properties of the pseudo file system /proc and its ability to provide information on the running Linux systemh]j)}(hInvestigating the properties of the pseudo file system /proc and its ability to provide information on the running Linux systemh]hInvestigating the properties of the pseudo file system /proc and its ability to provide information on the running Linux system}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKkhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hExamining /proc's structureh]j)}(hjh]hExamining /proc’s structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKmhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(h[Uncovering various information about the kernel and the processes running on the system h]j)}(hZUncovering various information about the kernel and the processes running on the systemh]hZUncovering various information about the kernel and the processes running on the system}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKnhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]bullet*uh1jhhhKkhjhhubh transition)}(hN------------------------------------------------------------------------------h]h}(h]h ]h"]h$]h&]uh1jhhhKqhjhhubj)}(hThe proc file system acts as an interface to internal data structures in the kernel. It can be used to obtain information about the system and to change certain kernel parameters at runtime (sysctl).h]hThe proc file system acts as an interface to internal data structures in the kernel. It can be used to obtain information about the system and to change certain kernel parameters at runtime (sysctl).}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKshjhhubj)}(hFirst, we'll take a look at the read-only parts of /proc. In Chapter 2, we show you how you can use /proc/sys to change settings.h]hFirst, we’ll take a look at the read-only parts of /proc. In Chapter 2, we show you how you can use /proc/sys to change settings.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKwhjhhubeh}(h]in-this-chapterah ]h"]h$]in this chapterah&]uh1hhjhhhhhKj referencedKubh)}(hhh](h)}(h#1.1 Process-Specific Subdirectoriesh]h#1.1 Process-Specific Subdirectories}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhhhhhK{ubj)}(hThe directory /proc contains (among other things) one subdirectory for each process running on the system, which is named after the process ID (PID).h]hThe directory /proc contains (among other things) one subdirectory for each process running on the system, which is named after the process ID (PID).}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK}hjPhhubj)}(hThe link 'self' points to the process reading the file system. Each process subdirectory has the entries listed in Table 1-1.h]hThe link ‘self’ points to the process reading the file system. Each process subdirectory has the entries listed in Table 1-1.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjPhhubj)}(hXhA process can read its own information from /proc/PID/* with no extra permissions. When reading /proc/PID/* information for other processes, reading process is required to have either CAP_SYS_PTRACE capability with PTRACE_MODE_READ access permissions, or, alternatively, CAP_PERFMON capability. This applies to all read-only information like `maps`, `environ`, `pagemap`, etc. The only exception is `mem` file due to its read-write nature, which requires CAP_SYS_PTRACE capabilities with more elevated PTRACE_MODE_ATTACH permissions; CAP_PERFMON capability does not grant access to /proc/PID/mem for other processes.h](hXVA process can read its own information from /proc/PID/* with no extra permissions. When reading /proc/PID/* information for other processes, reading process is required to have either CAP_SYS_PTRACE capability with PTRACE_MODE_READ access permissions, or, alternatively, CAP_PERFMON capability. This applies to all read-only information like }(hj}hhhNhNubhtitle_reference)}(h`maps`h]hmaps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh, }(hj}hhhNhNubj)}(h `environ`h]henviron}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh, }(hj}hhhNhNubj)}(h `pagemap`h]hpagemap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh, etc. The only exception is }(hj}hhhNhNubj)}(h`mem`h]hmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh file due to its read-write nature, which requires CAP_SYS_PTRACE capabilities with more elevated PTRACE_MODE_ATTACH permissions; CAP_PERFMON capability does not grant access to /proc/PID/mem for other processes.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhKhjPhhubj)}(hXNote that an open file descriptor to /proc/ or to any of its contained files or subdirectories does not prevent being reused for some other process in the event that exits. Operations on open /proc/ file descriptors corresponding to dead processes never act on any new process that the kernel may, through chance, have also assigned the process ID . Instead, operations on these FDs usually fail with ESRCH.h]hXNote that an open file descriptor to /proc/ or to any of its contained files or subdirectories does not prevent being reused for some other process in the event that exits. Operations on open /proc/ file descriptors corresponding to dead processes never act on any new process that the kernel may, through chance, have also assigned the process ID . Instead, operations on these FDs usually fail with ESRCH.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjPhhubh)}(hhh](h)}(h,Table 1-1: Process specific entries in /proch]h,Table 1-1: Process specific entries in /proc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK?uh1hhjubhthead)}(hhh]h)}(hhh](h)}(hhh]j)}(hFileh]hFile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hContenth]hContent}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj*ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(hhh](h)}(hhh](h)}(hhh]j)}(h clear_refsh]h clear_refs}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjSubah}(h]h ]h"]h$]h&]uh1hhjPubh)}(hhh]j)}(h1Clears page referenced bits shown in smaps outputh]h1Clears page referenced bits shown in smaps output}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjjubah}(h]h ]h"]h$]h&]uh1hhjPubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hcmdlineh]hcmdline}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hCommand line argumentsh]hCommand line arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hcpuh]hcpu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h:Current and last cpu in which it was executed (2.4)(smp)h]h:Current and last cpu in which it was executed (2.4)(smp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hcwdh]hcwd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h%Link to the current working directoryh]h%Link to the current working directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(henvironh]henviron}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj/ubah}(h]h ]h"]h$]h&]uh1hhj,ubh)}(hhh]j)}(hValues of environment variablesh]hValues of environment variables}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjFubah}(h]h ]h"]h$]h&]uh1hhj,ubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hexeh]hexe}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjfubah}(h]h ]h"]h$]h&]uh1hhjcubh)}(hhh]j)}(h&Link to the executable of this processh]h&Link to the executable of this process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj}ubah}(h]h ]h"]h$]h&]uh1hhjcubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hfdh]hfd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h.Directory, which contains all file descriptorsh]h.Directory, which contains all file descriptors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hmapsh]hmaps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h5Memory maps to executables and library files (2.4)h]h5Memory maps to executables and library files (2.4)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hmemh]hmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hMemory held by this processh]hMemory held by this process}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj"ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hrooth]hroot}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjBubah}(h]h ]h"]h$]h&]uh1hhj?ubh)}(hhh]j)}(h*Link to the root directory of this processh]h*Link to the root directory of this process}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjYubah}(h]h ]h"]h$]h&]uh1hhj?ubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hstath]hstat}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjyubah}(h]h ]h"]h$]h&]uh1hhjvubh)}(hhh]j)}(hProcess statush]hProcess status}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjvubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hstatmh]hstatm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h!Process memory status informationh]h!Process memory status information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hstatush]hstatus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h%Process status in human readable formh]h%Process status in human readable form}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hwchanh]hwchan}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hsPresent with CONFIG_KALLSYMS=y: it shows the kernel function symbol the task is blocked in - or "0" if not blocked.h]hwPresent with CONFIG_KALLSYMS=y: it shows the kernel function symbol the task is blocked in - or “0” if not blocked.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj5ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hpagemaph]hpagemap}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjUubah}(h]h ]h"]h$]h&]uh1hhjRubh)}(hhh]j)}(h Page tableh]h Page table}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjlubah}(h]h ]h"]h$]h&]uh1hhjRubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hstackh]hstack}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h5Report full stack trace, enable via CONFIG_STACKTRACEh]h5Report full stack trace, enable via CONFIG_STACKTRACE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(hsmapsh]hsmaps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hgAn extension based on maps, showing the memory consumption of each mapping and flags associated with ith]hgAn extension based on maps, showing the memory consumption of each mapping and flags associated with it}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(h smaps_rolluph]h smaps_rollup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h{Accumulated smaps stats for all mappings of the process. This can be derived from smaps, but is faster and more convenienth]h{Accumulated smaps stats for all mappings of the process. This can be derived from smaps, but is faster and more convenient}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjMubh)}(hhh](h)}(hhh]j)}(h numa_mapsh]h numa_maps}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj1 ubah}(h]h ]h"]h$]h&]uh1hhj. ubh)}(hhh]j)}(h{An extension based on maps, showing the memory locality and binding policy as well as mem usage (in pages) of each mapping.h]h{An extension based on maps, showing the memory locality and binding policy as well as mem usage (in pages) of each mapping.}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjH ubah}(h]h ]h"]h$]h&]uh1hhj. ubeh}(h]h ]h"]h$]h&]uh1hhjMubeh}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]colsKuh1hhjubeh}(h]id9ah ]h"]h$]h&]uh1hhjPhhhhhNubj)}(hoFor example, to get the status information of a process, all you have to do is read the file /proc/PID/status::h]hnFor example, to get the status information of a process, all you have to do is read the file /proc/PID/status:}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjPhhubh literal_block)}(hXn>cat /proc/self/status Name: cat State: R (running) Tgid: 5452 Pid: 5452 PPid: 743 TracerPid: 0 (2.4) Uid: 501 501 501 501 Gid: 100 100 100 100 FDSize: 256 Groups: 100 14 16 Kthread: 0 VmPeak: 5004 kB VmSize: 5004 kB VmLck: 0 kB VmHWM: 476 kB VmRSS: 476 kB RssAnon: 352 kB RssFile: 120 kB RssShmem: 4 kB VmData: 156 kB VmStk: 88 kB VmExe: 68 kB VmLib: 1412 kB VmPTE: 20 kb VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/28578 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000000000000 SigCgt: 0000000000000000 CapInh: 00000000fffffeff CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: ffffffffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled voluntary_ctxt_switches: 0 nonvoluntary_ctxt_switches: 1h]hXn>cat /proc/self/status Name: cat State: R (running) Tgid: 5452 Pid: 5452 PPid: 743 TracerPid: 0 (2.4) Uid: 501 501 501 501 Gid: 100 100 100 100 FDSize: 256 Groups: 100 14 16 Kthread: 0 VmPeak: 5004 kB VmSize: 5004 kB VmLck: 0 kB VmHWM: 476 kB VmRSS: 476 kB RssAnon: 352 kB RssFile: 120 kB RssShmem: 4 kB VmData: 156 kB VmStk: 88 kB VmExe: 68 kB VmLib: 1412 kB VmPTE: 20 kb VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/28578 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000000000000 SigCgt: 0000000000000000 CapInh: 00000000fffffeff CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: ffffffffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled voluntary_ctxt_switches: 0 nonvoluntary_ctxt_switches: 1}hj sbah}(h]h ]h"]h$]h&]hhuh1j hhhKhjPhhubj)}(hX)This shows you nearly the same information you would get if you viewed it with the ps command. In fact, ps uses the proc file system to obtain its information. But you get a more detailed view of the process by reading the file /proc/PID/status. It fields are described in table 1-2.h]hX)This shows you nearly the same information you would get if you viewed it with the ps command. In fact, ps uses the proc file system to obtain its information. But you get a more detailed view of the process by reading the file /proc/PID/status. It fields are described in table 1-2.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjPhhubj)}(hThe statm file contains more detailed information about the process memory usage. Its seven fields are explained in Table 1-3. The stat file contains detailed information about the process itself. Its fields are explained in Table 1-4.h]hThe statm file contains more detailed information about the process memory usage. Its seven fields are explained in Table 1-3. The stat file contains detailed information about the process itself. Its fields are explained in Table 1-4.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjPhhubj)}(h(for SMP CONFIG users)h]h(for SMP CONFIG users)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjPhhubj)}(hFor making accounting scalable, RSS related information are handled in an asynchronous manner and the value may not be very precise. To see a precise snapshot of a moment, you can see /proc//smaps file and scan page table. It's slow but very precise.h]hXFor making accounting scalable, RSS related information are handled in an asynchronous manner and the value may not be very precise. To see a precise snapshot of a moment, you can see /proc//smaps file and scan page table. It’s slow but very precise.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjPhhubh)}(hhh](h)}(h5Table 1-2: Contents of the status fields (as of 4.19)h]h5Table 1-2: Contents of the status fields (as of 4.19)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubh)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK3uh1hhj ubj )}(hhh]h)}(hhh](h)}(hhh]j)}(hFieldh]hField}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hContenth]hContent}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(hhh](h)}(hhh](h)}(hhh]j)}(hNameh]hName}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj= ubah}(h]h ]h"]h$]h&]uh1hhj: ubh)}(hhh]j)}(hfilename of the executableh]hfilename of the executable}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjT ubah}(h]h ]h"]h$]h&]uh1hhj: ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hUmaskh]hUmask}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjt ubah}(h]h ]h"]h$]h&]uh1hhjq ubh)}(hhh]j)}(hfile mode creation maskh]hfile mode creation mask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhjq ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hStateh]hState}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hrstate (R is running, S is sleeping, D is sleeping in an uninterruptible wait, Z is zombie, T is traced or stopped)h]hrstate (R is running, S is sleeping, D is sleeping in an uninterruptible wait, Z is zombie, T is traced or stopped)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hTgidh]hTgid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hthread group IDh]hthread group ID}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hNgidh]hNgid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hNUMA group ID (0 if none)h]hNUMA group ID (0 if none)}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj0 ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hPidh]hPid}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjP ubah}(h]h ]h"]h$]h&]uh1hhjM ubh)}(hhh]j)}(h process idh]h process id}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjg ubah}(h]h ]h"]h$]h&]uh1hhjM ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hPPidh]hPPid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(h process id of the parent processh]h process id of the parent process}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(h TracerPidh]h TracerPid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hePID of process tracing this process (0 if not, or the tracer is outside of the current pid namespace)h]hePID of process tracing this process (0 if not, or the tracer is outside of the current pid namespace)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hUidh]hUid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(h1Real, effective, saved set, and file system UIDsh]h1Real, effective, saved set, and file system UIDs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hGidh]hGid}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj, ubah}(h]h ]h"]h$]h&]uh1hhj) ubh)}(hhh]j)}(h1Real, effective, saved set, and file system GIDsh]h1Real, effective, saved set, and file system GIDs}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjC ubah}(h]h ]h"]h$]h&]uh1hhj) ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hFDSizeh]hFDSize}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjc ubah}(h]h ]h"]h$]h&]uh1hhj` ubh)}(hhh]j)}(h3number of file descriptor slots currently allocatedh]h3number of file descriptor slots currently allocated}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjz ubah}(h]h ]h"]h$]h&]uh1hhj` ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hGroupsh]hGroups}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hsupplementary group listh]hsupplementary group list}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hNStgidh]hNStgid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(h.descendant namespace thread group ID hierarchyh]h.descendant namespace thread group ID hierarchy}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hNSpidh]hNSpid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(h)descendant namespace process ID hierarchyh]h)descendant namespace process ID hierarchy}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hNSpgidh]hNSpgid}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj? ubah}(h]h ]h"]h$]h&]uh1hhj< ubh)}(hhh]j)}(h/descendant namespace process group ID hierarchyh]h/descendant namespace process group ID hierarchy}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjV ubah}(h]h ]h"]h$]h&]uh1hhj< ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hNSsidh]hNSsid}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjv ubah}(h]h ]h"]h$]h&]uh1hhjs ubh)}(hhh]j)}(h)descendant namespace session ID hierarchyh]h)descendant namespace session ID hierarchy}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhjs ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hKthreadh]hKthread}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(h%kernel thread flag, 1 is yes, 0 is noh]h%kernel thread flag, 1 is yes, 0 is no}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hVmPeakh]hVmPeak}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hpeak virtual memory sizeh]hpeak virtual memory size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hVmSizeh]hVmSize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(htotal program sizeh]htotal program size}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj2ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hVmLckh]hVmLck}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjRubah}(h]h ]h"]h$]h&]uh1hhjOubh)}(hhh]j)}(hlocked memory sizeh]hlocked memory size}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjiubah}(h]h ]h"]h$]h&]uh1hhjOubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hVmPinh]hVmPin}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hpinned memory sizeh]hpinned memory size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hVmHWMh]hVmHWM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h*peak resident set size ("high water mark")h]h.peak resident set size (“high water mark”)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hVmRSSh]hVmRSS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hesize of memory portions. It contains the three following parts (VmRSS = RssAnon + RssFile + RssShmem)h]hesize of memory portions. It contains the three following parts (VmRSS = RssAnon + RssFile + RssShmem)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hRssAnonh]hRssAnon}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj.ubah}(h]h ]h"]h$]h&]uh1hhj+ubh)}(hhh]j)}(h!size of resident anonymous memoryh]h!size of resident anonymous memory}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjEubah}(h]h ]h"]h$]h&]uh1hhj+ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hRssFileh]hRssFile}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjeubah}(h]h ]h"]h$]h&]uh1hhjbubh)}(hhh]j)}(hsize of resident file mappingsh]hsize of resident file mappings}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj|ubah}(h]h ]h"]h$]h&]uh1hhjbubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hRssShmemh]hRssShmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hasize of resident shmem memory (includes SysV shm, mapping of tmpfs and shared anonymous mappings)h]hasize of resident shmem memory (includes SysV shm, mapping of tmpfs and shared anonymous mappings)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hVmDatah]hVmData}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hsize of private data segmentsh]hsize of private data segments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hVmStkh]hVmStk}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hsize of stack segmentsh]hsize of stack segments}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj!ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hVmExeh]hVmExe}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjAubah}(h]h ]h"]h$]h&]uh1hhj>ubh)}(hhh]j)}(hsize of text segmenth]hsize of text segment}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjXubah}(h]h ]h"]h$]h&]uh1hhj>ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hVmLibh]hVmLib}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjxubah}(h]h ]h"]h$]h&]uh1hhjuubh)}(hhh]j)}(hsize of shared library codeh]hsize of shared library code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjubah}(h]h ]h"]h$]h&]uh1hhjuubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hVmPTEh]hVmPTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hsize of page table entriesh]hsize of page table entries}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hVmSwaph]hVmSwap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM!hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hPamount of swap used by anonymous private data (shmem swap usage is not included)h]hPamount of swap used by anonymous private data (shmem swap usage is not included)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM!hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(h HugetlbPagesh]h HugetlbPages}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM#hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hsize of hugetlb memory portionsh]hsize of hugetlb memory portions}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM#hj4ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(h CoreDumpingh]h CoreDumping}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM$hjTubah}(h]h ]h"]h$]h&]uh1hhjQubh)}(hhh]j)}(h]process's memory is currently being dumped (killing the process may lead to a corrupted core)h]h_process’s memory is currently being dumped (killing the process may lead to a corrupted core)}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM$hjkubah}(h]h ]h"]h$]h&]uh1hhjQubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(h THP_enabledh]h THP_enabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM&hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hVprocess is allowed to use THP (returns 0 when PR_SET_THP_DISABLE is set on the processh]hVprocess is allowed to use THP (returns 0 when PR_SET_THP_DISABLE is set on the process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM&hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hThreadsh]hThreads}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM(hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hnumber of threadsh]hnumber of threads}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM(hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hSigQh]hSigQ}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM)hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h.number of signals queued/max. number for queueh]h.number of signals queued/max. number for queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM)hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hSigPndh]hSigPnd}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM*hj0ubah}(h]h ]h"]h$]h&]uh1hhj-ubh)}(hhh]j)}(h(bitmap of pending signals for the threadh]h(bitmap of pending signals for the thread}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM*hjGubah}(h]h ]h"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hShdPndh]hShdPnd}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM+hjgubah}(h]h ]h"]h$]h&]uh1hhjdubh)}(hhh]j)}(h0bitmap of shared pending signals for the processh]h0bitmap of shared pending signals for the process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM+hj~ubah}(h]h ]h"]h$]h&]uh1hhjdubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hSigBlkh]hSigBlk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM,hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hbitmap of blocked signalsh]hbitmap of blocked signals}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM,hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hSigIgnh]hSigIgn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM-hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hbitmap of ignored signalsh]hbitmap of ignored signals}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM-hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hSigCgth]hSigCgt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM.hj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hbitmap of caught signalsh]hbitmap of caught signals}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM.hj#ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hCapInhh]hCapInh}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM/hjCubah}(h]h ]h"]h$]h&]uh1hhj@ubh)}(hhh]j)}(h"bitmap of inheritable capabilitiesh]h"bitmap of inheritable capabilities}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM/hjZubah}(h]h ]h"]h$]h&]uh1hhj@ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hCapPrmh]hCapPrm}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM0hjzubah}(h]h ]h"]h$]h&]uh1hhjwubh)}(hhh]j)}(h bitmap of permitted capabilitiesh]h bitmap of permitted capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM0hjubah}(h]h ]h"]h$]h&]uh1hhjwubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hCapEffh]hCapEff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM1hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h bitmap of effective capabilitiesh]h bitmap of effective capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM1hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hCapBndh]hCapBnd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM2hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h#bitmap of capabilities bounding seth]h#bitmap of capabilities bounding set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM2hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hCapAmbh]hCapAmb}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM3hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hbitmap of ambient capabilitiesh]hbitmap of ambient capabilities}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM3hj6ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(h NoNewPrivsh]h NoNewPrivs}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM4hjVubah}(h]h ]h"]h$]h&]uh1hhjSubh)}(hhh]j)}(h1no_new_privs, like prctl(PR_GET_NO_NEW_PRIV, ...)h]h1no_new_privs, like prctl(PR_GET_NO_NEW_PRIV, ...)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM4hjmubah}(h]h ]h"]h$]h&]uh1hhjSubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hSeccomph]hSeccomp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM5hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h-seccomp mode, like prctl(PR_GET_SECCOMP, ...)h]h-seccomp mode, like prctl(PR_GET_SECCOMP, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM5hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hSpeculation_Store_Bypassh]hSpeculation_Store_Bypass}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM6hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h*speculative store bypass mitigation statush]h*speculative store bypass mitigation status}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM6hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hSpeculationIndirectBranchh]hSpeculationIndirectBranch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM7hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h indirect branch speculation modeh]h indirect branch speculation mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM7hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(h Cpus_allowedh]h Cpus_allowed}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM8hj2ubah}(h]h ]h"]h$]h&]uh1hhj/ubh)}(hhh]j)}(h*mask of CPUs on which this process may runh]h*mask of CPUs on which this process may run}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM8hjIubah}(h]h ]h"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hCpus_allowed_listh]hCpus_allowed_list}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM9hjiubah}(h]h ]h"]h$]h&]uh1hhjfubh)}(hhh]j)}(h&Same as previous, but in "list format"h]h*Same as previous, but in “list format”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM9hjubah}(h]h ]h"]h$]h&]uh1hhjfubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(h Mems_allowedh]h Mems_allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM:hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h,mask of memory nodes allowed to this processh]h,mask of memory nodes allowed to this process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM:hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hMems_allowed_listh]hMems_allowed_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM;hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h&Same as previous, but in "list format"h]h*Same as previous, but in “list format”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM;hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hvoluntary_ctxt_switchesh]hvoluntary_ctxt_switches}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM<hjubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(h$number of voluntary context switchesh]h$number of voluntary context switches}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM<hj%ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhj7 ubh)}(hhh](h)}(hhh]j)}(hnonvoluntary_ctxt_switchesh]hnonvoluntary_ctxt_switches}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM=hjEubah}(h]h ]h"]h$]h&]uh1hhjBubh)}(hhh]j)}(h(number of non voluntary context switchesh]h(number of non voluntary context switches}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM=hj\ubah}(h]h ]h"]h$]h&]uh1hhjBubeh}(h]h ]h"]h$]h&]uh1hhj7 ubeh}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]colsKuh1hhj ubeh}(h]id10ah ]h"]h$]h&]uh1hhjPhhhhhNubh)}(hhh](h)}(h9Table 1-3: Contents of the statm fields (as of 2.6.8-rc3)h]h9Table 1-3: Contents of the statm fields (as of 2.6.8-rc3)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMAhjubh)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjubj )}(hhh]h)}(hhh](h)}(hhh]j)}(hFieldh]hField}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMDhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hContenth]hContent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMDhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]h}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(hhh](h)}(hhh](h)}(hhh]j)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMFhjubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(htotal program size (pages)h]htotal program size (pages)}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMFhj%ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(h(same as VmSize in status)h]h(same as VmSize in status)}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMFhj<ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hresidenth]hresident}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMGhj\ubah}(h]h ]h"]h$]h&]uh1hhjYubh)}(hhh]j)}(hsize of memory portions (pages)h]hsize of memory portions (pages)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMGhjsubah}(h]h ]h"]h$]h&]uh1hhjYubh)}(hhh]j)}(h(same as VmRSS in status)h]h(same as VmRSS in status)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMGhjubah}(h]h ]h"]h$]h&]uh1hhjYubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hsharedh]hshared}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMHhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hnumber of pages that are sharedh]hnumber of pages that are shared}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMHhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h;(i.e. backed by a file, same as RssFile+RssShmem in status)h]h;(i.e. backed by a file, same as RssFile+RssShmem in status)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMHhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(htrsh]htrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMJhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hnumber of pages that are 'code'h]h#number of pages that are ‘code’}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMJhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h3(not including libs; broken, includes data segment)h]h3(not including libs; broken, includes data segment)}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMJhj&ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hlrsh]hlrs}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMLhjFubah}(h]h ]h"]h$]h&]uh1hhjCubh)}(hhh]j)}(hnumber of pages of libraryh]hnumber of pages of library}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMLhj]ubah}(h]h ]h"]h$]h&]uh1hhjCubh)}(hhh]j)}(h(always 0 on 2.6)h]h(always 0 on 2.6)}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMLhjtubah}(h]h ]h"]h$]h&]uh1hhjCubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hdrsh]hdrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMMhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hnumber of pages of data/stackh]hnumber of pages of data/stack}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMMhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h/(including libs; broken, includes library text)h]h/(including libs; broken, includes library text)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMMhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hdth]hdt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMOhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hnumber of dirty pagesh]hnumber of dirty pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMOhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h(always 0 on 2.6)h]h(always 0 on 2.6)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMOhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]colsKuh1hhjubeh}(h]id11ah ]h"]h$]h&]uh1hhjPhhhhhNubh)}(hhh](h)}(h9Table 1-4: Contents of the stat fields (as of 2.6.30-rc7)h]h9Table 1-4: Contents of the stat fields (as of 2.6.30-rc7)}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShjAubh)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjRubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK?uh1hhjRubj )}(hhh]h)}(hhh](h)}(hhh]j)}(hFieldh]hField}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMVhjoubah}(h]h ]h"]h$]h&]uh1hhjlubh)}(hhh]j)}(hContenth]hContent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMVhjubah}(h]h ]h"]h$]h&]uh1hhjlubeh}(h]h ]h"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&]uh1j hjRubh)}(hhh](h)}(hhh](h)}(hhh]j)}(hpidh]hpid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMXhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h process idh]h process id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMXhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(htcommh]htcomm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMYhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hfilename of the executableh]hfilename of the executable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMYhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hstateh]hstate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMZhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hrstate (R is running, S is sleeping, D is sleeping in an uninterruptible wait, Z is zombie, T is traced or stopped)h]hrstate (R is running, S is sleeping, D is sleeping in an uninterruptible wait, Z is zombie, T is traced or stopped)}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMZhj4ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hppidh]hppid}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM\hjTubah}(h]h ]h"]h$]h&]uh1hhjQubh)}(hhh]j)}(h process id of the parent processh]h process id of the parent process}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM\hjkubah}(h]h ]h"]h$]h&]uh1hhjQubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hpgrph]hpgrp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM]hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hpgrp of the processh]hpgrp of the process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM]hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hsidh]hsid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM^hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h session idh]h session id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM^hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(htty_nrh]htty_nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM_hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(htty the process usesh]htty the process uses}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM_hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(htty_pgrph]htty_pgrp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM`hj0ubah}(h]h ]h"]h$]h&]uh1hhj-ubh)}(hhh]j)}(hpgrp of the ttyh]hpgrp of the tty}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM`hjGubah}(h]h ]h"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hflagsh]hflags}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMahjgubah}(h]h ]h"]h$]h&]uh1hhjdubh)}(hhh]j)}(h task flagsh]h task flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMahj~ubah}(h]h ]h"]h$]h&]uh1hhjdubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hmin_flth]hmin_flt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMbhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hnumber of minor faultsh]hnumber of minor faults}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMbhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hcmin_flth]hcmin_flt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMchjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h#number of minor faults with child'sh]h%number of minor faults with child’s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMchjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hmaj_flth]hmaj_flt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMdhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hnumber of major faultsh]hnumber of major faults}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMdhj#ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hcmaj_flth]hcmaj_flt}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMehjCubah}(h]h ]h"]h$]h&]uh1hhj@ubh)}(hhh]j)}(h#number of major faults with child'sh]h%number of major faults with child’s}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMehjZubah}(h]h ]h"]h$]h&]uh1hhj@ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hutimeh]hutime}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMfhjzubah}(h]h ]h"]h$]h&]uh1hhjwubh)}(hhh]j)}(huser mode jiffiesh]huser mode jiffies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMfhjubah}(h]h ]h"]h$]h&]uh1hhjwubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hstimeh]hstime}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMghjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hkernel mode jiffiesh]hkernel mode jiffies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMghjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hcutimeh]hcutime}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(huser mode jiffies with child'sh]h user mode jiffies with child’s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hcstimeh]hcstime}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMihjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h kernel mode jiffies with child'sh]h"kernel mode jiffies with child’s}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMihj6ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hpriorityh]hpriority}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMjhjVubah}(h]h ]h"]h$]h&]uh1hhjSubh)}(hhh]j)}(hpriority levelh]hpriority level}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMjhjmubah}(h]h ]h"]h$]h&]uh1hhjSubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hniceh]hnice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMkhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h nice levelh]h nice level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMkhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h num_threadsh]h num_threads}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMlhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hnumber of threadsh]hnumber of threads}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMlhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h it_real_valueh]h it_real_value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMmhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h(obsolete, always 0)h]h(obsolete, always 0)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMmhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h start_timeh]h start_time}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMnhj2ubah}(h]h ]h"]h$]h&]uh1hhj/ubh)}(hhh]j)}(h*time the process started after system booth]h*time the process started after system boot}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMnhjIubah}(h]h ]h"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hvsizeh]hvsize}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMohjiubah}(h]h ]h"]h$]h&]uh1hhjfubh)}(hhh]j)}(hvirtual memory sizeh]hvirtual memory size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMohjubah}(h]h ]h"]h$]h&]uh1hhjfubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hrssh]hrss}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMphjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hresident set memory sizeh]hresident set memory size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMphjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hrsslimh]hrsslim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMqhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(h!current limit in bytes on the rssh]h!current limit in bytes on the rss}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMqhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h start_codeh]h start_code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMrhjubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(h(address above which program text can runh]h(address above which program text can run}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMrhj%ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hend_codeh]hend_code}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMshjEubah}(h]h ]h"]h$]h&]uh1hhjBubh)}(hhh]j)}(h(address below which program text can runh]h(address below which program text can run}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMshj\ubah}(h]h ]h"]h$]h&]uh1hhjBubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h start_stackh]h start_stack}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMthj|ubah}(h]h ]h"]h$]h&]uh1hhjyubh)}(hhh]j)}(h.address of the start of the main process stackh]h.address of the start of the main process stack}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMthjubah}(h]h ]h"]h$]h&]uh1hhjyubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hesph]hesp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMuhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hcurrent value of ESPh]hcurrent value of ESP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMuhjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(heiph]heip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMvhjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh]j)}(hcurrent value of EIPh]hcurrent value of EIP}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMvhj ubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hpendingh]hpending}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMwhj! ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hbitmap of pending signalsh]hbitmap of pending signals}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMwhj8 ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hblockedh]hblocked}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMxhjX ubah}(h]h ]h"]h$]h&]uh1hhjU ubh)}(hhh]j)}(hbitmap of blocked signalsh]hbitmap of blocked signals}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMxhjo ubah}(h]h ]h"]h$]h&]uh1hhjU ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hsigignh]hsigign}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMyhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hbitmap of ignored signalsh]hbitmap of ignored signals}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMyhj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hsigcatchh]hsigcatch}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMzhj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hbitmap of caught signalsh]hbitmap of caught signals}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMzhj ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h0h]h0}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM{hj ubah}(h]h ]h"]h$]h&]uh1hhj ubh)}(hhh]j)}(hI(place holder, used to be the wchan address, use /proc/PID/wchan instead)h]hI(place holder, used to be the wchan address, use /proc/PID/wchan instead)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM{hj!ubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hj!h]h0}(hj7!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM}hj4!ubah}(h]h ]h"]h$]h&]uh1hhj1!ubh)}(hhh]j)}(h(place holder)h]h(place holder)}(hjM!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM}hjJ!ubah}(h]h ]h"]h$]h&]uh1hhj1!ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hj!h]h0}(hjm!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM~hjj!ubah}(h]h ]h"]h$]h&]uh1hhjg!ubh)}(hhh]j)}(h(place holder)h]h(place holder)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM~hj!ubah}(h]h ]h"]h$]h&]uh1hhjg!ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h exit_signalh]h exit_signal}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj!ubah}(h]h ]h"]h$]h&]uh1hhj!ubh)}(hhh]j)}(h'signal to send to parent thread on exith]h'signal to send to parent thread on exit}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj!ubah}(h]h ]h"]h$]h&]uh1hhj!ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(htask_cpuh]htask_cpu}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj!ubah}(h]h ]h"]h$]h&]uh1hhj!ubh)}(hhh]j)}(h"which CPU the task is scheduled onh]h"which CPU the task is scheduled on}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj!ubah}(h]h ]h"]h$]h&]uh1hhj!ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h rt_priorityh]h rt_priority}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj"ubah}(h]h ]h"]h$]h&]uh1hhj "ubh)}(hhh]j)}(hrealtime priorityh]hrealtime priority}(hj("hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj%"ubah}(h]h ]h"]h$]h&]uh1hhj "ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hpolicyh]hpolicy}(hjH"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjE"ubah}(h]h ]h"]h$]h&]uh1hhjB"ubh)}(hhh]j)}(h*scheduling policy (man sched_setscheduler)h]h*scheduling policy (man sched_setscheduler)}(hj_"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj\"ubah}(h]h ]h"]h$]h&]uh1hhjB"ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h blkio_ticksh]h blkio_ticks}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj|"ubah}(h]h ]h"]h$]h&]uh1hhjy"ubh)}(hhh]j)}(htime spent waiting for block IOh]htime spent waiting for block IO}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj"ubah}(h]h ]h"]h$]h&]uh1hhjy"ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hgtimeh]hgtime}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj"ubah}(h]h ]h"]h$]h&]uh1hhj"ubh)}(hhh]j)}(h!guest time of the task in jiffiesh]h!guest time of the task in jiffies}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj"ubah}(h]h ]h"]h$]h&]uh1hhj"ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hcgtimeh]hcgtime}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj"ubah}(h]h ]h"]h$]h&]uh1hhj"ubh)}(hhh]j)}(h*guest time of the task children in jiffiesh]h*guest time of the task children in jiffies}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj#ubah}(h]h ]h"]h$]h&]uh1hhj"ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h start_datah]h start_data}(hj$#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj!#ubah}(h]h ]h"]h$]h&]uh1hhj#ubh)}(hhh]j)}(h.address above which program data+bss is placedh]h.address above which program data+bss is placed}(hj;#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj8#ubah}(h]h ]h"]h$]h&]uh1hhj#ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(hend_datah]hend_data}(hj[#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjX#ubah}(h]h ]h"]h$]h&]uh1hhjU#ubh)}(hhh]j)}(h.address below which program data+bss is placedh]h.address below which program data+bss is placed}(hjr#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjo#ubah}(h]h ]h"]h$]h&]uh1hhjU#ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h start_brkh]h start_brk}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj#ubah}(h]h ]h"]h$]h&]uh1hhj#ubh)}(hhh]j)}(h;address above which program heap can be expanded with brk()h]h;address above which program heap can be expanded with brk()}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj#ubah}(h]h ]h"]h$]h&]uh1hhj#ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h arg_starth]h arg_start}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj#ubah}(h]h ]h"]h$]h&]uh1hhj#ubh)}(hhh]j)}(h2address above which program command line is placedh]h2address above which program command line is placed}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj#ubah}(h]h ]h"]h$]h&]uh1hhj#ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(harg_endh]harg_end}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj#ubah}(h]h ]h"]h$]h&]uh1hhj#ubh)}(hhh]j)}(h2address below which program command line is placedh]h2address below which program command line is placed}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj$ubah}(h]h ]h"]h$]h&]uh1hhj#ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h env_starth]h env_start}(hj7$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj4$ubah}(h]h ]h"]h$]h&]uh1hhj1$ubh)}(hhh]j)}(h1address above which program environment is placedh]h1address above which program environment is placed}(hjN$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjK$ubah}(h]h ]h"]h$]h&]uh1hhj1$ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(henv_endh]henv_end}(hjn$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjk$ubah}(h]h ]h"]h$]h&]uh1hhjh$ubh)}(hhh]j)}(h1address below which program environment is placedh]h1address below which program environment is placed}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj$ubah}(h]h ]h"]h$]h&]uh1hhjh$ubeh}(h]h ]h"]h$]h&]uh1hhjubh)}(hhh](h)}(hhh]j)}(h exit_codeh]h exit_code}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj$ubah}(h]h ]h"]h$]h&]uh1hhj$ubh)}(hhh]j)}(hFthe thread's exit_code in the form reported by the waitpid system callh]hHthe thread’s exit_code in the form reported by the waitpid system call}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj$ubah}(h]h ]h"]h$]h&]uh1hhj$ubeh}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjRubeh}(h]h ]h"]h$]h&]colsKuh1hhjAubeh}(h]id12ah ]h"]h$]h&]uh1hhjPhhhhhNubj)}(hbThe /proc/PID/maps file contains the currently mapped memory regions and their access permissions.h]hbThe /proc/PID/maps file contains the currently mapped memory regions and their access permissions.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hThe format is::h]hThe format is:}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj )}(hXaddress perms offset dev inode pathname 08048000-08049000 r-xp 00000000 03:00 8312 /opt/test 08049000-0804a000 rw-p 00001000 03:00 8312 /opt/test 0804a000-0806b000 rw-p 00000000 00:00 0 [heap] a7cb1000-a7cb2000 ---p 00000000 00:00 0 a7cb2000-a7eb2000 rw-p 00000000 00:00 0 a7eb2000-a7eb3000 ---p 00000000 00:00 0 a7eb3000-a7ed5000 rw-p 00000000 00:00 0 a7ed5000-a8008000 r-xp 00000000 03:00 4222 /lib/libc.so.6 a8008000-a800a000 r--p 00133000 03:00 4222 /lib/libc.so.6 a800a000-a800b000 rw-p 00135000 03:00 4222 /lib/libc.so.6 a800b000-a800e000 rw-p 00000000 00:00 0 a800e000-a8022000 r-xp 00000000 03:00 14462 /lib/libpthread.so.0 a8022000-a8023000 r--p 00013000 03:00 14462 /lib/libpthread.so.0 a8023000-a8024000 rw-p 00014000 03:00 14462 /lib/libpthread.so.0 a8024000-a8027000 rw-p 00000000 00:00 0 a8027000-a8043000 r-xp 00000000 03:00 8317 /lib/ld-linux.so.2 a8043000-a8044000 r--p 0001b000 03:00 8317 /lib/ld-linux.so.2 a8044000-a8045000 rw-p 0001c000 03:00 8317 /lib/ld-linux.so.2 aff35000-aff4a000 rw-p 00000000 00:00 0 [stack] ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]h]hXaddress perms offset dev inode pathname 08048000-08049000 r-xp 00000000 03:00 8312 /opt/test 08049000-0804a000 rw-p 00001000 03:00 8312 /opt/test 0804a000-0806b000 rw-p 00000000 00:00 0 [heap] a7cb1000-a7cb2000 ---p 00000000 00:00 0 a7cb2000-a7eb2000 rw-p 00000000 00:00 0 a7eb2000-a7eb3000 ---p 00000000 00:00 0 a7eb3000-a7ed5000 rw-p 00000000 00:00 0 a7ed5000-a8008000 r-xp 00000000 03:00 4222 /lib/libc.so.6 a8008000-a800a000 r--p 00133000 03:00 4222 /lib/libc.so.6 a800a000-a800b000 rw-p 00135000 03:00 4222 /lib/libc.so.6 a800b000-a800e000 rw-p 00000000 00:00 0 a800e000-a8022000 r-xp 00000000 03:00 14462 /lib/libpthread.so.0 a8022000-a8023000 r--p 00013000 03:00 14462 /lib/libpthread.so.0 a8023000-a8024000 rw-p 00014000 03:00 14462 /lib/libpthread.so.0 a8024000-a8027000 rw-p 00000000 00:00 0 a8027000-a8043000 r-xp 00000000 03:00 8317 /lib/ld-linux.so.2 a8043000-a8044000 r--p 0001b000 03:00 8317 /lib/ld-linux.so.2 a8044000-a8045000 rw-p 0001c000 03:00 8317 /lib/ld-linux.so.2 aff35000-aff4a000 rw-p 00000000 00:00 0 [stack] ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]}hj%sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjPhhubj)}(hgwhere "address" is the address space in the process that it occupies, "perms" is a set of permissions::h]hnwhere “address” is the address space in the process that it occupies, “perms” is a set of permissions:}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj )}(hEr = read w = write x = execute s = shared p = private (copy on write)h]hEr = read w = write x = execute s = shared p = private (copy on write)}hj"%sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjPhhubj)}(hXZ"offset" is the offset into the mapping, "dev" is the device (major:minor), and "inode" is the inode on that device. 0 indicates that no inode is associated with the memory region, as the case would be with BSS (uninitialized data). The "pathname" shows the name associated file for this mapping. If the mapping is not associated with a file:h]hXj“offset” is the offset into the mapping, “dev” is the device (major:minor), and “inode” is the inode on that device. 0 indicates that no inode is associated with the memory region, as the case would be with BSS (uninitialized data). The “pathname” shows the name associated file for this mapping. If the mapping is not associated with a file:}(hj0%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubh block_quote)}(hX=================== =========================================== [heap] the heap of the program [stack] the stack of the main process [vdso] the "virtual dynamic shared object", the kernel system call handler [anon:] a private anonymous mapping that has been named by userspace [anon_shmem:] an anonymous shared memory mapping that has been named by userspace =================== =========================================== or if empty, the mapping is anonymous. h](h)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjG%ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK+uh1hhjG%ubh)}(hhh](h)}(hhh](h)}(hhh]j)}(h[heap]h]h[heap]}(hjg%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjd%ubah}(h]h ]h"]h$]h&]uh1hhja%ubh)}(hhh]j)}(hthe heap of the programh]hthe heap of the program}(hj~%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj{%ubah}(h]h ]h"]h$]h&]uh1hhja%ubeh}(h]h ]h"]h$]h&]uh1hhj^%ubh)}(hhh](h)}(hhh]j)}(h[stack]h]h[stack]}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj%ubah}(h]h ]h"]h$]h&]uh1hhj%ubh)}(hhh]j)}(hthe stack of the main processh]hthe stack of the main process}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj%ubah}(h]h ]h"]h$]h&]uh1hhj%ubeh}(h]h ]h"]h$]h&]uh1hhj^%ubh)}(hhh](h)}(hhh]j)}(h[vdso]h]h[vdso]}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj%ubah}(h]h ]h"]h$]h&]uh1hhj%ubh)}(hhh]j)}(hCthe "virtual dynamic shared object", the kernel system call handlerh]hGthe “virtual dynamic shared object”, the kernel system call handler}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj%ubah}(h]h ]h"]h$]h&]uh1hhj%ubeh}(h]h ]h"]h$]h&]uh1hhj^%ubh)}(hhh](h)}(hhh]j)}(h [anon:]h]h [anon:]}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj &ubah}(h]h ]h"]h$]h&]uh1hhj&ubh)}(hhh]j)}(h]h]h[anon_shmem:]}(hjC&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj@&ubah}(h]h ]h"]h$]h&]uh1hhj=&ubh)}(hhh]j)}(hCan anonymous shared memory mapping that has been named by userspaceh]hCan anonymous shared memory mapping that has been named by userspace}(hjZ&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjW&ubah}(h]h ]h"]h$]h&]uh1hhj=&ubeh}(h]h ]h"]h$]h&]uh1hhj^%ubeh}(h]h ]h"]h$]h&]uh1hhjG%ubeh}(h]h ]h"]h$]h&]colsKuh1hhjD%ubah}(h]h ]h"]h$]h&]uh1hhj@%ubj)}(h&or if empty, the mapping is anonymous.h]h&or if empty, the mapping is anonymous.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj@%ubeh}(h]h ]h"]h$]h&]uh1j>%hhhMhjPhhubj)}(hXStarting with 6.11 kernel, /proc/PID/maps provides an alternative ioctl()-based API that gives ability to flexibly and efficiently query and filter individual VMAs. This interface is binary and is meant for more efficient and easy programmatic use. `struct procmap_query`, defined in linux/fs.h UAPI header, serves as an input/output argument to the `PROCMAP_QUERY` ioctl() command. See comments in linus/fs.h UAPI header for details on query semantics, supported flags, data returned, and general API usage information.h](hStarting with 6.11 kernel, /proc/PID/maps provides an alternative ioctl()-based API that gives ability to flexibly and efficiently query and filter individual VMAs. This interface is binary and is meant for more efficient and easy programmatic use. }(hj&hhhNhNubj)}(h`struct procmap_query`h]hstruct procmap_query}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubhO, defined in linux/fs.h UAPI header, serves as an input/output argument to the }(hj&hhhNhNubj)}(h`PROCMAP_QUERY`h]h PROCMAP_QUERY}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh ioctl() command. See comments in linus/fs.h UAPI header for details on query semantics, supported flags, data returned, and general API usage information.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hThe /proc/PID/smaps is an extension based on maps, showing the memory consumption for each of the process's mappings. For each mapping (aka Virtual Memory Area, or VMA) there is a series of lines such as the following::h]hThe /proc/PID/smaps is an extension based on maps, showing the memory consumption for each of the process’s mappings. For each mapping (aka Virtual Memory Area, or VMA) there is a series of lines such as the following:}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj )}(hX08048000-080bc000 r-xp 00000000 03:02 13130 /bin/bash Size: 1084 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Rss: 892 kB Pss: 374 kB Pss_Dirty: 0 kB Shared_Clean: 892 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Referenced: 892 kB Anonymous: 0 kB KSM: 0 kB LazyFree: 0 kB AnonHugePages: 0 kB ShmemPmdMapped: 0 kB Shared_Hugetlb: 0 kB Private_Hugetlb: 0 kB Swap: 0 kB SwapPss: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Locked: 0 kB THPeligible: 0 VmFlags: rd ex mr mw me dwh]hX08048000-080bc000 r-xp 00000000 03:02 13130 /bin/bash Size: 1084 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Rss: 892 kB Pss: 374 kB Pss_Dirty: 0 kB Shared_Clean: 892 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Referenced: 892 kB Anonymous: 0 kB KSM: 0 kB LazyFree: 0 kB AnonHugePages: 0 kB ShmemPmdMapped: 0 kB Shared_Hugetlb: 0 kB Private_Hugetlb: 0 kB Swap: 0 kB SwapPss: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB Locked: 0 kB THPeligible: 0 VmFlags: rd ex mr mw me dw}hj&sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjPhhubj)}(hXFThe first of these lines shows the same information as is displayed for the mapping in /proc/PID/maps. Following lines show the size of the mapping (size); the size of each page allocated when backing a VMA (KernelPageSize), which is usually the same as the size in the page table entries; the page size used by the MMU when backing a VMA (in most cases, the same as KernelPageSize); the amount of the mapping that is currently resident in RAM (RSS); the process's proportional share of this mapping (PSS); and the number of clean and dirty shared and private pages in the mapping.h]hXHThe first of these lines shows the same information as is displayed for the mapping in /proc/PID/maps. Following lines show the size of the mapping (size); the size of each page allocated when backing a VMA (KernelPageSize), which is usually the same as the size in the page table entries; the page size used by the MMU when backing a VMA (in most cases, the same as KernelPageSize); the amount of the mapping that is currently resident in RAM (RSS); the process’s proportional share of this mapping (PSS); and the number of clean and dirty shared and private pages in the mapping.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hXThe "proportional set size" (PSS) of a process is the count of pages it has in memory, where each page is divided by the number of processes sharing it. So if a process has 1000 pages all to itself, and 1000 shared with one other process, its PSS will be 1500. "Pss_Dirty" is the portion of PSS which consists of dirty pages. ("Pss_Clean" is not included, but it can be calculated by subtracting "Pss_Dirty" from "Pss".)h]hXThe “proportional set size” (PSS) of a process is the count of pages it has in memory, where each page is divided by the number of processes sharing it. So if a process has 1000 pages all to itself, and 1000 shared with one other process, its PSS will be 1500. “Pss_Dirty” is the portion of PSS which consists of dirty pages. (“Pss_Clean” is not included, but it can be calculated by subtracting “Pss_Dirty” from “Pss”.)}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hTraditionally, a page is accounted as "private" if it is mapped exactly once, and a page is accounted as "shared" when mapped multiple times, even when mapped in the same process multiple times. Note that this accounting is independent of MAP_SHARED.h]hXTraditionally, a page is accounted as “private” if it is mapped exactly once, and a page is accounted as “shared” when mapped multiple times, even when mapped in the same process multiple times. Note that this accounting is independent of MAP_SHARED.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hX In some kernel configurations, the semantics of pages part of a larger allocation (e.g., THP) can differ: a page is accounted as "private" if all pages part of the corresponding large allocation are *certainly* mapped in the same process, even if the page is mapped multiple times in that process. A page is accounted as "shared" if any page page of the larger allocation is *maybe* mapped in a different process. In some cases, a large allocation might be treated as "maybe mapped by multiple processes" even though this is no longer the case.h](hIn some kernel configurations, the semantics of pages part of a larger allocation (e.g., THP) can differ: a page is accounted as “private” if all pages part of the corresponding large allocation are }(hj'hhhNhNubhemphasis)}(h *certainly*h]h certainly}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hj'ubh mapped in the same process, even if the page is mapped multiple times in that process. A page is accounted as “shared” if any page page of the larger allocation is }(hj'hhhNhNubj')}(h*maybe*h]hmaybe}(hj/'hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hj'ubh mapped in a different process. In some cases, a large allocation might be treated as “maybe mapped by multiple processes” even though this is no longer the case.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hXWSome kernel configurations do not track the precise number of times a page part of a larger allocation is mapped. In this case, when calculating the PSS, the average number of mappings per page in this larger allocation might be used as an approximation for the number of mappings of a page. The PSS calculation will be imprecise in this case.h]hXWSome kernel configurations do not track the precise number of times a page part of a larger allocation is mapped. In this case, when calculating the PSS, the average number of mappings per page in this larger allocation might be used as an approximation for the number of mappings of a page. The PSS calculation will be imprecise in this case.}(hjG'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hW"Referenced" indicates the amount of memory currently marked as referenced or accessed.h]h[“Referenced” indicates the amount of memory currently marked as referenced or accessed.}(hjU'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(h"Anonymous" shows the amount of memory that does not belong to any file. Even a mapping associated with a file may contain anonymous pages: when MAP_PRIVATE and a page is modified, the file page is replaced by a private anonymous copy.h]h“Anonymous” shows the amount of memory that does not belong to any file. Even a mapping associated with a file may contain anonymous pages: when MAP_PRIVATE and a page is modified, the file page is replaced by a private anonymous copy.}(hjc'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hz"KSM" reports how many of the pages are KSM pages. Note that KSM-placed zeropages are not included, only actual KSM pages.h]h~“KSM” reports how many of the pages are KSM pages. Note that KSM-placed zeropages are not included, only actual KSM pages.}(hjq'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hXg"LazyFree" shows the amount of memory which is marked by madvise(MADV_FREE). The memory isn't freed immediately with madvise(). It's freed in memory pressure if the memory is clean. Please note that the printed value might be lower than the real value due to optimizations used in the current implementation. If this is not desirable please file a bug report.h]hXo“LazyFree” shows the amount of memory which is marked by madvise(MADV_FREE). The memory isn’t freed immediately with madvise(). It’s freed in memory pressure if the memory is clean. Please note that the printed value might be lower than the real value due to optimizations used in the current implementation. If this is not desirable please file a bug report.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM!hjPhhubj)}(hJ"AnonHugePages" shows the amount of memory backed by transparent hugepage.h]hN“AnonHugePages” shows the amount of memory backed by transparent hugepage.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM'hjPhhubj)}(hV"ShmemPmdMapped" shows the amount of shared (shmem/tmpfs) memory backed by huge pages.h]hZ“ShmemPmdMapped” shows the amount of shared (shmem/tmpfs) memory backed by huge pages.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM)hjPhhubj)}(h"Shared_Hugetlb" and "Private_Hugetlb" show the amounts of memory backed by hugetlbfs page which is *not* counted in "RSS" or "PSS" field for historical reasons. And these are not included in {Shared,Private}_{Clean,Dirty} field.h](hl“Shared_Hugetlb” and “Private_Hugetlb” show the amounts of memory backed by hugetlbfs page which is }(hj'hhhNhNubj')}(h*not*h]hnot}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j'hj'ubh counted in “RSS” or “PSS” field for historical reasons. And these are not included in {Shared,Private}_{Clean,Dirty} field.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhM,hjPhhubj)}(hN"Swap" shows how much would-be-anonymous memory is also used, but out on swap.h]hR“Swap” shows how much would-be-anonymous memory is also used, but out on swap.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM0hjPhhubj)}(hXmFor shmem mappings, "Swap" includes also the size of the mapped (and not replaced by copy-on-write) part of the underlying shmem object out on swap. "SwapPss" shows proportional swap share of this mapping. Unlike "Swap", this does not take into account swapped out page of underlying shmem objects. "Locked" indicates whether the mapping is locked in memory or not.h]hX}For shmem mappings, “Swap” includes also the size of the mapped (and not replaced by copy-on-write) part of the underlying shmem object out on swap. “SwapPss” shows proportional swap share of this mapping. Unlike “Swap”, this does not take into account swapped out page of underlying shmem objects. “Locked” indicates whether the mapping is locked in memory or not.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM2hjPhhubj)}(h"THPeligible" indicates whether the mapping is eligible for allocating naturally aligned THP pages of any currently enabled size. 1 if true, 0 otherwise.h]h“THPeligible” indicates whether the mapping is eligible for allocating naturally aligned THP pages of any currently enabled size. 1 if true, 0 otherwise.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM8hjPhhubj)}(h"VmFlags" field deserves a separate description. This member represents the kernel flags associated with the particular virtual memory area in two letter encoded manner. The codes are the following:h]h“VmFlags” field deserves a separate description. This member represents the kernel flags associated with the particular virtual memory area in two letter encoded manner. The codes are the following:}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM<hjPhhubj?%)}(hX,== ======================================= rd readable wr writeable ex executable sh shared mr may read mw may write me may execute ms may share gd stack segment growns down pf pure PFN range dw disabled write to the mapped file lo pages are locked in memory io memory mapped I/O area sr sequential read advise provided rr random read advise provided dc do not copy area on fork de do not expand area on remapping ac area is accountable nr swap space is not reserved for the area ht area uses huge tlb pages sf synchronous page fault ar architecture specific flag wf wipe on fork dd do not include area into core dump sd soft dirty flag mm mixed map area hg huge page advise flag nh no huge page advise flag mg mergeable advise flag bt arm64 BTI guarded page mt arm64 MTE allocation tags are enabled um userfaultfd missing tracking uw userfaultfd wr-protect tracking ss shadow/guarded control stack page sl sealed == ======================================= h]h)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhj(ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK'uh1hhj(ubh)}(hhh](h)}(hhh](h)}(hhh]j)}(hrdh]hrd}(hj((hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMAhj%(ubah}(h]h ]h"]h$]h&]uh1hhj"(ubh)}(hhh]j)}(hreadableh]hreadable}(hj?(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMAhj<(ubah}(h]h ]h"]h$]h&]uh1hhj"(ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hwrh]hwr}(hj_(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMBhj\(ubah}(h]h ]h"]h$]h&]uh1hhjY(ubh)}(hhh]j)}(h writeableh]h writeable}(hjv(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMBhjs(ubah}(h]h ]h"]h$]h&]uh1hhjY(ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hexh]hex}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMChj(ubah}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh]j)}(h executableh]h executable}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMChj(ubah}(h]h ]h"]h$]h&]uh1hhj(ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hshh]hsh}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMDhj(ubah}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh]j)}(hsharedh]hshared}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMDhj(ubah}(h]h ]h"]h$]h&]uh1hhj(ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hmrh]hmr}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMEhj)ubah}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh]j)}(hmay readh]hmay read}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMEhj)ubah}(h]h ]h"]h$]h&]uh1hhj(ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hmwh]hmw}(hj;)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMFhj8)ubah}(h]h ]h"]h$]h&]uh1hhj5)ubh)}(hhh]j)}(h may writeh]h may write}(hjR)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMFhjO)ubah}(h]h ]h"]h$]h&]uh1hhj5)ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hmeh]hme}(hjr)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMGhjo)ubah}(h]h ]h"]h$]h&]uh1hhjl)ubh)}(hhh]j)}(h may executeh]h may execute}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMGhj)ubah}(h]h ]h"]h$]h&]uh1hhjl)ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hmsh]hms}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMHhj)ubah}(h]h ]h"]h$]h&]uh1hhj)ubh)}(hhh]j)}(h may shareh]h may share}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMHhj)ubah}(h]h ]h"]h$]h&]uh1hhj)ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hgdh]hgd}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMIhj)ubah}(h]h ]h"]h$]h&]uh1hhj)ubh)}(hhh]j)}(hstack segment growns downh]hstack segment growns down}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMIhj)ubah}(h]h ]h"]h$]h&]uh1hhj)ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hpfh]hpf}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMJhj*ubah}(h]h ]h"]h$]h&]uh1hhj*ubh)}(hhh]j)}(hpure PFN rangeh]hpure PFN range}(hj.*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMJhj+*ubah}(h]h ]h"]h$]h&]uh1hhj*ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hdwh]hdw}(hjN*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMKhjK*ubah}(h]h ]h"]h$]h&]uh1hhjH*ubh)}(hhh]j)}(h!disabled write to the mapped fileh]h!disabled write to the mapped file}(hje*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMKhjb*ubah}(h]h ]h"]h$]h&]uh1hhjH*ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hloh]hlo}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMLhj*ubah}(h]h ]h"]h$]h&]uh1hhj*ubh)}(hhh]j)}(hpages are locked in memoryh]hpages are locked in memory}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMLhj*ubah}(h]h ]h"]h$]h&]uh1hhj*ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hioh]hio}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMMhj*ubah}(h]h ]h"]h$]h&]uh1hhj*ubh)}(hhh]j)}(hmemory mapped I/O areah]hmemory mapped I/O area}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMMhj*ubah}(h]h ]h"]h$]h&]uh1hhj*ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hsrh]hsr}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMNhj*ubah}(h]h ]h"]h$]h&]uh1hhj*ubh)}(hhh]j)}(hsequential read advise providedh]hsequential read advise provided}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMNhj+ubah}(h]h ]h"]h$]h&]uh1hhj*ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hrrh]hrr}(hj*+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMOhj'+ubah}(h]h ]h"]h$]h&]uh1hhj$+ubh)}(hhh]j)}(hrandom read advise providedh]hrandom read advise provided}(hjA+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMOhj>+ubah}(h]h ]h"]h$]h&]uh1hhj$+ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hdch]hdc}(hja+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMPhj^+ubah}(h]h ]h"]h$]h&]uh1hhj[+ubh)}(hhh]j)}(hdo not copy area on forkh]hdo not copy area on fork}(hjx+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMPhju+ubah}(h]h ]h"]h$]h&]uh1hhj[+ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hdeh]hde}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMQhj+ubah}(h]h ]h"]h$]h&]uh1hhj+ubh)}(hhh]j)}(hdo not expand area on remappingh]hdo not expand area on remapping}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMQhj+ubah}(h]h ]h"]h$]h&]uh1hhj+ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hach]hac}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMRhj+ubah}(h]h ]h"]h$]h&]uh1hhj+ubh)}(hhh]j)}(harea is accountableh]harea is accountable}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMRhj+ubah}(h]h ]h"]h$]h&]uh1hhj+ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hnrh]hnr}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMShj,ubah}(h]h ]h"]h$]h&]uh1hhj,ubh)}(hhh]j)}(h'swap space is not reserved for the areah]h'swap space is not reserved for the area}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMShj,ubah}(h]h ]h"]h$]h&]uh1hhj,ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hhth]hht}(hj=,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMThj:,ubah}(h]h ]h"]h$]h&]uh1hhj7,ubh)}(hhh]j)}(harea uses huge tlb pagesh]harea uses huge tlb pages}(hjT,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMThjQ,ubah}(h]h ]h"]h$]h&]uh1hhj7,ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hsfh]hsf}(hjt,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMUhjq,ubah}(h]h ]h"]h$]h&]uh1hhjn,ubh)}(hhh]j)}(hsynchronous page faulth]hsynchronous page fault}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMUhj,ubah}(h]h ]h"]h$]h&]uh1hhjn,ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(harh]har}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMVhj,ubah}(h]h ]h"]h$]h&]uh1hhj,ubh)}(hhh]j)}(harchitecture specific flagh]harchitecture specific flag}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMVhj,ubah}(h]h ]h"]h$]h&]uh1hhj,ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hwfh]hwf}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMWhj,ubah}(h]h ]h"]h$]h&]uh1hhj,ubh)}(hhh]j)}(h wipe on forkh]h wipe on fork}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMWhj,ubah}(h]h ]h"]h$]h&]uh1hhj,ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hddh]hdd}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMXhj-ubah}(h]h ]h"]h$]h&]uh1hhj-ubh)}(hhh]j)}(h"do not include area into core dumph]h"do not include area into core dump}(hj0-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMXhj--ubah}(h]h ]h"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hsdh]hsd}(hjP-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMYhjM-ubah}(h]h ]h"]h$]h&]uh1hhjJ-ubh)}(hhh]j)}(hsoft dirty flagh]hsoft dirty flag}(hjg-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMYhjd-ubah}(h]h ]h"]h$]h&]uh1hhjJ-ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hmmh]hmm}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMZhj-ubah}(h]h ]h"]h$]h&]uh1hhj-ubh)}(hhh]j)}(hmixed map areah]hmixed map area}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMZhj-ubah}(h]h ]h"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hhgh]hhg}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM[hj-ubah}(h]h ]h"]h$]h&]uh1hhj-ubh)}(hhh]j)}(hhuge page advise flagh]hhuge page advise flag}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM[hj-ubah}(h]h ]h"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hnhh]hnh}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM\hj-ubah}(h]h ]h"]h$]h&]uh1hhj-ubh)}(hhh]j)}(hno huge page advise flagh]hno huge page advise flag}(hj .hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM\hj .ubah}(h]h ]h"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hmgh]hmg}(hj,.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM]hj).ubah}(h]h ]h"]h$]h&]uh1hhj&.ubh)}(hhh]j)}(hmergeable advise flagh]hmergeable advise flag}(hjC.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM]hj@.ubah}(h]h ]h"]h$]h&]uh1hhj&.ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hbth]hbt}(hjc.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM^hj`.ubah}(h]h ]h"]h$]h&]uh1hhj].ubh)}(hhh]j)}(harm64 BTI guarded page)h]harm64 BTI guarded page}(hjz.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM^hjw.ubah}(h]h ]h"]h$]h&]uh1hhj].ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hmth]hmt}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM_hj.ubah}(h]h ]h"]h$]h&]uh1hhj.ubh)}(hhh]j)}(h%arm64 MTE allocation tags are enabledh]h%arm64 MTE allocation tags are enabled}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM_hj.ubah}(h]h ]h"]h$]h&]uh1hhj.ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(humh]hum}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM`hj.ubah}(h]h ]h"]h$]h&]uh1hhj.ubh)}(hhh]j)}(huserfaultfd missing trackingh]huserfaultfd missing tracking}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM`hj.ubah}(h]h ]h"]h$]h&]uh1hhj.ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(huwh]huw}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMahj/ubah}(h]h ]h"]h$]h&]uh1hhj/ubh)}(hhh]j)}(huserfaultfd wr-protect trackingh]huserfaultfd wr-protect tracking}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMahj/ubah}(h]h ]h"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]uh1hhj(ubh)}(hhh](h)}(hhh]j)}(hssh]hss}(hj?/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMbhj%hhhM@hjPhhubj)}(hXeNote that there is no guarantee that every flag and associated mnemonic will be present in all further kernel releases. Things get changed, the flags may be vanished or the reverse -- new added. Interpretation of their meaning might change in future as well. So each consumer of these flags has to follow each specific kernel version for the exact semantic.h]hXeNote that there is no guarantee that every flag and associated mnemonic will be present in all further kernel releases. Things get changed, the flags may be vanished or the reverse -- new added. Interpretation of their meaning might change in future as well. So each consumer of these flags has to follow each specific kernel version for the exact semantic.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMfhjPhhubj)}(hSThis file is only present if the CONFIG_MMU kernel configuration option is enabled.h]hSThis file is only present if the CONFIG_MMU kernel configuration option is enabled.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMlhjPhhubj)}(hNote: reading /proc/PID/maps or /proc/PID/smaps is inherently racy (consistent output can be achieved only in the single read call).h]hNote: reading /proc/PID/maps or /proc/PID/smaps is inherently racy (consistent output can be achieved only in the single read call).}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMohjPhhubj)}(hThis typically manifests when doing partial reads of these files while the memory map is being modified. Despite the races, we do provide the following guarantees:h]hThis typically manifests when doing partial reads of these files while the memory map is being modified. Despite the races, we do provide the following guarantees:}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMrhjPhhubhenumerated_list)}(hhh](j)}(hXThe mapped addresses never go backwards, which implies no two regions will ever overlap.h]j)}(hXThe mapped addresses never go backwards, which implies no two regions will ever overlap.h]hXThe mapped addresses never go backwards, which implies no two regions will ever overlap.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMvhj/ubah}(h]h ]h"]h$]h&]uh1jhj/hhhhhNubj)}(hIf there is something at a given vaddr during the entirety of the life of the smaps/maps walk, there will be some output for it. h]j)}(hIf there is something at a given vaddr during the entirety of the life of the smaps/maps walk, there will be some output for it.h]hIf there is something at a given vaddr during the entirety of the life of the smaps/maps walk, there will be some output for it.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMxhj0ubah}(h]h ]h"]h$]h&]uh1jhj/hhhhhNubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix)uh1j/hjPhhhhhMvubj)}(hThe /proc/PID/smaps_rollup file includes the same fields as /proc/PID/smaps, but their values are the sums of the corresponding values for all mappings of the process. Additionally, it contains these fields:h]hThe /proc/PID/smaps_rollup file includes the same fields as /proc/PID/smaps, but their values are the sums of the corresponding values for all mappings of the process. Additionally, it contains these fields:}(hj80hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM{hjPhhubj)}(hhh](j)}(hPss_Anonh]j)}(hjK0h]hPss_Anon}(hjM0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjI0ubah}(h]h ]h"]h$]h&]uh1jhjF0hhhhhNubj)}(hPss_Fileh]j)}(hjb0h]hPss_File}(hjd0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj`0ubah}(h]h ]h"]h$]h&]uh1jhjF0hhhhhNubj)}(h Pss_Shmem h]j)}(h Pss_Shmemh]h Pss_Shmem}(hj{0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjw0ubah}(h]h ]h"]h$]h&]uh1jhjF0hhhhhNubeh}(h]h ]h"]h$]h&]j-uh1jhhhMhjPhhubj)}(hXHThey represent the proportional shares of anonymous, file, and shmem pages, as described for smaps above. These fields are omitted in smaps since each mapping identifies the type (anon, file, or shmem) of all pages it contains. Thus all information in smaps_rollup can be derived from smaps, but at a significantly higher cost.h]hXHThey represent the proportional shares of anonymous, file, and shmem pages, as described for smaps above. These fields are omitted in smaps since each mapping identifies the type (anon, file, or shmem) of all pages it contains. Thus all information in smaps_rollup can be derived from smaps, but at a significantly higher cost.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hX0The /proc/PID/clear_refs is used to reset the PG_Referenced and ACCESSED/YOUNG bits on both physical and virtual pages associated with a process, and the soft-dirty bit on pte (see Documentation/admin-guide/mm/soft-dirty.rst for details). To clear the bits for all the pages associated with the process::h]hX/The /proc/PID/clear_refs is used to reset the PG_Referenced and ACCESSED/YOUNG bits on both physical and virtual pages associated with a process, and the soft-dirty bit on pte (see Documentation/admin-guide/mm/soft-dirty.rst for details). To clear the bits for all the pages associated with the process:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj )}(h> echo 1 > /proc/PID/clear_refsh]h> echo 1 > /proc/PID/clear_refs}hj0sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjPhhubj)}(hGTo clear the bits for the anonymous pages associated with the process::h]hFTo clear the bits for the anonymous pages associated with the process:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj )}(h> echo 2 > /proc/PID/clear_refsh]h> echo 2 > /proc/PID/clear_refs}hj0sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjPhhubj)}(hITo clear the bits for the file mapped pages associated with the process::h]hHTo clear the bits for the file mapped pages associated with the process:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj )}(h> echo 3 > /proc/PID/clear_refsh]h> echo 3 > /proc/PID/clear_refs}hj0sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjPhhubj)}(hTo clear the soft-dirty bit::h]hTo clear the soft-dirty bit:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj )}(h> echo 4 > /proc/PID/clear_refsh]h> echo 4 > /proc/PID/clear_refs}hj1sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjPhhubj)}(hXTo reset the peak resident set size ("high water mark") to the process's current value::h]h]To reset the peak resident set size (“high water mark”) to the process’s current value:}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj )}(h> echo 5 > /proc/PID/clear_refsh]h> echo 5 > /proc/PID/clear_refs}hj"1sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjPhhubj)}(hDAny other value written to /proc/PID/clear_refs will have no effect.h]hDAny other value written to /proc/PID/clear_refs will have no effect.}(hj01hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hThe /proc/pid/pagemap gives the PFN, which can be used to find the pageflags using /proc/kpageflags and number of times a page is mapped using /proc/kpagecount. For detailed explanation, see Documentation/admin-guide/mm/pagemap.rst.h]hThe /proc/pid/pagemap gives the PFN, which can be used to find the pageflags using /proc/kpageflags and number of times a page is mapped using /proc/kpagecount. For detailed explanation, see Documentation/admin-guide/mm/pagemap.rst.}(hj>1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hX#The /proc/pid/numa_maps is an extension based on maps, showing the memory locality and binding policy, as well as the memory usage (in pages) of each mapping. The output follows a general format where mapping details get summarized separated by blank spaces, one mapping per each file line::h]hX"The /proc/pid/numa_maps is an extension based on maps, showing the memory locality and binding policy, as well as the memory usage (in pages) of each mapping. The output follows a general format where mapping details get summarized separated by blank spaces, one mapping per each file line:}(hjL1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj )}(hXaddress policy mapping details 00400000 default file=/usr/local/bin/app mapped=1 active=0 N3=1 kernelpagesize_kB=4 00600000 default file=/usr/local/bin/app anon=1 dirty=1 N3=1 kernelpagesize_kB=4 3206000000 default file=/lib64/ld-2.12.so mapped=26 mapmax=6 N0=24 N3=2 kernelpagesize_kB=4 320621f000 default file=/lib64/ld-2.12.so anon=1 dirty=1 N3=1 kernelpagesize_kB=4 3206220000 default file=/lib64/ld-2.12.so anon=1 dirty=1 N3=1 kernelpagesize_kB=4 3206221000 default anon=1 dirty=1 N3=1 kernelpagesize_kB=4 3206800000 default file=/lib64/libc-2.12.so mapped=59 mapmax=21 active=55 N0=41 N3=18 kernelpagesize_kB=4 320698b000 default file=/lib64/libc-2.12.so 3206b8a000 default file=/lib64/libc-2.12.so anon=2 dirty=2 N3=2 kernelpagesize_kB=4 3206b8e000 default file=/lib64/libc-2.12.so anon=1 dirty=1 N3=1 kernelpagesize_kB=4 3206b8f000 default anon=3 dirty=3 active=1 N3=3 kernelpagesize_kB=4 7f4dc10a2000 default anon=3 dirty=3 N3=3 kernelpagesize_kB=4 7f4dc10b4000 default anon=2 dirty=2 active=1 N3=2 kernelpagesize_kB=4 7f4dc1200000 default file=/anon_hugepage\040(deleted) huge anon=1 dirty=1 N3=1 kernelpagesize_kB=2048 7fff335f0000 default stack anon=3 dirty=3 N3=3 kernelpagesize_kB=4 7fff3369d000 default mapped=1 mapmax=35 active=0 N3=1 kernelpagesize_kB=4h]hXaddress policy mapping details 00400000 default file=/usr/local/bin/app mapped=1 active=0 N3=1 kernelpagesize_kB=4 00600000 default file=/usr/local/bin/app anon=1 dirty=1 N3=1 kernelpagesize_kB=4 3206000000 default file=/lib64/ld-2.12.so mapped=26 mapmax=6 N0=24 N3=2 kernelpagesize_kB=4 320621f000 default file=/lib64/ld-2.12.so anon=1 dirty=1 N3=1 kernelpagesize_kB=4 3206220000 default file=/lib64/ld-2.12.so anon=1 dirty=1 N3=1 kernelpagesize_kB=4 3206221000 default anon=1 dirty=1 N3=1 kernelpagesize_kB=4 3206800000 default file=/lib64/libc-2.12.so mapped=59 mapmax=21 active=55 N0=41 N3=18 kernelpagesize_kB=4 320698b000 default file=/lib64/libc-2.12.so 3206b8a000 default file=/lib64/libc-2.12.so anon=2 dirty=2 N3=2 kernelpagesize_kB=4 3206b8e000 default file=/lib64/libc-2.12.so anon=1 dirty=1 N3=1 kernelpagesize_kB=4 3206b8f000 default anon=3 dirty=3 active=1 N3=3 kernelpagesize_kB=4 7f4dc10a2000 default anon=3 dirty=3 N3=3 kernelpagesize_kB=4 7f4dc10b4000 default anon=2 dirty=2 active=1 N3=2 kernelpagesize_kB=4 7f4dc1200000 default file=/anon_hugepage\040(deleted) huge anon=1 dirty=1 N3=1 kernelpagesize_kB=2048 7fff335f0000 default stack anon=3 dirty=3 N3=3 kernelpagesize_kB=4 7fff3369d000 default mapped=1 mapmax=35 active=0 N3=1 kernelpagesize_kB=4}hjZ1sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjPhhubj)}(hWhere:h]hWhere:}(hjh1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(h2"address" is the starting address for the mapping;h]h6“address” is the starting address for the mapping;}(hjv1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hv"policy" reports the NUMA memory policy set for the mapping (see Documentation/admin-guide/mm/numa_memory_policy.rst);h]hz“policy” reports the NUMA memory policy set for the mapping (see Documentation/admin-guide/mm/numa_memory_policy.rst);}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(h"mapping details" summarizes mapping data such as mapping type, page usage counters, node locality page counters (N0 == node0, N1 == node1, ...) and the kernel page size, in KB, that is backing the mapping up.h]h“mapping details” summarizes mapping data such as mapping type, page usage counters, node locality page counters (N0 == node0, N1 == node1, ...) and the kernel page size, in KB, that is backing the mapping up.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubj)}(hX Note that some kernel configurations do not track the precise number of times a page part of a larger allocation (e.g., THP) is mapped. In these configurations, "mapmax" might corresponds to the average number of mappings per page in such a larger allocation instead.h]hXNote that some kernel configurations do not track the precise number of times a page part of a larger allocation (e.g., THP) is mapped. In these configurations, “mapmax” might corresponds to the average number of mappings per page in such a larger allocation instead.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjPhhubeh}(h]process-specific-subdirectoriesah ]h"]#1.1 process-specific subdirectoriesah$]h&]uh1hhjhhhhhK{ubh)}(hhh](h)}(h1.2 Kernel datah]h1.2 Kernel data}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hhhhhMubj)}(hXcSimilar to the process entries, the kernel data files give information about the running kernel. The files used to obtain this information are contained in /proc and are listed in Table 1-5. Not all of these will be present in your system. It depends on the kernel configuration and the loaded modules, which files are there, and which are missing.h]hXcSimilar to the process entries, the kernel data files give information about the running kernel. The files used to obtain this information are contained in /proc and are listed in Table 1-5. Not all of these will be present in your system. It depends on the kernel configuration and the loaded modules, which files are there, and which are missing.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubh)}(hhh](h)}(hTable 1-5: Kernel info in /proch]hTable 1-5: Kernel info in /proc}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj1ubh)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj1ubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKEuh1hhj1ubj )}(hhh]h)}(hhh](h)}(hhh]j)}(hFileh]hFile}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj2ubah}(h]h ]h"]h$]h&]uh1hhj2ubh)}(hhh]j)}(hContenth]hContent}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj2ubah}(h]h ]h"]h$]h&]uh1hhj2ubeh}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1j hj1ubh)}(hhh](h)}(hhh](h)}(hhh]j)}(h allocinfoh]h allocinfo}(hjF2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjC2ubah}(h]h ]h"]h$]h&]uh1hhj@2ubh)}(hhh]j)}(h(Memory allocations profiling informationh]h(Memory allocations profiling information}(hj]2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjZ2ubah}(h]h ]h"]h$]h&]uh1hhj@2ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hapmh]hapm}(hj}2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjz2ubah}(h]h ]h"]h$]h&]uh1hhjw2ubh)}(hhh]j)}(hAdvanced power management infoh]hAdvanced power management info}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj2ubah}(h]h ]h"]h$]h&]uh1hhjw2ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(h bootconfigh]h bootconfig}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj2ubah}(h]h ]h"]h$]h&]uh1hhj2ubh)}(hhh]j)}(hKernel command line obtained from boot config, and, if there were kernel parameters from the boot loader, a "# Parameters from bootloader:" line followed by a line containing those parameters prefixed by "# ". (5.5)h]hKernel command line obtained from boot config, and, if there were kernel parameters from the boot loader, a “# Parameters from bootloader:” line followed by a line containing those parameters prefixed by “# “. (5.5)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj2ubah}(h]h ]h"]h$]h&]uh1hhj2ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(h buddyinfoh]h buddyinfo}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj2ubah}(h]h ]h"]h$]h&]uh1hhj2ubh)}(hhh]j)}(h7Kernel memory allocator information (see text) (2.5)h]h7Kernel memory allocator information (see text) (2.5)}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj2ubah}(h]h ]h"]h$]h&]uh1hhj2ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hbush]hbus}(hj"3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj3ubah}(h]h ]h"]h$]h&]uh1hhj3ubh)}(hhh]j)}(h-Directory containing bus specific informationh]h-Directory containing bus specific information}(hj93hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj63ubah}(h]h ]h"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hcmdlineh]hcmdline}(hjY3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjV3ubah}(h]h ]h"]h$]h&]uh1hhjS3ubh)}(hhh]j)}(hJKernel command line, both from bootloader and embedded in the kernel imageh]hJKernel command line, both from bootloader and embedded in the kernel image}(hjp3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjm3ubah}(h]h ]h"]h$]h&]uh1hhjS3ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hcpuinfoh]hcpuinfo}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj3ubah}(h]h ]h"]h$]h&]uh1hhj3ubh)}(hhh]j)}(hInfo about the CPUh]hInfo about the CPU}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj3ubah}(h]h ]h"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hdevicesh]hdevices}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj3ubah}(h]h ]h"]h$]h&]uh1hhj3ubh)}(hhh]j)}(h'Available devices (block and character)h]h'Available devices (block and character)}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj3ubah}(h]h ]h"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hdmah]hdma}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj3ubah}(h]h ]h"]h$]h&]uh1hhj3ubh)}(hhh]j)}(hUsed DMS channelsh]hUsed DMS channels}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj4ubah}(h]h ]h"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(h filesystemsh]h filesystems}(hj54hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj24ubah}(h]h ]h"]h$]h&]uh1hhj/4ubh)}(hhh]j)}(hSupported filesystemsh]hSupported filesystems}(hjL4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjI4ubah}(h]h ]h"]h$]h&]uh1hhj/4ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hdriverh]hdriver}(hjl4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhji4ubah}(h]h ]h"]h$]h&]uh1hhjf4ubh)}(hhh]j)}(h7Various drivers grouped here, currently rtc (2.4)h]h7Various drivers grouped here, currently rtc (2.4)}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj4ubah}(h]h ]h"]h$]h&]uh1hhjf4ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(h execdomainsh]h execdomains}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj4ubah}(h]h ]h"]h$]h&]uh1hhj4ubh)}(hhh]j)}(h7Execdomains, related to security (2.4)h]h7Execdomains, related to security (2.4)}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj4ubah}(h]h ]h"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hfbh]hfb}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj4ubah}(h]h ]h"]h$]h&]uh1hhj4ubh)}(hhh]j)}(h7Frame Buffer devices (2.4)h]h7Frame Buffer devices (2.4)}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj4ubah}(h]h ]h"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hfsh]hfs}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj5ubah}(h]h ]h"]h$]h&]uh1hhj 5ubh)}(hhh]j)}(h7File system parameters, currently nfs/exports (2.4)h]h7File system parameters, currently nfs/exports (2.4)}(hj(5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj%5ubah}(h]h ]h"]h$]h&]uh1hhj 5ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hideh]hide}(hjH5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjE5ubah}(h]h ]h"]h$]h&]uh1hhjB5ubh)}(hhh]j)}(h1Directory containing info about the IDE subsystemh]h1Directory containing info about the IDE subsystem}(hj_5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj\5ubah}(h]h ]h"]h$]h&]uh1hhjB5ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(h interruptsh]h interrupts}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj|5ubah}(h]h ]h"]h$]h&]uh1hhjy5ubh)}(hhh]j)}(hInterrupt usageh]hInterrupt usage}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj5ubah}(h]h ]h"]h$]h&]uh1hhjy5ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hiomemh]hiomem}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj5ubah}(h]h ]h"]h$]h&]uh1hhj5ubh)}(hhh]j)}(h7Memory map (2.4)h]h7Memory map (2.4)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj5ubah}(h]h ]h"]h$]h&]uh1hhj5ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hioportsh]hioports}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj5ubah}(h]h ]h"]h$]h&]uh1hhj5ubh)}(hhh]j)}(hI/O port usageh]hI/O port usage}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj6ubah}(h]h ]h"]h$]h&]uh1hhj5ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hirqh]hirq}(hj$6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj!6ubah}(h]h ]h"]h$]h&]uh1hhj6ubh)}(hhh]j)}(h=Masks for irq to cpu affinity (2.4)(smp?)h]h=Masks for irq to cpu affinity (2.4)(smp?)}(hj;6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj86ubah}(h]h ]h"]h$]h&]uh1hhj6ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hisapnph]hisapnp}(hj[6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjX6ubah}(h]h ]h"]h$]h&]uh1hhjU6ubh)}(hhh]j)}(h7ISA PnP (Plug&Play) Info (2.4)h]h7ISA PnP (Plug&Play) Info (2.4)}(hjr6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjo6ubah}(h]h ]h"]h$]h&]uh1hhjU6ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hkcoreh]hkcore}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj6ubah}(h]h ]h"]h$]h&]uh1hhj6ubh)}(hhh]j)}(h:Kernel core image (can be ELF or A.OUT(deprecated in 2.4))h]h:Kernel core image (can be ELF or A.OUT(deprecated in 2.4))}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj6ubah}(h]h ]h"]h$]h&]uh1hhj6ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hkmsgh]hkmsg}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj6ubah}(h]h ]h"]h$]h&]uh1hhj6ubh)}(hhh]j)}(hKernel messagesh]hKernel messages}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj6ubah}(h]h ]h"]h$]h&]uh1hhj6ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hksymsh]hksyms}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj6ubah}(h]h ]h"]h$]h&]uh1hhj6ubh)}(hhh]j)}(hKernel symbol tableh]hKernel symbol table}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj7ubah}(h]h ]h"]h$]h&]uh1hhj6ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hloadavgh]hloadavg}(hj77hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj47ubah}(h]h ]h"]h$]h&]uh1hhj17ubh)}(hhh]hdefinition_list)}(hhh]hdefinition_list_item)}(hXmLoad average of last 1, 5 & 15 minutes; number of processes currently runnable (running or on ready queue); total number of processes in system; last pid created. All fields are separated by one space except "number of processes currently runnable" and "total number of processes in system", which are separated by a slash ('/'). Example: 0.61 0.61 0.55 3/828 22084h](hterm)}(h'Load average of last 1, 5 & 15 minutes;h]h'Load average of last 1, 5 & 15 minutes;}(hj[7hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMhjU7ubh definition)}(hhh]j)}(hXEnumber of processes currently runnable (running or on ready queue); total number of processes in system; last pid created. All fields are separated by one space except "number of processes currently runnable" and "total number of processes in system", which are separated by a slash ('/'). Example: 0.61 0.61 0.55 3/828 22084h]hXQnumber of processes currently runnable (running or on ready queue); total number of processes in system; last pid created. All fields are separated by one space except “number of processes currently runnable” and “total number of processes in system”, which are separated by a slash (‘/’). Example: 0.61 0.61 0.55 3/828 22084}(hjn7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjk7ubah}(h]h ]h"]h$]h&]uh1ji7hjU7ubeh}(h]h ]h"]h$]h&]uh1jS7hhhMhjP7ubah}(h]h ]h"]h$]h&]uh1jN7hjK7ubah}(h]h ]h"]h$]h&]uh1hhj17ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hlocksh]hlocks}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj7ubah}(h]h ]h"]h$]h&]uh1hhj7ubh)}(hhh]j)}(h Kernel locksh]h Kernel locks}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj7ubah}(h]h ]h"]h$]h&]uh1hhj7ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hmeminfoh]hmeminfo}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj7ubah}(h]h ]h"]h$]h&]uh1hhj7ubh)}(hhh]j)}(h Memory infoh]h Memory info}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj7ubah}(h]h ]h"]h$]h&]uh1hhj7ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hmisch]hmisc}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj 8ubah}(h]h ]h"]h$]h&]uh1hhj8ubh)}(hhh]j)}(h Miscellaneoush]h Miscellaneous}(hj%8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj"8ubah}(h]h ]h"]h$]h&]uh1hhj8ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hmodulesh]hmodules}(hjE8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjB8ubah}(h]h ]h"]h$]h&]uh1hhj?8ubh)}(hhh]j)}(hList of loaded modulesh]hList of loaded modules}(hj\8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjY8ubah}(h]h ]h"]h$]h&]uh1hhj?8ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hmountsh]hmounts}(hj|8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjy8ubah}(h]h ]h"]h$]h&]uh1hhjv8ubh)}(hhh]j)}(hMounted filesystemsh]hMounted filesystems}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj8ubah}(h]h ]h"]h$]h&]uh1hhjv8ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hneth]hnet}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj8ubah}(h]h ]h"]h$]h&]uh1hhj8ubh)}(hhh]j)}(hNetworking info (see text)h]hNetworking info (see text)}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj8ubah}(h]h ]h"]h$]h&]uh1hhj8ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(h pagetypeinfoh]h pagetypeinfo}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj8ubah}(h]h ]h"]h$]h&]uh1hhj8ubh)}(hhh]j)}(h7Additional page allocator information (see text) (2.5)h]h7Additional page allocator information (see text) (2.5)}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj8ubah}(h]h ]h"]h$]h&]uh1hhj8ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(h partitionsh]h partitions}(hj!9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj9ubah}(h]h ]h"]h$]h&]uh1hhj9ubh)}(hhh]j)}(h'Table of partitions known to the systemh]h'Table of partitions known to the system}(hj89hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj59ubah}(h]h ]h"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hpcih]hpci}(hjX9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjU9ubah}(h]h ]h"]h$]h&]uh1hhjR9ubh)}(hhh]j)}(hnDeprecated info of PCI bus (new way -> /proc/bus/pci/, decoupled by lspci (2.4)h]hnDeprecated info of PCI bus (new way -> /proc/bus/pci/, decoupled by lspci (2.4)}(hjo9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjl9ubah}(h]h ]h"]h$]h&]uh1hhjR9ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hrtch]hrtc}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj9ubah}(h]h ]h"]h$]h&]uh1hhj9ubh)}(hhh]j)}(hReal time clockh]hReal time clock}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj9ubah}(h]h ]h"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hscsih]hscsi}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj9ubah}(h]h ]h"]h$]h&]uh1hhj9ubh)}(hhh]j)}(hSCSI info (see text)h]hSCSI info (see text)}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj9ubah}(h]h ]h"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hslabinfoh]hslabinfo}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj9ubah}(h]h ]h"]h$]h&]uh1hhj9ubh)}(hhh]j)}(hSlab pool infoh]hSlab pool info}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj:ubah}(h]h ]h"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hsoftirqsh]hsoftirqs}(hj4:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1:ubah}(h]h ]h"]h$]h&]uh1hhj.:ubh)}(hhh]j)}(h softirq usageh]h softirq usage}(hjK:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjH:ubah}(h]h ]h"]h$]h&]uh1hhj.:ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hstath]hstat}(hjk:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjh:ubah}(h]h ]h"]h$]h&]uh1hhje:ubh)}(hhh]j)}(hOverall statisticsh]hOverall statistics}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj:ubah}(h]h ]h"]h$]h&]uh1hhje:ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hswapsh]hswaps}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj:ubah}(h]h ]h"]h$]h&]uh1hhj:ubh)}(hhh]j)}(hSwap space utilizationh]hSwap space utilization}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj:ubah}(h]h ]h"]h$]h&]uh1hhj:ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hsysh]hsys}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj:ubah}(h]h ]h"]h$]h&]uh1hhj:ubh)}(hhh]j)}(h See chapter 2h]h See chapter 2}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj:ubah}(h]h ]h"]h$]h&]uh1hhj:ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hsysvipch]hsysvipc}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj ;ubah}(h]h ]h"]h$]h&]uh1hhj ;ubh)}(hhh]j)}(h7Info of SysVIPC Resources (msg, sem, shm) (2.4)h]h7Info of SysVIPC Resources (msg, sem, shm) (2.4)}(hj';hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj$;ubah}(h]h ]h"]h$]h&]uh1hhj ;ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(httyh]htty}(hjG;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjD;ubah}(h]h ]h"]h$]h&]uh1hhjA;ubh)}(hhh]j)}(hInfo of tty driversh]hInfo of tty drivers}(hj^;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj[;ubah}(h]h ]h"]h$]h&]uh1hhjA;ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(huptimeh]huptime}(hj~;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj{;ubah}(h]h ]h"]h$]h&]uh1hhjx;ubh)}(hhh]j)}(h5Wall clock since boot, combined idle time of all cpush]h5Wall clock since boot, combined idle time of all cpus}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj;ubah}(h]h ]h"]h$]h&]uh1hhjx;ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hversionh]hversion}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj;ubah}(h]h ]h"]h$]h&]uh1hhj;ubh)}(hhh]j)}(hKernel versionh]hKernel version}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj;ubah}(h]h ]h"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(hvideoh]hvideo}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj;ubah}(h]h ]h"]h$]h&]uh1hhj;ubh)}(hhh]j)}(h7bttv info of video resources (2.4)h]h7bttv info of video resources (2.4)}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj<ubah}(h]h ]h"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubh)}(hhh](h)}(hhh]j)}(h vmallocinfoh]h vmallocinfo}(hj#<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj <ubah}(h]h ]h"]h$]h&]uh1hhj<ubh)}(hhh]j)}(hShow vmalloced areash]hShow vmalloced areas}(hj:<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj7<ubah}(h]h ]h"]h$]h&]uh1hhj<ubeh}(h]h ]h"]h$]h&]uh1hhj=2ubeh}(h]h ]h"]h$]h&]uh1hhj1ubeh}(h]h ]h"]h$]h&]colsKuh1hhj1ubeh}(h]id13ah ]h"]h$]h&]uh1hhj1hhhhhNubj)}(hYou can, for example, check which interrupts are currently in use and what they are used for by looking in the file /proc/interrupts::h]hYou can, for example, check which interrupts are currently in use and what they are used for by looking in the file /proc/interrupts:}(hjh<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj )}(hX> cat /proc/interrupts CPU0 0: 8728810 XT-PIC timer 1: 895 XT-PIC keyboard 2: 0 XT-PIC cascade 3: 531695 XT-PIC aha152x 4: 2014133 XT-PIC serial 5: 44401 XT-PIC pcnet_cs 8: 2 XT-PIC rtc 11: 8 XT-PIC i82365 12: 182918 XT-PIC PS/2 Mouse 13: 1 XT-PIC fpu 14: 1232265 XT-PIC ide0 15: 7 XT-PIC ide1 NMI: 0h]hX> cat /proc/interrupts CPU0 0: 8728810 XT-PIC timer 1: 895 XT-PIC keyboard 2: 0 XT-PIC cascade 3: 531695 XT-PIC aha152x 4: 2014133 XT-PIC serial 5: 44401 XT-PIC pcnet_cs 8: 2 XT-PIC rtc 11: 8 XT-PIC i82365 12: 182918 XT-PIC PS/2 Mouse 13: 1 XT-PIC fpu 14: 1232265 XT-PIC ide0 15: 7 XT-PIC ide1 NMI: 0}hjv<sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhj1hhubj)}(hjIn 2.4.* a couple of lines where added to this file LOC & ERR (this time is the output of a SMP machine)::h]hiIn 2.4.* a couple of lines where added to this file LOC & ERR (this time is the output of a SMP machine):}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM.hj1hhubj )}(hX> cat /proc/interrupts CPU0 CPU1 0: 1243498 1214548 IO-APIC-edge timer 1: 8949 8958 IO-APIC-edge keyboard 2: 0 0 XT-PIC cascade 5: 11286 10161 IO-APIC-edge soundblaster 8: 1 0 IO-APIC-edge rtc 9: 27422 27407 IO-APIC-edge 3c503 12: 113645 113873 IO-APIC-edge PS/2 Mouse 13: 0 0 XT-PIC fpu 14: 22491 24012 IO-APIC-edge ide0 15: 2183 2415 IO-APIC-edge ide1 17: 30564 30414 IO-APIC-level eth0 18: 177 164 IO-APIC-level bttv NMI: 2457961 2457959 LOC: 2457882 2457881 ERR: 2155h]hX> cat /proc/interrupts CPU0 CPU1 0: 1243498 1214548 IO-APIC-edge timer 1: 8949 8958 IO-APIC-edge keyboard 2: 0 0 XT-PIC cascade 5: 11286 10161 IO-APIC-edge soundblaster 8: 1 0 IO-APIC-edge rtc 9: 27422 27407 IO-APIC-edge 3c503 12: 113645 113873 IO-APIC-edge PS/2 Mouse 13: 0 0 XT-PIC fpu 14: 22491 24012 IO-APIC-edge ide0 15: 2183 2415 IO-APIC-edge ide1 17: 30564 30414 IO-APIC-level eth0 18: 177 164 IO-APIC-level bttv NMI: 2457961 2457959 LOC: 2457882 2457881 ERR: 2155}hj<sbah}(h]h ]h"]h$]h&]hhuh1j hhhM1hj1hhubj)}(hNMI is incremented in this case because every timer interrupt generates a NMI (Non Maskable Interrupt) which is used by the NMI Watchdog to detect lockups.h]hNMI is incremented in this case because every timer interrupt generates a NMI (Non Maskable Interrupt) which is used by the NMI Watchdog to detect lockups.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMDhj1hhubj)}(hELOC is the local interrupt counter of the internal APIC of every CPU.h]hELOC is the local interrupt counter of the internal APIC of every CPU.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMGhj1hhubj)}(hXERR is incremented in the case of errors in the IO-APIC bus (the bus that connects the CPUs in a SMP system. This means that an error has been detected, the IO-APIC automatically retry the transmission, so it should not be a big problem, but you should read the SMP-FAQ.h]hXERR is incremented in the case of errors in the IO-APIC bus (the bus that connects the CPUs in a SMP system. This means that an error has been detected, the IO-APIC automatically retry the transmission, so it should not be a big problem, but you should read the SMP-FAQ.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMIhj1hhubj)}(hIn 2.6.2* /proc/interrupts was expanded again. This time the goal was for /proc/interrupts to display every IRQ vector in use by the system, not just those considered 'most important'. The new vectors are:h]hIn 2.6.2* /proc/interrupts was expanded again. This time the goal was for /proc/interrupts to display every IRQ vector in use by the system, not just those considered ‘most important’. The new vectors are:}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMNhj1hhubjO7)}(hhh](jT7)}(hTHR interrupt raised when a machine check threshold counter (typically counting ECC corrected errors of memory or cache) exceeds a configurable threshold. Only available on some systems. h](jZ7)}(hTHRh]hTHR}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMUhj<ubjj7)}(hhh]j)}(hinterrupt raised when a machine check threshold counter (typically counting ECC corrected errors of memory or cache) exceeds a configurable threshold. Only available on some systems.h]hinterrupt raised when a machine check threshold counter (typically counting ECC corrected errors of memory or cache) exceeds a configurable threshold. Only available on some systems.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMShj<ubah}(h]h ]h"]h$]h&]uh1ji7hj<ubeh}(h]h ]h"]h$]h&]uh1jS7hhhMUhj<ubjT7)}(hTRM a thermal event interrupt occurs when a temperature threshold has been exceeded for the CPU. This interrupt may also be generated when the temperature drops back to normal. h](jZ7)}(hTRMh]hTRM}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMZhj =ubjj7)}(hhh]j)}(ha thermal event interrupt occurs when a temperature threshold has been exceeded for the CPU. This interrupt may also be generated when the temperature drops back to normal.h]ha thermal event interrupt occurs when a temperature threshold has been exceeded for the CPU. This interrupt may also be generated when the temperature drops back to normal.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMXhj=ubah}(h]h ]h"]h$]h&]uh1ji7hj =ubeh}(h]h ]h"]h$]h&]uh1jS7hhhMZhj<hhubjT7)}(hXUSPU a spurious interrupt is some interrupt that was raised then lowered by some IO device before it could be fully processed by the APIC. Hence the APIC sees the interrupt but does not know what device it came from. For this case the APIC will generate the interrupt with a IRQ vector of 0xff. This might also be generated by chipset bugs. h](jZ7)}(hSPUh]hSPU}(hj==hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMahj9=ubjj7)}(hhh]j)}(hXPa spurious interrupt is some interrupt that was raised then lowered by some IO device before it could be fully processed by the APIC. Hence the APIC sees the interrupt but does not know what device it came from. For this case the APIC will generate the interrupt with a IRQ vector of 0xff. This might also be generated by chipset bugs.h]hXPa spurious interrupt is some interrupt that was raised then lowered by some IO device before it could be fully processed by the APIC. Hence the APIC sees the interrupt but does not know what device it came from. For this case the APIC will generate the interrupt with a IRQ vector of 0xff. This might also be generated by chipset bugs.}(hjN=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM]hjK=ubah}(h]h ]h"]h$]h&]uh1ji7hj9=ubeh}(h]h ]h"]h$]h&]uh1jS7hhhMahj<hhubjT7)}(hXRES, CAL, TLB rescheduling, call and TLB flush interrupts are sent from one CPU to another per the needs of the OS. Typically, their statistics are used by kernel developers and interested users to determine the occurrence of interrupts of the given type. h](jZ7)}(h RES, CAL, TLBh]h RES, CAL, TLB}(hjl=hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMghjh=ubjj7)}(hhh]j)}(hrescheduling, call and TLB flush interrupts are sent from one CPU to another per the needs of the OS. Typically, their statistics are used by kernel developers and interested users to determine the occurrence of interrupts of the given type.h]hrescheduling, call and TLB flush interrupts are sent from one CPU to another per the needs of the OS. Typically, their statistics are used by kernel developers and interested users to determine the occurrence of interrupts of the given type.}(hj}=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMdhjz=ubah}(h]h ]h"]h$]h&]uh1ji7hjh=ubeh}(h]h ]h"]h$]h&]uh1jS7hhhMghj<hhubeh}(h]h ]h"]h$]h&]uh1jN7hj1hhhhhNubj)}(hXThe above IRQ vectors are displayed only when relevant. For example, the threshold vector does not exist on x86_64 platforms. Others are suppressed when the system is a uniprocessor. As of this writing, only i386 and x86_64 platforms support the new IRQ vector displays.h]hXThe above IRQ vectors are displayed only when relevant. For example, the threshold vector does not exist on x86_64 platforms. Others are suppressed when the system is a uniprocessor. As of this writing, only i386 and x86_64 platforms support the new IRQ vector displays.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMihj1hhubj)}(hXCOf some interest is the introduction of the /proc/irq directory to 2.4. It could be used to set IRQ to CPU affinity. This means that you can "hook" an IRQ to only one CPU, or to exclude a CPU of handling IRQs. The contents of the irq subdir is one subdir for each IRQ, and two files; default_smp_affinity and prof_cpu_mask.h]hXGOf some interest is the introduction of the /proc/irq directory to 2.4. It could be used to set IRQ to CPU affinity. This means that you can “hook” an IRQ to only one CPU, or to exclude a CPU of handling IRQs. The contents of the irq subdir is one subdir for each IRQ, and two files; default_smp_affinity and prof_cpu_mask.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMnhj1hhubj)}(h For example::h]h For example:}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMthj1hhubj )}(h> ls /proc/irq/ 0 10 12 14 16 18 2 4 6 8 prof_cpu_mask 1 11 13 15 17 19 3 5 7 9 default_smp_affinity > ls /proc/irq/0/ smp_affinityh]h> ls /proc/irq/ 0 10 12 14 16 18 2 4 6 8 prof_cpu_mask 1 11 13 15 17 19 3 5 7 9 default_smp_affinity > ls /proc/irq/0/ smp_affinity}hj=sbah}(h]h ]h"]h$]h&]hhuh1j hhhMvhj1hhubj)}(hlsmp_affinity is a bitmask, in which you can specify which CPUs can handle the IRQ. You can set it by doing::h]hksmp_affinity is a bitmask, in which you can specify which CPUs can handle the IRQ. You can set it by doing:}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM|hj1hhubj )}(h$> echo 1 > /proc/irq/10/smp_affinityh]h$> echo 1 > /proc/irq/10/smp_affinity}hj=sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhj1hhubj)}(hThis means that only the first CPU will handle the IRQ, but you can also echo 5 which means that only the first and third CPU can handle the IRQ.h]hThis means that only the first CPU will handle the IRQ, but you can also echo 5 which means that only the first and third CPU can handle the IRQ.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj)}(h?The contents of each smp_affinity file is the same by default::h]h>The contents of each smp_affinity file is the same by default:}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj )}(h'> cat /proc/irq/0/smp_affinity ffffffffh]h'> cat /proc/irq/0/smp_affinity ffffffff}hj >sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhj1hhubj)}(hmThere is an alternate interface, smp_affinity_list which allows specifying a CPU range instead of a bitmask::h]hlThere is an alternate interface, smp_affinity_list which allows specifying a CPU range instead of a bitmask:}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj )}(h-> cat /proc/irq/0/smp_affinity_list 1024-1031h]h-> cat /proc/irq/0/smp_affinity_list 1024-1031}hj)>sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhj1hhubj)}(hThe default_smp_affinity mask applies to all non-active IRQs, which are the IRQs which have not yet been allocated/activated, and hence which lack a /proc/irq/[0-9]* directory.h]hThe default_smp_affinity mask applies to all non-active IRQs, which are the IRQs which have not yet been allocated/activated, and hence which lack a /proc/irq/[0-9]* directory.}(hj7>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj)}(hThe node file on an SMP system shows the node to which the device using the IRQ reports itself as being attached. This hardware locality information does not include information about any possible driver locality preference.h]hThe node file on an SMP system shows the node to which the device using the IRQ reports itself as being attached. This hardware locality information does not include information about any possible driver locality preference.}(hjE>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj)}(hprof_cpu_mask specifies which CPUs are to be profiled by the system wide profiler. Default value is ffffffff (all CPUs if there are only 32 of them).h]hprof_cpu_mask specifies which CPUs are to be profiled by the system wide profiler. Default value is ffffffff (all CPUs if there are only 32 of them).}(hjS>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj)}(hX`The way IRQs are routed is handled by the IO-APIC, and it's Round Robin between all the CPUs which are allowed to handle it. As usual the kernel has more info than you and does a better job than you, so the defaults are the best choice for almost everyone. [Note this applies only to those IO-APIC's that support "Round Robin" interrupt distribution.]h]hXhThe way IRQs are routed is handled by the IO-APIC, and it’s Round Robin between all the CPUs which are allowed to handle it. As usual the kernel has more info than you and does a better job than you, so the defaults are the best choice for almost everyone. [Note this applies only to those IO-APIC’s that support “Round Robin” interrupt distribution.]}(hja>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj)}(hXzThere are three more important subdirectories in /proc: net, scsi, and sys. The general rule is that the contents, or even the existence of these directories, depend on your kernel configuration. If SCSI is not enabled, the directory scsi may not exist. The same is true with the net, which is there only when networking support is present in the running kernel.h]hXzThere are three more important subdirectories in /proc: net, scsi, and sys. The general rule is that the contents, or even the existence of these directories, depend on your kernel configuration. If SCSI is not enabled, the directory scsi may not exist. The same is true with the net, which is there only when networking support is present in the running kernel.}(hjo>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj)}(hX The slabinfo file gives information about memory usage at the slab level. Linux uses slab pools for memory management above page level in version 2.2. Commonly used objects have their own slab pool (such as network buffers, directory cache, and so on).h]hX The slabinfo file gives information about memory usage at the slab level. Linux uses slab pools for memory management above page level in version 2.2. Commonly used objects have their own slab pool (such as network buffers, directory cache, and so on).}(hj}>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj )}(h> cat /proc/buddyinfo Node 0, zone DMA 0 4 5 4 4 3 ... Node 0, zone Normal 1 0 0 1 101 8 ... Node 0, zone HighMem 2 0 0 1 1 0 ...h]h> cat /proc/buddyinfo Node 0, zone DMA 0 4 5 4 4 3 ... Node 0, zone Normal 1 0 0 1 101 8 ... Node 0, zone HighMem 2 0 0 1 1 0 ...}hj>sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhj1hhubj)}(hExternal fragmentation is a problem under some workloads, and buddyinfo is a useful tool for helping diagnose these problems. Buddyinfo will give you a clue as to how big an area you can safely allocate, or why a previous allocation failed.h]hExternal fragmentation is a problem under some workloads, and buddyinfo is a useful tool for helping diagnose these problems. Buddyinfo will give you a clue as to how big an area you can safely allocate, or why a previous allocation failed.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj)}(hXEach column represents the number of pages of a certain order which are available. In this case, there are 0 chunks of 2^0*PAGE_SIZE available in ZONE_DMA, 4 chunks of 2^1*PAGE_SIZE in ZONE_DMA, 101 chunks of 2^4*PAGE_SIZE available in ZONE_NORMAL, etc...h]hXEach column represents the number of pages of a certain order which are available. In this case, there are 0 chunks of 2^0*PAGE_SIZE available in ZONE_DMA, 4 chunks of 2^1*PAGE_SIZE in ZONE_DMA, 101 chunks of 2^4*PAGE_SIZE available in ZONE_NORMAL, etc...}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj)}(hRMore information relevant to external fragmentation can be found in pagetypeinfo::h]hQMore information relevant to external fragmentation can be found in pagetypeinfo:}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj )}(hX}> cat /proc/pagetypeinfo Page block order: 9 Pages per block: 512 Free pages count per migrate type at order 0 1 2 3 4 5 6 7 8 9 10 Node 0, zone DMA, type Unmovable 0 0 0 1 1 1 1 1 1 1 0 Node 0, zone DMA, type Reclaimable 0 0 0 0 0 0 0 0 0 0 0 Node 0, zone DMA, type Movable 1 1 2 1 2 1 1 0 1 0 2 Node 0, zone DMA, type Reserve 0 0 0 0 0 0 0 0 0 1 0 Node 0, zone DMA, type Isolate 0 0 0 0 0 0 0 0 0 0 0 Node 0, zone DMA32, type Unmovable 103 54 77 1 1 1 11 8 7 1 9 Node 0, zone DMA32, type Reclaimable 0 0 2 1 0 0 0 0 1 0 0 Node 0, zone DMA32, type Movable 169 152 113 91 77 54 39 13 6 1 452 Node 0, zone DMA32, type Reserve 1 2 2 2 2 0 1 1 1 1 0 Node 0, zone DMA32, type Isolate 0 0 0 0 0 0 0 0 0 0 0 Number of blocks type Unmovable Reclaimable Movable Reserve Isolate Node 0, zone DMA 2 0 5 1 0 Node 0, zone DMA32 41 6 967 2 0h]hX}> cat /proc/pagetypeinfo Page block order: 9 Pages per block: 512 Free pages count per migrate type at order 0 1 2 3 4 5 6 7 8 9 10 Node 0, zone DMA, type Unmovable 0 0 0 1 1 1 1 1 1 1 0 Node 0, zone DMA, type Reclaimable 0 0 0 0 0 0 0 0 0 0 0 Node 0, zone DMA, type Movable 1 1 2 1 2 1 1 0 1 0 2 Node 0, zone DMA, type Reserve 0 0 0 0 0 0 0 0 0 1 0 Node 0, zone DMA, type Isolate 0 0 0 0 0 0 0 0 0 0 0 Node 0, zone DMA32, type Unmovable 103 54 77 1 1 1 11 8 7 1 9 Node 0, zone DMA32, type Reclaimable 0 0 2 1 0 0 0 0 1 0 0 Node 0, zone DMA32, type Movable 169 152 113 91 77 54 39 13 6 1 452 Node 0, zone DMA32, type Reserve 1 2 2 2 2 0 1 1 1 1 0 Node 0, zone DMA32, type Isolate 0 0 0 0 0 0 0 0 0 0 0 Number of blocks type Unmovable Reclaimable Movable Reserve Isolate Node 0, zone DMA 2 0 5 1 0 Node 0, zone DMA32 41 6 967 2 0}hj>sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhj1hhubj)}(hXzFragmentation avoidance in the kernel works by grouping pages of different migrate types into the same contiguous regions of memory called page blocks. A page block is typically the size of the default hugepage size, e.g. 2MB on X86-64. By keeping pages grouped based on their ability to move, the kernel can reclaim pages within a page block to satisfy a high-order allocation.h]hXzFragmentation avoidance in the kernel works by grouping pages of different migrate types into the same contiguous regions of memory called page blocks. A page block is typically the size of the default hugepage size, e.g. 2MB on X86-64. By keeping pages grouped based on their ability to move, the kernel can reclaim pages within a page block to satisfy a high-order allocation.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj)}(hThe pagetypinfo begins with information on the size of a page block. It then gives the same type of information as buddyinfo except broken down by migrate-type and finishes with details on how many page blocks of each type exist.h]hThe pagetypinfo begins with information on the size of a page block. It then gives the same type of information as buddyinfo except broken down by migrate-type and finishes with details on how many page blocks of each type exist.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubj)}(hXIf min_free_kbytes has been tuned correctly (recommendations made by hugeadm from libhugetlbfs https://github.com/libhugetlbfs/libhugetlbfs/), one can make an estimate of the likely number of huge pages that can be allocated at a given point in time. All the "Movable" blocks should be allocatable unless memory has been mlock()'d. Some of the Reclaimable blocks should also be allocatable although a lot of filesystem metadata may have to be reclaimed to achieve this.h](h_If min_free_kbytes has been tuned correctly (recommendations made by hugeadm from libhugetlbfs }(hj>hhhNhNubj$)}(h-https://github.com/libhugetlbfs/libhugetlbfs/h]h-https://github.com/libhugetlbfs/libhugetlbfs/}(hj>hhhNhNubah}(h]h ]h"]h$]h&]refurij>uh1j#hj>ubhXO), one can make an estimate of the likely number of huge pages that can be allocated at a given point in time. All the “Movable” blocks should be allocatable unless memory has been mlock()’d. Some of the Reclaimable blocks should also be allocatable although a lot of filesystem metadata may have to be reclaimed to achieve this.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhhhMhj1hhubh)}(hhh](h)}(h allocinfoh]h allocinfo}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hhhhhMubj)}(hXProvides information about memory allocations at all locations in the code base. Each allocation in the code is identified by its source file, line number, module (if originates from a loadable module) and the function calling the allocation. The number of bytes allocated and number of calls at each location are reported. The first line indicates the version of the file, the second line is the header listing fields in the file.h]hXProvides information about memory allocations at all locations in the code base. Each allocation in the code is identified by its source file, line number, module (if originates from a loadable module) and the function calling the allocation. The number of bytes allocated and number of calls at each location are reported. The first line indicates the version of the file, the second line is the header listing fields in the file.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj?hhubj)}(hExample output.h]hExample output.}(hj-?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj?hhubj )}(hX > tail -n +3 /proc/allocinfo | sort -rn 127664128 31168 mm/page_ext.c:270 func:alloc_page_ext 56373248 4737 mm/slub.c:2259 func:alloc_slab_page 14880768 3633 mm/readahead.c:247 func:page_cache_ra_unbounded 14417920 3520 mm/mm_init.c:2530 func:alloc_large_system_hash 13377536 234 block/blk-mq.c:3421 func:blk_mq_alloc_rqs 11718656 2861 mm/filemap.c:1919 func:__filemap_get_folio 9192960 2800 kernel/fork.c:307 func:alloc_thread_stack_node 4206592 4 net/netfilter/nf_conntrack_core.c:2567 func:nf_ct_alloc_hashtable 4136960 1010 drivers/staging/ctagmod/ctagmod.c:20 [ctagmod] func:ctagmod_start 3940352 962 mm/memory.c:4214 func:alloc_anon_folio 2894464 22613 fs/kernfs/dir.c:615 func:__kernfs_new_node ...h]hX > tail -n +3 /proc/allocinfo | sort -rn 127664128 31168 mm/page_ext.c:270 func:alloc_page_ext 56373248 4737 mm/slub.c:2259 func:alloc_slab_page 14880768 3633 mm/readahead.c:247 func:page_cache_ra_unbounded 14417920 3520 mm/mm_init.c:2530 func:alloc_large_system_hash 13377536 234 block/blk-mq.c:3421 func:blk_mq_alloc_rqs 11718656 2861 mm/filemap.c:1919 func:__filemap_get_folio 9192960 2800 kernel/fork.c:307 func:alloc_thread_stack_node 4206592 4 net/netfilter/nf_conntrack_core.c:2567 func:nf_ct_alloc_hashtable 4136960 1010 drivers/staging/ctagmod/ctagmod.c:20 [ctagmod] func:ctagmod_start 3940352 962 mm/memory.c:4214 func:alloc_anon_folio 2894464 22613 fs/kernfs/dir.c:615 func:__kernfs_new_node ...}hj;?sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhj?hhubeh}(h] allocinfoah ]h"] allocinfoah$]h&]uh1hhj1hhhhhMubh)}(hhh](h)}(hmeminfoh]hmeminfo}(hjT?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ?hhhhhMubj)}(hXProvides information about distribution and utilization of memory. This varies by architecture and compile options. Some of the counters reported here overlap. The memory reported by the non overlapping counters may not add up to the overall memory usage and the difference for some workloads can be substantial. In many cases there are other means to find out additional memory using subsystem specific interfaces, for instance /proc/net/sockstat for TCP memory allocations.h]hXProvides information about distribution and utilization of memory. This varies by architecture and compile options. Some of the counters reported here overlap. The memory reported by the non overlapping counters may not add up to the overall memory usage and the difference for some workloads can be substantial. In many cases there are other means to find out additional memory using subsystem specific interfaces, for instance /proc/net/sockstat for TCP memory allocations.}(hjb?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjQ?hhubj)}(h5Example output. You may not have all of these fields.h]h5Example output. You may not have all of these fields.}(hjp?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjQ?hhubj )}(hX> cat /proc/meminfo MemTotal: 32858820 kB MemFree: 21001236 kB MemAvailable: 27214312 kB Buffers: 581092 kB Cached: 5587612 kB SwapCached: 0 kB Active: 3237152 kB Inactive: 7586256 kB Active(anon): 94064 kB Inactive(anon): 4570616 kB Active(file): 3143088 kB Inactive(file): 3015640 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 0 kB SwapFree: 0 kB Zswap: 1904 kB Zswapped: 7792 kB Dirty: 12 kB Writeback: 0 kB AnonPages: 4654780 kB Mapped: 266244 kB Shmem: 9976 kB KReclaimable: 517708 kB Slab: 660044 kB SReclaimable: 517708 kB SUnreclaim: 142336 kB KernelStack: 11168 kB PageTables: 20540 kB SecPageTables: 0 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 16429408 kB Committed_AS: 7715148 kB VmallocTotal: 34359738367 kB VmallocUsed: 40444 kB VmallocChunk: 0 kB Percpu: 29312 kB EarlyMemtestBad: 0 kB HardwareCorrupted: 0 kB AnonHugePages: 4149248 kB ShmemHugePages: 0 kB ShmemPmdMapped: 0 kB FileHugePages: 0 kB FilePmdMapped: 0 kB CmaTotal: 0 kB CmaFree: 0 kB Unaccepted: 0 kB Balloon: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB Hugetlb: 0 kB DirectMap4k: 401152 kB DirectMap2M: 10008576 kB DirectMap1G: 24117248 kBh]hX> cat /proc/meminfo MemTotal: 32858820 kB MemFree: 21001236 kB MemAvailable: 27214312 kB Buffers: 581092 kB Cached: 5587612 kB SwapCached: 0 kB Active: 3237152 kB Inactive: 7586256 kB Active(anon): 94064 kB Inactive(anon): 4570616 kB Active(file): 3143088 kB Inactive(file): 3015640 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 0 kB SwapFree: 0 kB Zswap: 1904 kB Zswapped: 7792 kB Dirty: 12 kB Writeback: 0 kB AnonPages: 4654780 kB Mapped: 266244 kB Shmem: 9976 kB KReclaimable: 517708 kB Slab: 660044 kB SReclaimable: 517708 kB SUnreclaim: 142336 kB KernelStack: 11168 kB PageTables: 20540 kB SecPageTables: 0 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 16429408 kB Committed_AS: 7715148 kB VmallocTotal: 34359738367 kB VmallocUsed: 40444 kB VmallocChunk: 0 kB Percpu: 29312 kB EarlyMemtestBad: 0 kB HardwareCorrupted: 0 kB AnonHugePages: 4149248 kB ShmemHugePages: 0 kB ShmemPmdMapped: 0 kB FileHugePages: 0 kB FilePmdMapped: 0 kB CmaTotal: 0 kB CmaFree: 0 kB Unaccepted: 0 kB Balloon: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB Hugetlb: 0 kB DirectMap4k: 401152 kB DirectMap2M: 10008576 kB DirectMap1G: 24117248 kB}hj~?sbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjQ?hhubjO7)}(hhh](jT7)}(hbMemTotal Total usable RAM (i.e. physical RAM minus a few reserved bits and the kernel binary code)h](jZ7)}(hMemTotalh]hMemTotal}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMShj?ubjj7)}(hhh]j)}(hYTotal usable RAM (i.e. physical RAM minus a few reserved bits and the kernel binary code)h]hYTotal usable RAM (i.e. physical RAM minus a few reserved bits and the kernel binary code)}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMShj?ubah}(h]h ]h"]h$]h&]uh1ji7hj?ubeh}(h]h ]h"]h$]h&]uh1jS7hhhMShj?ubjT7)}(hGMemFree Total free RAM. On highmem systems, the sum of LowFree+HighFreeh](jZ7)}(hMemFreeh]hMemFree}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMUhj?ubjj7)}(hhh]j)}(h?Total free RAM. On highmem systems, the sum of LowFree+HighFreeh]h?Total free RAM. On highmem systems, the sum of LowFree+HighFree}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMVhj?ubah}(h]h ]h"]h$]h&]uh1ji7hj?ubeh}(h]h ]h"]h$]h&]uh1jS7hhhMUhj?hhubjT7)}(hXMemAvailable An estimate of how much memory is available for starting new applications, without swapping. Calculated from MemFree, SReclaimable, the size of the file LRU lists, and the low watermarks in each zone. The estimate takes into account that the system needs some page cache to function well, and that not all reclaimable slab will be reclaimable, due to items being in use. The impact of those factors will vary from system to system.h](jZ7)}(h MemAvailableh]h MemAvailable}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhM^hj?ubjj7)}(hhh]j)}(hXAn estimate of how much memory is available for starting new applications, without swapping. Calculated from MemFree, SReclaimable, the size of the file LRU lists, and the low watermarks in each zone. The estimate takes into account that the system needs some page cache to function well, and that not all reclaimable slab will be reclaimable, due to items being in use. The impact of those factors will vary from system to system.h]hXAn estimate of how much memory is available for starting new applications, without swapping. Calculated from MemFree, SReclaimable, the size of the file LRU lists, and the low watermarks in each zone. The estimate takes into account that the system needs some page cache to function well, and that not all reclaimable slab will be reclaimable, due to items being in use. The impact of those factors will vary from system to system.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMXhj?ubah}(h]h ]h"]h$]h&]uh1ji7hj?ubeh}(h]h ]h"]h$]h&]uh1jS7hhhM^hj?hhubjT7)}(hfBuffers Relatively temporary storage for raw disk blocks shouldn't get tremendously large (20MB or so)h](jZ7)}(hBuffersh]hBuffers}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMahj@ubjj7)}(hhh]j)}(h^Relatively temporary storage for raw disk blocks shouldn't get tremendously large (20MB or so)h]h`Relatively temporary storage for raw disk blocks shouldn’t get tremendously large (20MB or so)}(hj1@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMahj.@ubah}(h]h ]h"]h$]h&]uh1ji7hj@ubeh}(h]h ]h"]h$]h&]uh1jS7hhhMahj?hhubjT7)}(hyCached In-memory cache for files read from the disk (the pagecache) as well as tmpfs & shmem. Doesn't include SwapCached.h](jZ7)}(hCachedh]hCached}(hjO@hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMehjK@ubjj7)}(hhh]j)}(hrIn-memory cache for files read from the disk (the pagecache) as well as tmpfs & shmem. Doesn't include SwapCached.h]htIn-memory cache for files read from the disk (the pagecache) as well as tmpfs & shmem. Doesn’t include SwapCached.}(hj`@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMdhj]@ubah}(h]h ]h"]h$]h&]uh1ji7hjK@ubeh}(h]h ]h"]h$]h&]uh1jS7hhhMehj?hhubjT7)}(hSwapCached Memory that once was swapped out, is swapped back in but still also is in the swapfile (if memory is needed it doesn't need to be swapped out AGAIN because it is already in the swapfile. This saves I/O)h](jZ7)}(h SwapCachedh]h SwapCached}(hj~@hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMjhjz@ubjj7)}(hhh]j)}(hMemory that once was swapped out, is swapped back in but still also is in the swapfile (if memory is needed it doesn't need to be swapped out AGAIN because it is already in the swapfile. This saves I/O)h]hMemory that once was swapped out, is swapped back in but still also is in the swapfile (if memory is needed it doesn’t need to be swapped out AGAIN because it is already in the swapfile. This saves I/O)}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhhj@ubah}(h]h ]h"]h$]h&]uh1ji7hjz@ubeh}(h]h ]h"]h$]h&]uh1jS7hhhMjhj?hhubjT7)}(heActive Memory that has been used more recently and usually not reclaimed unless absolutely necessary.h](jZ7)}(hActiveh]hActive}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMmhj@ubjj7)}(hhh]j)}(h^Memory that has been used more recently and usually not reclaimed unless absolutely necessary.h]h^Memory that has been used more recently and usually not reclaimed unless absolutely necessary.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMmhj@ubah}(h]h ]h"]h$]h&]uh1ji7hj@ubeh}(h]h ]h"]h$]h&]uh1jS7hhhMmhj?hhubjT7)}(hjInactive Memory which has been less recently used. It is more eligible to be reclaimed for other purposesh](jZ7)}(hInactiveh]hInactive}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMphj@ubjj7)}(hhh]j)}(haMemory which has been less recently used. It is more eligible to be reclaimed for other purposesh]haMemory which has been less recently used. It is more eligible to be reclaimed for other purposes}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMphj@ubah}(h]h ]h"]h$]h&]uh1ji7hj@ubeh}(h]h ]h"]h$]h&]uh1jS7hhhMphj?hhubjT7)}(hUnevictable Memory allocated for userspace which cannot be reclaimed, such as mlocked pages, ramfs backing pages, secret memfd pages etc.h](jZ7)}(h Unevictableh]h Unevictable}(hj AhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMshjAubjj7)}(hhh]j)}(h}Memory allocated for userspace which cannot be reclaimed, such as mlocked pages, ramfs backing pages, secret memfd pages etc.h]h}Memory allocated for userspace which cannot be reclaimed, such as mlocked pages, ramfs backing pages, secret memfd pages etc.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMshjAubah}(h]h ]h"]h$]h&]uh1ji7hjAubeh}(h]h ]h"]h$]h&]uh1jS7hhhMshj?hhubjT7)}(h#Mlocked Memory locked with mlock().h](jZ7)}(hMlockedh]hMlocked}(hj:AhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMuhj6Aubjj7)}(hhh]j)}(hMemory locked with mlock().h]hMemory locked with mlock().}(hjKAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMvhjHAubah}(h]h ]h"]h$]h&]uh1ji7hj6Aubeh}(h]h ]h"]h$]h&]uh1jS7hhhMuhj?hhubjT7)}(hHighTotal, HighFree Highmem is all memory above ~860MB of physical memory. Highmem areas are for use by userspace programs, or for the pagecache. The kernel must use tricks to access this memory, making it slower to access than lowmem.h](jZ7)}(hHighTotal, HighFreeh]hHighTotal, HighFree}(hjiAhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMzhjeAubjj7)}(hhh]j)}(hHighmem is all memory above ~860MB of physical memory. Highmem areas are for use by userspace programs, or for the pagecache. The kernel must use tricks to access this memory, making it slower to access than lowmem.h]hHighmem is all memory above ~860MB of physical memory. Highmem areas are for use by userspace programs, or for the pagecache. The kernel must use tricks to access this memory, making it slower to access than lowmem.}(hjzAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMxhjwAubah}(h]h ]h"]h$]h&]uh1ji7hjeAubeh}(h]h ]h"]h$]h&]uh1jS7hhhMzhj?hhubjT7)}(hX'LowTotal, LowFree Lowmem is memory which can be used for everything that highmem can be used for, but it is also available for the kernel's use for its own data structures. Among many other things, it is where everything from the Slab is allocated. Bad things happen when you're out of lowmem.h](jZ7)}(hLowTotal, LowFreeh]hLowTotal, LowFree}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMhjAubjj7)}(hhh]j)}(hXLowmem is memory which can be used for everything that highmem can be used for, but it is also available for the kernel's use for its own data structures. Among many other things, it is where everything from the Slab is allocated. Bad things happen when you're out of lowmem.h]hXLowmem is memory which can be used for everything that highmem can be used for, but it is also available for the kernel’s use for its own data structures. Among many other things, it is where everything from the Slab is allocated. Bad things happen when you’re out of lowmem.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM}hjAubah}(h]h ]h"]h$]h&]uh1ji7hjAubeh}(h]h ]h"]h$]h&]uh1jS7hhhMhj?hhubjT7)}(h.SwapTotal total amount of swap space availableh](jZ7)}(h SwapTotalh]h SwapTotal}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMhjAubjj7)}(hhh]j)}(h$total amount of swap space availableh]h$total amount of swap space available}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjAubah}(h]h ]h"]h$]h&]uh1ji7hjAubeh}(h]h ]h"]h$]h&]uh1jS7hhhMhj?hhubjT7)}(hOSwapFree Memory which has been evicted from RAM, and is temporarily on the diskh](jZ7)}(hSwapFreeh]hSwapFree}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMhjAubjj7)}(hhh]j)}(hFMemory which has been evicted from RAM, and is temporarily on the diskh]hFMemory which has been evicted from RAM, and is temporarily on the disk}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjBubah}(h]h ]h"]h$]h&]uh1ji7hjAubeh}(h]h ]h"]h$]h&]uh1jS7hhhMhj?hhubjT7)}(hFilePmdMapped Page cache mapped into userspace with huge pagesh](jZ7)}(h FilePmdMappedh]h FilePmdMapped}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMhjGubjj7)}(hhh]j)}(h0Page cache mapped into userspace with huge pagesh]h0Page cache mapped into userspace with huge pages}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjGubah}(h]h ]h"]h$]h&]uh1ji7hjGubeh}(h]h ]h"]h$]h&]uh1jS7hhhMhj?hhubjT7)}(hBCmaTotal Memory reserved for the Contiguous Memory Allocator (CMA)h](jZ7)}(hCmaTotalh]hCmaTotal}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMhjGubjj7)}(hhh]j)}(h9Memory reserved for the Contiguous Memory Allocator (CMA)h]h9Memory reserved for the Contiguous Memory Allocator (CMA)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjGubah}(h]h ]h"]h$]h&]uh1ji7hjGubeh}(h]h ]h"]h$]h&]uh1jS7hhhMhj?hhubjT7)}(h1CmaFree Free remaining memory in the CMA reservesh](jZ7)}(hCmaFreeh]hCmaFree}(hj HhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMhjHubjj7)}(hhh]j)}(h)Free remaining memory in the CMA reservesh]h)Free remaining memory in the CMA reserves}(hj1HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj.Hubah}(h]h ]h"]h$]h&]uh1ji7hjHubeh}(h]h ]h"]h$]h&]uh1jS7hhhMhj?hhubjT7)}(h9Unaccepted Memory that has not been accepted by the guesth](jZ7)}(h Unacceptedh]h Unaccepted}(hjOHhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMhjKHubjj7)}(hhh]j)}(h.Memory that has not been accepted by the guesth]h.Memory that has not been accepted by the guest}(hj`HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj]Hubah}(h]h ]h"]h$]h&]uh1ji7hjKHubeh}(h]h ]h"]h$]h&]uh1jS7hhhMhj?hhubjT7)}(h5Balloon Memory returned to Host by VM Balloon Driversh](jZ7)}(hBalloonh]hBalloon}(hj~HhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMhjzHubjj7)}(hhh]j)}(h-Memory returned to Host by VM Balloon Driversh]h-Memory returned to Host by VM Balloon Drivers}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjHubah}(h]h ]h"]h$]h&]uh1ji7hjzHubeh}(h]h ]h"]h$]h&]uh1jS7hhhMhj?hhubjT7)}(hHugePages_Total, HugePages_Free, HugePages_Rsvd, HugePages_Surp, Hugepagesize, Hugetlb See Documentation/admin-guide/mm/hugetlbpage.rst.h](jZ7)}(hVHugePages_Total, HugePages_Free, HugePages_Rsvd, HugePages_Surp, Hugepagesize, Hugetlbh]hVHugePages_Total, HugePages_Free, HugePages_Rsvd, HugePages_Surp, Hugepagesize, Hugetlb}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMhjHubjj7)}(hhh]j)}(h1See Documentation/admin-guide/mm/hugetlbpage.rst.h]h1See Documentation/admin-guide/mm/hugetlbpage.rst.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjHubah}(h]h ]h"]h$]h&]uh1ji7hjHubeh}(h]h ]h"]h$]h&]uh1jS7hhhMhj?hhubjT7)}(hqDirectMap4k, DirectMap2M, DirectMap1G Breakdown of page table sizes used in the kernel's identity mapping of RAM h](jZ7)}(h%DirectMap4k, DirectMap2M, DirectMap1Gh]h%DirectMap4k, DirectMap2M, DirectMap1G}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jY7hhhMhjHubjj7)}(hhh]j)}(hJBreakdown of page table sizes used in the kernel's identity mapping of RAMh]hLBreakdown of page table sizes used in the kernel’s identity mapping of RAM}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjHubah}(h]h ]h"]h$]h&]uh1ji7hjHubeh}(h]h ]h"]h$]h&]uh1jS7hhhMhj?hhubeh}(h]h ]h"]h$]h&]uh1jN7hjQ?hhhhhNubeh}(h]meminfoah ]h"]meminfoah$]h&]uh1hhj1hhhhhMubh)}(hhh](h)}(h vmallocinfoh]h vmallocinfo}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhMubj)}(hProvides information about vmalloced/vmaped areas. One line per area, containing the virtual address range of the area, size in bytes, caller information of the creator, and optional information depending on the kind of area:h]hProvides information about vmalloced/vmaped areas. One line per area, containing the virtual address range of the area, size in bytes, caller information of the creator, and optional information depending on the kind of area:}(hj&IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjIhhubj?%)}(hX========== =================================================== pages=nr number of pages phys=addr if a physical address was specified ioremap I/O mapping (ioremap() and friends) vmalloc vmalloc() area vmap vmap()ed pages user VM_USERMAP area vpages buffer for pages pointers was vmalloced (huge area) N=nr (Only on NUMA kernels) Number of pages allocated on memory node ========== =================================================== h]h)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhj;Iubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK3uh1hhj;Iubh)}(hhh](h)}(hhh](h)}(hhh]j)}(hpages=nrh]hpages=nr}(hj[IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjXIubah}(h]h ]h"]h$]h&]uh1hhjUIubh)}(hhh]j)}(hnumber of pagesh]hnumber of pages}(hjrIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjoIubah}(h]h ]h"]h$]h&]uh1hhjUIubeh}(h]h ]h"]h$]h&]uh1hhjRIubh)}(hhh](h)}(hhh]j)}(h phys=addrh]h phys=addr}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjIubah}(h]h ]h"]h$]h&]uh1hhjIubh)}(hhh]j)}(h#if a physical address was specifiedh]h#if a physical address was specified}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjIubah}(h]h ]h"]h$]h&]uh1hhjIubeh}(h]h ]h"]h$]h&]uh1hhjRIubh)}(hhh](h)}(hhh]j)}(hioremaph]hioremap}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjIubah}(h]h ]h"]h$]h&]uh1hhjIubh)}(hhh]j)}(h#I/O mapping (ioremap() and friends)h]h#I/O mapping (ioremap() and friends)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjIubah}(h]h ]h"]h$]h&]uh1hhjIubeh}(h]h ]h"]h$]h&]uh1hhjRIubh)}(hhh](h)}(hhh]j)}(hvmalloch]hvmalloc}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjIubah}(h]h ]h"]h$]h&]uh1hhjIubh)}(hhh]j)}(hvmalloc() areah]hvmalloc() area}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjJubah}(h]h ]h"]h$]h&]uh1hhjIubeh}(h]h ]h"]h$]h&]uh1hhjRIubh)}(hhh](h)}(hhh]j)}(hvmaph]hvmap}(hj7JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hj4Jubah}(h]h ]h"]h$]h&]uh1hhj1Jubh)}(hhh]j)}(hvmap()ed pagesh]hvmap()ed pages}(hjNJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjKJubah}(h]h ]h"]h$]h&]uh1hhj1Jubeh}(h]h ]h"]h$]h&]uh1hhjRIubh)}(hhh](h)}(hhh]j)}(huserh]huser}(hjnJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjkJubah}(h]h ]h"]h$]h&]uh1hhjhJubh)}(hhh]j)}(hVM_USERMAP areah]hVM_USERMAP area}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjJubah}(h]h ]h"]h$]h&]uh1hhjhJubeh}(h]h ]h"]h$]h&]uh1hhjRIubh)}(hhh](h)}(hhh]j)}(hvpagesh]hvpages}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjJubah}(h]h ]h"]h$]h&]uh1hhjJubh)}(hhh]j)}(h3buffer for pages pointers was vmalloced (huge area)h]h3buffer for pages pointers was vmalloced (huge area)}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjJubah}(h]h ]h"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]uh1hhjRIubh)}(hhh](h)}(hhh]j)}(h N=nrh]h N=nr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjJubah}(h]h ]h"]h$]h&]uh1hhjJubh)}(hhh]j)}(hF(Only on NUMA kernels) Number of pages allocated on memory node h]hF(Only on NUMA kernels) Number of pages allocated on memory node }(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjJubah}(h]h ]h"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]uh1hhjRIubeh}(h]h ]h"]h$]h&]uh1hhj;Iubeh}(h]h ]h"]h$]h&]colsKuh1hhj8Iubah}(h]h ]h"]h$]h&]uh1hhj4Iubah}(h]h ]h"]h$]h&]uh1j>%hhhMhjIhhubj )}(hX> cat /proc/vmallocinfo 0xffffc20000000000-0xffffc20000201000 2101248 alloc_large_system_hash+0x204 ... /0x2c0 pages=512 vmalloc N0=128 N1=128 N2=128 N3=128 0xffffc20000201000-0xffffc20000302000 1052672 alloc_large_system_hash+0x204 ... /0x2c0 pages=256 vmalloc N0=64 N1=64 N2=64 N3=64 0xffffc20000302000-0xffffc20000304000 8192 acpi_tb_verify_table+0x21/0x4f... phys=7fee8000 ioremap 0xffffc20000304000-0xffffc20000307000 12288 acpi_tb_verify_table+0x21/0x4f... phys=7fee7000 ioremap 0xffffc2000031d000-0xffffc2000031f000 8192 init_vdso_vars+0x112/0x210 0xffffc2000031f000-0xffffc2000032b000 49152 cramfs_uncompress_init+0x2e ... /0x80 pages=11 vmalloc N0=3 N1=3 N2=2 N3=3 0xffffc2000033a000-0xffffc2000033d000 12288 sys_swapon+0x640/0xac0 ... pages=2 vmalloc N1=2 0xffffc20000347000-0xffffc2000034c000 20480 xt_alloc_table_info+0xfe ... /0x130 [x_tables] pages=4 vmalloc N0=4 0xffffffffa0000000-0xffffffffa000f000 61440 sys_init_module+0xc27/0x1d00 ... pages=14 vmalloc N2=14 0xffffffffa000f000-0xffffffffa0014000 20480 sys_init_module+0xc27/0x1d00 ... pages=4 vmalloc N1=4 0xffffffffa0014000-0xffffffffa0017000 12288 sys_init_module+0xc27/0x1d00 ... pages=2 vmalloc N1=2 0xffffffffa0017000-0xffffffffa0022000 45056 sys_init_module+0xc27/0x1d00 ... pages=10 vmalloc N0=10h]hX> cat /proc/vmallocinfo 0xffffc20000000000-0xffffc20000201000 2101248 alloc_large_system_hash+0x204 ... /0x2c0 pages=512 vmalloc N0=128 N1=128 N2=128 N3=128 0xffffc20000201000-0xffffc20000302000 1052672 alloc_large_system_hash+0x204 ... /0x2c0 pages=256 vmalloc N0=64 N1=64 N2=64 N3=64 0xffffc20000302000-0xffffc20000304000 8192 acpi_tb_verify_table+0x21/0x4f... phys=7fee8000 ioremap 0xffffc20000304000-0xffffc20000307000 12288 acpi_tb_verify_table+0x21/0x4f... phys=7fee7000 ioremap 0xffffc2000031d000-0xffffc2000031f000 8192 init_vdso_vars+0x112/0x210 0xffffc2000031f000-0xffffc2000032b000 49152 cramfs_uncompress_init+0x2e ... /0x80 pages=11 vmalloc N0=3 N1=3 N2=2 N3=3 0xffffc2000033a000-0xffffc2000033d000 12288 sys_swapon+0x640/0xac0 ... pages=2 vmalloc N1=2 0xffffc20000347000-0xffffc2000034c000 20480 xt_alloc_table_info+0xfe ... /0x130 [x_tables] pages=4 vmalloc N0=4 0xffffffffa0000000-0xffffffffa000f000 61440 sys_init_module+0xc27/0x1d00 ... pages=14 vmalloc N2=14 0xffffffffa000f000-0xffffffffa0014000 20480 sys_init_module+0xc27/0x1d00 ... pages=4 vmalloc N1=4 0xffffffffa0014000-0xffffffffa0017000 12288 sys_init_module+0xc27/0x1d00 ... pages=2 vmalloc N1=2 0xffffffffa0017000-0xffffffffa0022000 45056 sys_init_module+0xc27/0x1d00 ... pages=10 vmalloc N0=10}hj&Ksbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjIhhubeh}(h] vmallocinfoah ]h"] vmallocinfoah$]h&]uh1hhj1hhhhhMubh)}(hhh](h)}(hsoftirqsh]hsoftirqs}(hj?KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj cat /proc/softirqs CPU0 CPU1 CPU2 CPU3 HI: 0 0 0 0 TIMER: 27166 27120 27097 27034 NET_TX: 0 0 0 17 NET_RX: 42 0 0 39 BLOCK: 0 0 107 1121 TASKLET: 0 0 0 290 SCHED: 27035 26983 26971 26746 HRTIMER: 0 0 0 0 RCU: 1678 1769 2178 2250h]hX> cat /proc/softirqs CPU0 CPU1 CPU2 CPU3 HI: 0 0 0 0 TIMER: 27166 27120 27097 27034 NET_TX: 0 0 0 17 NET_RX: 42 0 0 39 BLOCK: 0 0 107 1121 TASKLET: 0 0 0 290 SCHED: 27035 26983 26971 26746 HRTIMER: 0 0 0 0 RCU: 1678 1769 2178 2250}hj[Ksbah}(h]h ]h"]h$]h&]hhuh1j hhhM7hj cat /proc/net/dev Inter-|Receive |[... face |bytes packets errs drop fifo frame compressed multicast|[... lo: 908188 5596 0 0 0 0 0 0 [... ppp0:15475140 20721 410 0 0 410 0 0 [... eth0: 614530 7085 0 0 0 0 0 1 [... ...] Transmit ...] bytes packets errs drop fifo colls carrier compressed ...] 908188 5596 0 0 0 0 0 0 ...] 1375103 17405 0 0 0 0 0 0 ...] 1703981 5535 0 0 0 3 0 0h]hX}> cat /proc/net/dev Inter-|Receive |[... face |bytes packets errs drop fifo frame compressed multicast|[... lo: 908188 5596 0 0 0 0 0 0 [... ppp0:15475140 20721 410 0 0 410 0 0 [... eth0: 614530 7085 0 0 0 0 0 1 [... ...] Transmit ...] bytes packets errs drop fifo colls carrier compressed ...] 908188 5596 0 0 0 0 0 0 ...] 1375103 17405 0 0 0 0 0 0 ...] 1703981 5535 0 0 0 3 0 0}hjSsbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjyKhhubj)}(hX>In addition, each Channel Bond interface has its own directory. For example, the bond0 device will have a directory called /proc/net/bond0/. It will contain information that is specific to that bond, such as the current slaves of the bond, the link status of the slaves, and how many times the slaves link has failed.h]hX>In addition, each Channel Bond interface has its own directory. For example, the bond0 device will have a directory called /proc/net/bond0/. It will contain information that is specific to that bond, such as the current slaves of the bond, the link status of the slaves, and how many times the slaves link has failed.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjyKhhubeh}(h]networking-info-in-proc-netah ]h"] 1.3 networking info in /proc/netah$]h&]uh1hhjhhhhhMDubh)}(hhh](h)}(h 1.4 SCSI infoh]h 1.4 SCSI info}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThhhhhMubj)}(hIf you have a SCSI or ATA host adapter in your system, you'll find a subdirectory named after the driver for this adapter in /proc/scsi. You'll also see a list of all recognized SCSI devices in /proc/scsi::h]hIf you have a SCSI or ATA host adapter in your system, you’ll find a subdirectory named after the driver for this adapter in /proc/scsi. You’ll also see a list of all recognized SCSI devices in /proc/scsi:}(hj'ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjThhubj )}(hXb>cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: IBM Model: DGHS09U Rev: 03E0 Type: Direct-Access ANSI SCSI revision: 03 Host: scsi0 Channel: 00 Id: 06 Lun: 00 Vendor: PIONEER Model: CD-ROM DR-U06S Rev: 1.04 Type: CD-ROM ANSI SCSI revision: 02h]hXb>cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: IBM Model: DGHS09U Rev: 03E0 Type: Direct-Access ANSI SCSI revision: 03 Host: scsi0 Channel: 00 Id: 06 Lun: 00 Vendor: PIONEER Model: CD-ROM DR-U06S Rev: 1.04 Type: CD-ROM ANSI SCSI revision: 02}hj5Tsbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjThhubj)}(hXSThe directory named after the driver has one file for each adapter found in the system. These files contain information about the controller, including the used IRQ and the IO address range. The amount of information shown is dependent on the adapter you use. The example shows the output for an Adaptec AHA-2940 SCSI adapter::h]hXRThe directory named after the driver has one file for each adapter found in the system. These files contain information about the controller, including the used IRQ and the IO address range. The amount of information shown is dependent on the adapter you use. The example shows the output for an Adaptec AHA-2940 SCSI adapter:}(hjCThhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjThhubj )}(hX> cat /proc/scsi/aic7xxx/0 Adaptec AIC7xxx driver version: 5.1.19/3.2.4 Compile Options: TCQ Enabled By Default : Disabled AIC7XXX_PROC_STATS : Disabled AIC7XXX_RESET_DELAY : 5 Adapter Configuration: SCSI Adapter: Adaptec AHA-294X Ultra SCSI host adapter Ultra Wide Controller PCI MMAPed I/O Base: 0xeb001000 Adapter SEEPROM Config: SEEPROM found and used. Adaptec SCSI BIOS: Enabled IRQ: 10 SCBs: Active 0, Max Active 2, Allocated 15, HW 16, Page 255 Interrupts: 160328 BIOS Control Word: 0x18b6 Adapter Control Word: 0x005b Extended Translation: Enabled Disconnect Enable Flags: 0xffff Ultra Enable Flags: 0x0001 Tag Queue Enable Flags: 0x0000 Ordered Queue Tag Flags: 0x0000 Default Tag Queue Depth: 8 Tagged Queue By Device array for aic7xxx host instance 0: {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255} Actual queue depth per device for aic7xxx host instance 0: {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1} Statistics: (scsi0:0:0:0) Device using Wide/Sync transfers at 40.0 MByte/sec, offset 8 Transinfo settings: current(12/8/1/0), goal(12/8/1/0), user(12/15/1/0) Total transfers 160151 (74577 reads and 85574 writes) (scsi0:0:6:0) Device using Narrow/Sync transfers at 5.0 MByte/sec, offset 15 Transinfo settings: current(50/15/0/0), goal(50/15/0/0), user(50/15/0/0) Total transfers 0 (0 reads and 0 writes)h]hX> cat /proc/scsi/aic7xxx/0 Adaptec AIC7xxx driver version: 5.1.19/3.2.4 Compile Options: TCQ Enabled By Default : Disabled AIC7XXX_PROC_STATS : Disabled AIC7XXX_RESET_DELAY : 5 Adapter Configuration: SCSI Adapter: Adaptec AHA-294X Ultra SCSI host adapter Ultra Wide Controller PCI MMAPed I/O Base: 0xeb001000 Adapter SEEPROM Config: SEEPROM found and used. Adaptec SCSI BIOS: Enabled IRQ: 10 SCBs: Active 0, Max Active 2, Allocated 15, HW 16, Page 255 Interrupts: 160328 BIOS Control Word: 0x18b6 Adapter Control Word: 0x005b Extended Translation: Enabled Disconnect Enable Flags: 0xffff Ultra Enable Flags: 0x0001 Tag Queue Enable Flags: 0x0000 Ordered Queue Tag Flags: 0x0000 Default Tag Queue Depth: 8 Tagged Queue By Device array for aic7xxx host instance 0: {255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255} Actual queue depth per device for aic7xxx host instance 0: {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1} Statistics: (scsi0:0:0:0) Device using Wide/Sync transfers at 40.0 MByte/sec, offset 8 Transinfo settings: current(12/8/1/0), goal(12/8/1/0), user(12/15/1/0) Total transfers 160151 (74577 reads and 85574 writes) (scsi0:0:6:0) Device using Narrow/Sync transfers at 5.0 MByte/sec, offset 15 Transinfo settings: current(50/15/0/0), goal(50/15/0/0), user(50/15/0/0) Total transfers 0 (0 reads and 0 writes)}hjQTsbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjThhubeh}(h] scsi-infoah ]h"] 1.4 scsi infoah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h'1.5 Parallel port info in /proc/parporth]h'1.5 Parallel port info in /proc/parport}(hjjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgThhhhhMubj)}(hThe directory /proc/parport contains information about the parallel ports of your system. It has one subdirectory for each port, named after the port number (0,1,2,...).h]hThe directory /proc/parport contains information about the parallel ports of your system. It has one subdirectory for each port, named after the port number (0,1,2,...).}(hjxThhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjgThhubj)}(h=These directories contain the four files shown in Table 1-10.h]h=These directories contain the four files shown in Table 1-10.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjgThhubh)}(hhh](h)}(h"Table 1-10: Files in /proc/parporth]h"Table 1-10: Files in /proc/parport}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjTubh)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjTubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthKDuh1hhjTubj )}(hhh]h)}(hhh](h)}(hhh]j)}(hFileh]hFile}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjTubah}(h]h ]h"]h$]h&]uh1hhjTubh)}(hhh]j)}(hContenth]hContent}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjTubah}(h]h ]h"]h$]h&]uh1hhjTubeh}(h]h ]h"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&]uh1j hjTubh)}(hhh](h)}(hhh](h)}(hhh]j)}(h autoprobeh]h autoprobe}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjUubah}(h]h ]h"]h$]h&]uh1hhjTubh)}(hhh]j)}(h;Any IEEE-1284 device ID information that has been acquired.h]h;Any IEEE-1284 device ID information that has been acquired.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjUubah}(h]h ]h"]h$]h&]uh1hhjTubeh}(h]h ]h"]h$]h&]uh1hhjTubh)}(hhh](h)}(hhh]j)}(hdevicesh]hdevices}(hjVubah}(h]h ]h"]h$]h&]uh1j hj'Vubh)}(hhh](h)}(hhh](h)}(hhh]j)}(hdriversh]hdrivers}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjVubah}(h]h ]h"]h$]h&]uh1hhjVubh)}(hhh]j)}(hlist of drivers and their usageh]hlist of drivers and their usage}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjVubah}(h]h ]h"]h$]h&]uh1hhjVubeh}(h]h ]h"]h$]h&]uh1hhj~Vubh)}(hhh](h)}(hhh]j)}(hldiscsh]hldiscs}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjVubah}(h]h ]h"]h$]h&]uh1hhjVubh)}(hhh]j)}(hregistered line disciplinesh]hregistered line disciplines}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjVubah}(h]h ]h"]h$]h&]uh1hhjVubeh}(h]h ]h"]h$]h&]uh1hhj~Vubh)}(hhh](h)}(hhh]j)}(h driver/serialh]h driver/serial}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjVubah}(h]h ]h"]h$]h&]uh1hhjVubh)}(hhh]j)}(h.usage statistic and status of single tty linesh]h.usage statistic and status of single tty lines}(hj WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj Wubah}(h]h ]h"]h$]h&]uh1hhjVubeh}(h]h ]h"]h$]h&]uh1hhj~Vubeh}(h]h ]h"]h$]h&]uh1hhj'Vubeh}(h]h ]h"]h$]h&]colsKuh1hhjVubeh}(h]id17ah ]h"]h$]h&]uh1hhjUhhhhhNubj)}(hbTo see which tty's are currently in use, you can simply look into the file /proc/tty/drivers::h]hcTo see which tty’s are currently in use, you can simply look into the file /proc/tty/drivers:}(hj:WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjUhhubj )}(hX> cat /proc/tty/drivers pty_slave /dev/pts 136 0-255 pty:slave pty_master /dev/ptm 128 0-255 pty:master pty_slave /dev/ttyp 3 0-255 pty:slave pty_master /dev/pty 2 0-255 pty:master serial /dev/cua 5 64-67 serial:callout serial /dev/ttyS 4 64-67 serial /dev/tty0 /dev/tty0 4 0 system:vtmaster /dev/ptmx /dev/ptmx 5 2 system /dev/console /dev/console 5 1 system:console /dev/tty /dev/tty 5 0 system:/dev/tty unknown /dev/tty 4 1-63 consoleh]hX> cat /proc/tty/drivers pty_slave /dev/pts 136 0-255 pty:slave pty_master /dev/ptm 128 0-255 pty:master pty_slave /dev/ttyp 3 0-255 pty:slave pty_master /dev/pty 2 0-255 pty:master serial /dev/cua 5 64-67 serial:callout serial /dev/ttyS 4 64-67 serial /dev/tty0 /dev/tty0 4 0 system:vtmaster /dev/ptmx /dev/ptmx 5 2 system /dev/console /dev/console 5 1 system:console /dev/tty /dev/tty 5 0 system:/dev/tty unknown /dev/tty 4 1-63 console}hjHWsbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjUhhubeh}(h]tty-info-in-proc-ttyah ]h"]1.6 tty info in /proc/ttyah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h11.7 Miscellaneous kernel statistics in /proc/stath]h11.7 Miscellaneous kernel statistics in /proc/stat}(hjaWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^WhhhhhMubj)}(hVarious pieces of information about kernel activity are available in the /proc/stat file. All of the numbers reported in this file are aggregates since the system first booted. For a quick look, simply cat the file::h]hVarious pieces of information about kernel activity are available in the /proc/stat file. All of the numbers reported in this file are aggregates since the system first booted. For a quick look, simply cat the file:}(hjoWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj^Whhubj )}(hX{> cat /proc/stat cpu 237902850 368826709 106375398 1873517540 1135548 0 14507935 0 0 0 cpu0 60045249 91891769 26331539 468411416 495718 0 5739640 0 0 0 cpu1 59746288 91759249 26609887 468860630 312281 0 4384817 0 0 0 cpu2 59489247 92985423 26904446 467808813 171668 0 2268998 0 0 0 cpu3 58622065 92190267 26529524 468436680 155879 0 2114478 0 0 0 intr 8688370575 8 3373 0 0 0 0 0 0 1 40791 0 0 353317 0 0 0 0 224789828 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 190974333 41958554 123983334 43 0 224593 0 0 0 ctxt 22848221062 btime 1605316999 processes 746787147 procs_running 2 procs_blocked 0 softirq 12121874454 100099120 3938138295 127375644 2795979 187870761 0 173808342 3072582055 52608 224184354h]hX{> cat /proc/stat cpu 237902850 368826709 106375398 1873517540 1135548 0 14507935 0 0 0 cpu0 60045249 91891769 26331539 468411416 495718 0 5739640 0 0 0 cpu1 59746288 91759249 26609887 468860630 312281 0 4384817 0 0 0 cpu2 59489247 92985423 26904446 467808813 171668 0 2268998 0 0 0 cpu3 58622065 92190267 26529524 468436680 155879 0 2114478 0 0 0 intr 8688370575 8 3373 0 0 0 0 0 0 1 40791 0 0 353317 0 0 0 0 224789828 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 190974333 41958554 123983334 43 0 224593 0 0 0 ctxt 22848221062 btime 1605316999 processes 746787147 procs_running 2 procs_blocked 0 softirq 12121874454 100099120 3938138295 127375644 2795979 187870761 0 173808342 3072582055 52608 224184354}hj}Wsbah}(h]h ]h"]h$]h&]hhuh1j hhhMhj^Whhubj)}(hX6The very first "cpu" line aggregates the numbers in all of the other "cpuN" lines. These numbers identify the amount of time the CPU has spent performing different kinds of work. Time units are in USER_HZ (typically hundredths of a second). The meanings of the columns are as follows, from left to right:h]hX>The very first “cpu” line aggregates the numbers in all of the other “cpuN” lines. These numbers identify the amount of time the CPU has spent performing different kinds of work. Time units are in USER_HZ (typically hundredths of a second). The meanings of the columns are as follows, from left to right:}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM#hj^Whhubj)}(hhh](j)}(h-user: normal processes executing in user modeh]j)}(hjWh]h-user: normal processes executing in user mode}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM(hjWubah}(h]h ]h"]h$]h&]uh1jhjWhhhhhNubj)}(h,nice: niced processes executing in user modeh]j)}(hjWh]h,nice: niced processes executing in user mode}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM)hjWubah}(h]h ]h"]h$]h&]uh1jhjWhhhhhNubj)}(h*system: processes executing in kernel modeh]j)}(hjWh]h*system: processes executing in kernel mode}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM*hjWubah}(h]h ]h"]h$]h&]uh1jhjWhhhhhNubj)}(hidle: twiddling thumbsh]j)}(hjWh]hidle: twiddling thumbs}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM+hjWubah}(h]h ]h"]h$]h&]uh1jhjWhhhhhNubj)}(hXTiowait: In a word, iowait stands for waiting for I/O to complete. But there are several problems: 1. CPU will not wait for I/O to complete, iowait is the time that a task is waiting for I/O to complete. When CPU goes into idle state for outstanding task I/O, another task will be scheduled on this CPU. 2. In a multi-core CPU, the task waiting for I/O to complete is not running on any CPU, so the iowait of each CPU is difficult to calculate. 3. The value of iowait field in /proc/stat will decrease in certain conditions. So, the iowait is not reliable by reading from /proc/stat.h](j)}(haiowait: In a word, iowait stands for waiting for I/O to complete. But there are several problems:h]haiowait: In a word, iowait stands for waiting for I/O to complete. But there are several problems:}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM,hjWubj/)}(hhh](j)}(hCPU will not wait for I/O to complete, iowait is the time that a task is waiting for I/O to complete. When CPU goes into idle state for outstanding task I/O, another task will be scheduled on this CPU.h]j)}(hCPU will not wait for I/O to complete, iowait is the time that a task is waiting for I/O to complete. When CPU goes into idle state for outstanding task I/O, another task will be scheduled on this CPU.h]hCPU will not wait for I/O to complete, iowait is the time that a task is waiting for I/O to complete. When CPU goes into idle state for outstanding task I/O, another task will be scheduled on this CPU.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM/hj Xubah}(h]h ]h"]h$]h&]uh1jhj Xubj)}(hIn a multi-core CPU, the task waiting for I/O to complete is not running on any CPU, so the iowait of each CPU is difficult to calculate.h]j)}(hIn a multi-core CPU, the task waiting for I/O to complete is not running on any CPU, so the iowait of each CPU is difficult to calculate.h]hIn a multi-core CPU, the task waiting for I/O to complete is not running on any CPU, so the iowait of each CPU is difficult to calculate.}(hj)XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM2hj%Xubah}(h]h ]h"]h$]h&]uh1jhj Xubj)}(hMThe value of iowait field in /proc/stat will decrease in certain conditions. h]j)}(hLThe value of iowait field in /proc/stat will decrease in certain conditions.h]hLThe value of iowait field in /proc/stat will decrease in certain conditions.}(hjAXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM4hj=Xubah}(h]h ]h"]h$]h&]uh1jhj Xubeh}(h]h ]h"]h$]h&]j30j40j50hj60.uh1j/hjWubj)}(h:So, the iowait is not reliable by reading from /proc/stat.h]h:So, the iowait is not reliable by reading from /proc/stat.}(hj\XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM7hjWubeh}(h]h ]h"]h$]h&]uh1jhjWhhhhhNubj)}(hirq: servicing interruptsh]j)}(hjrXh]hirq: servicing interrupts}(hjtXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM8hjpXubah}(h]h ]h"]h$]h&]uh1jhjWhhhhhNubj)}(hsoftirq: servicing softirqsh]j)}(hjXh]hsoftirq: servicing softirqs}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM9hjXubah}(h]h ]h"]h$]h&]uh1jhjWhhhhhNubj)}(hsteal: involuntary waith]j)}(hjXh]hsteal: involuntary wait}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM:hjXubah}(h]h ]h"]h$]h&]uh1jhjWhhhhhNubj)}(hguest: running a normal guesth]j)}(hjXh]hguest: running a normal guest}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM;hjXubah}(h]h ]h"]h$]h&]uh1jhjWhhhhhNubj)}(h"guest_nice: running a niced guest h]j)}(h!guest_nice: running a niced guesth]h!guest_nice: running a niced guest}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM<hjXubah}(h]h ]h"]h$]h&]uh1jhjWhhhhhNubeh}(h]h ]h"]h$]h&]jj0uh1jhhhM(hj^Whhubj)}(hX{The "intr" line gives counts of interrupts serviced since boot time, for each of the possible system interrupts. The first column is the total of all interrupts serviced including unnumbered architecture specific interrupts; each subsequent column is the total for that particular numbered interrupt. Unnumbered interrupts are not shown, only summed into the total.h]hXThe “intr” line gives counts of interrupts serviced since boot time, for each of the possible system interrupts. The first column is the total of all interrupts serviced including unnumbered architecture specific interrupts; each subsequent column is the total for that particular numbered interrupt. Unnumbered interrupts are not shown, only summed into the total.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM>hj^Whhubj)}(hKThe "ctxt" line gives the total number of context switches across all CPUs.h]hOThe “ctxt” line gives the total number of context switches across all CPUs.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMDhj^Whhubj)}(h^The "btime" line gives the time at which the system booted, in seconds since the Unix epoch.h]hbThe “btime” line gives the time at which the system booted, in seconds since the Unix epoch.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMFhj^Whhubj)}(hThe "processes" line gives the number of processes and threads created, which includes (but is not limited to) those created by calls to the fork() and clone() system calls.h]hThe “processes” line gives the number of processes and threads created, which includes (but is not limited to) those created by calls to the fork() and clone() system calls.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMIhj^Whhubj)}(hThe "procs_running" line gives the total number of threads that are running or ready to run (i.e., the total number of runnable threads).h]hThe “procs_running” line gives the total number of threads that are running or ready to run (i.e., the total number of runnable threads).}(hj"YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMMhj^Whhubj)}(hkThe "procs_blocked" line gives the number of processes currently blocked, waiting for I/O to complete.h]hoThe “procs_blocked” line gives the number of processes currently blocked, waiting for I/O to complete.}(hj0YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMPhj^Whhubj)}(hThe "softirq" line gives counts of softirqs serviced since boot time, for each of the possible system softirqs. The first column is the total of all softirqs serviced; each subsequent column is the total for that particular softirq.h]hThe “softirq” line gives counts of softirqs serviced since boot time, for each of the possible system softirqs. The first column is the total of all softirqs serviced; each subsequent column is the total for that particular softirq.}(hj>YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMShj^Whhubeh}(h],miscellaneous-kernel-statistics-in-proc-statah ]h"]11.7 miscellaneous kernel statistics in /proc/statah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h1.8 Ext4 file system parametersh]h1.8 Ext4 file system parameters}(hjWYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTYhhhhhMZubj)}(hX3Information about mounted ext4 file systems can be found in /proc/fs/ext4. Each mounted filesystem will have a directory in /proc/fs/ext4 based on its device name (i.e., /proc/fs/ext4/hdc or /proc/fs/ext4/sda9 or /proc/fs/ext4/dm-0). The files in each per-device directory are shown in Table 1-12, below.h]hX3Information about mounted ext4 file systems can be found in /proc/fs/ext4. Each mounted filesystem will have a directory in /proc/fs/ext4 based on its device name (i.e., /proc/fs/ext4/hdc or /proc/fs/ext4/sda9 or /proc/fs/ext4/dm-0). The files in each per-device directory are shown in Table 1-12, below.}(hjeYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM\hjTYhhubh)}(hhh](h)}(h,Table 1-12: Files in /proc/fs/ext4/h]h,Table 1-12: Files in /proc/fs/ext4/}(hjvYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhjsYubh)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjYubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK:uh1hhjYubh)}(hhh](h)}(hhh](h)}(hhh]j)}(hFileh]hFile}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMehjYubah}(h]h ]h"]h$]h&]uh1hhjYubh)}(hhh]j)}(hContenth]hContent}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMehjYubah}(h]h ]h"]h$]h&]uh1hhjYubeh}(h]h ]h"]h$]h&]uh1hhjYubh)}(hhh](h)}(hhh]j)}(h mb_groupsh]h mb_groups}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMfhjYubah}(h]h ]h"]h$]h&]uh1hhjYubh)}(hhh]j)}(h:details of multiblock allocator buddy cache of free blocksh]h:details of multiblock allocator buddy cache of free blocks}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMfhjYubah}(h]h ]h"]h$]h&]uh1hhjYubeh}(h]h ]h"]h$]h&]uh1hhjYubeh}(h]h ]h"]h$]h&]uh1hhjYubeh}(h]h ]h"]h$]h&]colsKuh1hhjsYubeh}(h]id18ah ]h"]h$]h&]uh1hhjTYhhhhhNubeh}(h]ext4-file-system-parametersah ]h"]1.8 ext4 file system parametersah$]h&]uh1hhjhhhhhMZubh)}(hhh](h)}(h1.9 /proc/consolesh]h1.9 /proc/consoles}(hj+ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(ZhhhhhMjubj)}(h&Shows registered system console lines.h]h&Shows registered system console lines.}(hj9ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMkhj(Zhhubj)}(hTo see which character device lines are currently used for the system console /dev/console, you may simply look into the file /proc/consoles::h]hTo see which character device lines are currently used for the system console /dev/console, you may simply look into the file /proc/consoles:}(hjGZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMmhj(Zhhubj )}(hg> cat /proc/consoles tty0 -WU (ECp) 4:7 ttyS0 -W- (Ep) 4:64h]hg> cat /proc/consoles tty0 -WU (ECp) 4:7 ttyS0 -W- (Ep) 4:64}hjUZsbah}(h]h ]h"]h$]h&]hhuh1j hhhMphj(Zhhubj)}(hThe columns are:h]hThe columns are:}(hjcZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMthj(Zhhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjtZubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK7uh1hhjtZubj )}(hhh]h)}(hhh](h)}(hhh]j)}(hdeviceh]hdevice}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMwhjZubah}(h]h ]h"]h$]h&]uh1hhjZubh)}(hhh]j)}(hname of the deviceh]hname of the device}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMwhjZubah}(h]h ]h"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]uh1j hjtZubh)}(hhh](h)}(hhh](h)}(hhh]j)}(h operationsh]h operations}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMyhjZubah}(h]h ]h"]h$]h&]uh1hhjZubh)}(hhh]j)}(hhh](j)}(hR = can do read operationsh]j)}(hjZh]hR = can do read operations}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMyhjZubah}(h]h ]h"]h$]h&]uh1jhjZubj)}(hW = can do write operationsh]j)}(hj[h]hW = can do write operations}(hj [hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMzhj[ubah}(h]h ]h"]h$]h&]uh1jhjZubj)}(hU = can do unblankh]j)}(hj[h]hU = can do unblank}(hj [hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM{hj[ubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]jjuh1jhhhMyhjZubah}(h]h ]h"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]uh1hhjZubh)}(hhh](h)}(hhh]j)}(hflagsh]hflags}(hjK[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM}hjH[ubah}(h]h ]h"]h$]h&]uh1hhjE[ubh)}(hhh]j)}(hhh](j)}(hE = it is enabledh]j)}(hjg[h]hE = it is enabled}(hji[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM}hje[ubah}(h]h ]h"]h$]h&]uh1jhjb[ubj)}(hC = it is preferred consoleh]j)}(hj~[h]hC = it is preferred console}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM~hj|[ubah}(h]h ]h"]h$]h&]uh1jhjb[ubj)}(hB = it is primary boot consoleh]j)}(hj[h]hB = it is primary boot console}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj[ubah}(h]h ]h"]h$]h&]uh1jhjb[ubj)}(h p = it is used for printk bufferh]j)}(hj[h]h p = it is used for printk buffer}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj[ubah}(h]h ]h"]h$]h&]uh1jhjb[ubj)}(h(b = it is not a TTY but a Braille deviceh]j)}(hj[h]h(b = it is not a TTY but a Braille device}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj[ubah}(h]h ]h"]h$]h&]uh1jhjb[ubj)}(h)a = it is safe to use when cpu is offlineh]j)}(hj[h]h)a = it is safe to use when cpu is offline}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj[ubah}(h]h ]h"]h$]h&]uh1jhjb[ubeh}(h]h ]h"]h$]h&]jjuh1jhhhM}hj_[ubah}(h]h ]h"]h$]h&]uh1hhjE[ubeh}(h]h ]h"]h$]h&]uh1hhjZubh)}(hhh](h)}(hhh]j)}(h major:minorh]h major:minor}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj\ubah}(h]h ]h"]h$]h&]uh1hhj\ubh)}(hhh]j)}(h9major and minor number of the device separated by a colonh]h9major and minor number of the device separated by a colon}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj\ubah}(h]h ]h"]h$]h&]uh1hhj\ubeh}(h]h ]h"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]uh1hhjtZubeh}(h]h ]h"]h$]h&]colsKuh1hhjqZubah}(h]h ]h"]h$]h&]uh1hhj(ZhhhhhNubeh}(h] proc-consolesah ]h"]1.9 /proc/consolesah$]h&]uh1hhjhhhhhMjubh)}(hhh](h)}(hSummaryh]hSummary}(hjV\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS\hhhhhMubj)}(hThe /proc file system serves information about the running system. It not only allows access to process data but also allows you to request the kernel status by reading files in the hierarchy.h]hThe /proc file system serves information about the running system. It not only allows access to process data but also allows you to request the kernel status by reading files in the hierarchy.}(hjd\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjS\hhubj)}(hThe directory structure of /proc reflects the types of information and makes it easy, if not obvious, where to look for specific data.h]hThe directory structure of /proc reflects the types of information and makes it easy, if not obvious, where to look for specific data.}(hjr\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjS\hhubeh}(h]summaryah ]h"]h$]summaryah&]uh1hhjhhhhhMjOKubeh}(h]'chapter-1-collecting-system-informationah ]h"](chapter 1: collecting system informationah$]h&]uh1hhhhhhhhKgubh)}(hhh](h)}(h&Chapter 2: Modifying System Parametersh]h&Chapter 2: Modifying System Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hhhhhMubh)}(hhh](h)}(hIn This Chapterh]hIn This Chapter}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hhhhhMubj)}(hhh](j)}(hDModifying kernel parameters by writing into files found in /proc/sysh]j)}(hj\h]hDModifying kernel parameters by writing into files found in /proc/sys}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj\ubah}(h]h ]h"]h$]h&]uh1jhj\hhhhhNubj)}(h3Exploring the files which modify certain parametersh]j)}(hj\h]h3Exploring the files which modify certain parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj\ubah}(h]h ]h"]h$]h&]uh1jhj\hhhhhNubj)}(h"Review of the /proc/sys file tree h]j)}(h!Review of the /proc/sys file treeh]h!Review of the /proc/sys file tree}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj\ubah}(h]h ]h"]h$]h&]uh1jhj\hhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhj\hhubj )}(hN------------------------------------------------------------------------------h]h}(h]h ]h"]h$]h&]uh1jhhhMhj\hhubj)}(hX A very interesting part of /proc is the directory /proc/sys. This is not only a source of information, it also allows you to change parameters within the kernel. Be very careful when attempting this. You can optimize your system, but you can also cause it to crash. Never alter kernel parameters on a production system. Set up a development machine and test to make sure that everything works the way you want it to. You may have no alternative but to reboot the machine once an error has been made.h]hX A very interesting part of /proc is the directory /proc/sys. This is not only a source of information, it also allows you to change parameters within the kernel. Be very careful when attempting this. You can optimize your system, but you can also cause it to crash. Never alter kernel parameters on a production system. Set up a development machine and test to make sure that everything works the way you want it to. You may have no alternative but to reboot the machine once an error has been made.}(hj ]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj\hhubj)}(hTo change a value, simply echo the new value into the file. You need to be root to do this. You can create your own boot script to perform this every time your system boots.h]hTo change a value, simply echo the new value into the file. You need to be root to do this. You can create your own boot script to perform this every time your system boots.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj\hhubj)}(hXThe files in /proc/sys can be used to fine tune and monitor miscellaneous and general things in the operation of the Linux kernel. Since some of the files can inadvertently disrupt your system, it is advisable to read both documentation and source before actually making adjustments. In any case, be very careful when writing to any of these files. The entries in /proc may change slightly between the 2.1.* and the 2.2 kernel, so if there is any doubt review the kernel documentation in the directory linux/Documentation. This chapter is heavily based on the documentation included in the pre 2.2 kernels, and became part of it in version 2.2.1 of the Linux kernel.h]hXThe files in /proc/sys can be used to fine tune and monitor miscellaneous and general things in the operation of the Linux kernel. Since some of the files can inadvertently disrupt your system, it is advisable to read both documentation and source before actually making adjustments. In any case, be very careful when writing to any of these files. The entries in /proc may change slightly between the 2.1.* and the 2.2 kernel, so if there is any doubt review the kernel documentation in the directory linux/Documentation. This chapter is heavily based on the documentation included in the pre 2.2 kernels, and became part of it in version 2.2.1 of the Linux kernel.}(hj']hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj\hhubj)}(hZPlease see: Documentation/admin-guide/sysctl/ directory for descriptions of these entries.h]hZPlease see: Documentation/admin-guide/sysctl/ directory for descriptions of these entries.}(hj5]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj\hhubeh}(h]id1ah ]h"]h$]jMah&]uh1hhj\hhhhhMjOKubh)}(hhh](h)}(hSummaryh]hSummary}(hjM]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJ]hhhhhMubj)}(hXJCertain aspects of kernel behavior can be modified at runtime, without the need to recompile the kernel, or even to reboot the system. The files in the /proc/sys tree can not only be read, but also modified. You can use the echo command to write value into these files, thereby changing the default settings of the kernel.h]hXJCertain aspects of kernel behavior can be modified at runtime, without the need to recompile the kernel, or even to reboot the system. The files in the /proc/sys tree can not only be read, but also modified. You can use the echo command to write value into these files, thereby changing the default settings of the kernel.}(hj[]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjJ]hhubeh}(h]id2ah ]h"]h$]j\ah&]uh1hhj\hhhhhMjOKubeh}(h]%chapter-2-modifying-system-parametersah ]h"]&chapter 2: modifying system parametersah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(h!Chapter 3: Per-process Parametersh]h!Chapter 3: Per-process Parameters}(hj{]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx]hhhhhMubh)}(hhh](h)}(hP3.1 /proc//oom_adj & /proc//oom_score_adj- Adjust the oom-killer scoreh]hP3.1 /proc//oom_adj & /proc//oom_score_adj- Adjust the oom-killer score}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hhhhhMubj)}(hThese files can be used to adjust the badness heuristic used to select which process gets killed in out of memory (oom) conditions.h]hThese files can be used to adjust the badness heuristic used to select which process gets killed in out of memory (oom) conditions.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj]hhubj)}(hXThe badness heuristic assigns a value to each candidate task ranging from 0 (never kill) to 1000 (always kill) to determine which process is targeted. The units are roughly a proportion along that range of allowed memory the process may allocate from based on an estimation of its current memory and swap use. For example, if a task is using all allowed memory, its badness score will be 1000. If it is using half of its allowed memory, its score will be 500.h]hXThe badness heuristic assigns a value to each candidate task ranging from 0 (never kill) to 1000 (always kill) to determine which process is targeted. The units are roughly a proportion along that range of allowed memory the process may allocate from based on an estimation of its current memory and swap use. For example, if a task is using all allowed memory, its badness score will be 1000. If it is using half of its allowed memory, its score will be 500.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj]hhubj)}(hXNThe amount of "allowed" memory depends on the context in which the oom killer was called. If it is due to the memory assigned to the allocating task's cpuset being exhausted, the allowed memory represents the set of mems assigned to that cpuset. If it is due to a mempolicy's node(s) being exhausted, the allowed memory represents the set of mempolicy nodes. If it is due to a memory limit (or swap limit) being reached, the allowed memory is that configured limit. Finally, if it is due to the entire system being out of memory, the allowed memory represents all allocatable resources.h]hXVThe amount of “allowed” memory depends on the context in which the oom killer was called. If it is due to the memory assigned to the allocating task’s cpuset being exhausted, the allowed memory represents the set of mems assigned to that cpuset. If it is due to a mempolicy’s node(s) being exhausted, the allowed memory represents the set of mempolicy nodes. If it is due to a memory limit (or swap limit) being reached, the allowed memory is that configured limit. Finally, if it is due to the entire system being out of memory, the allowed memory represents all allocatable resources.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj]hhubj)}(hXThe value of /proc//oom_score_adj is added to the badness score before it is used to determine which task to kill. Acceptable values range from -1000 (OOM_SCORE_ADJ_MIN) to +1000 (OOM_SCORE_ADJ_MAX). This allows userspace to polarize the preference for oom killing either by always preferring a certain task or completely disabling it. The lowest possible value, -1000, is equivalent to disabling oom killing entirely for that task since it will always report a badness score of 0.h]hXThe value of /proc//oom_score_adj is added to the badness score before it is used to determine which task to kill. Acceptable values range from -1000 (OOM_SCORE_ADJ_MIN) to +1000 (OOM_SCORE_ADJ_MAX). This allows userspace to polarize the preference for oom killing either by always preferring a certain task or completely disabling it. The lowest possible value, -1000, is equivalent to disabling oom killing entirely for that task since it will always report a badness score of 0.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj]hhubj)}(hXConsequently, it is very simple for userspace to define the amount of memory to consider for each task. Setting a /proc//oom_score_adj value of +500, for example, is roughly equivalent to allowing the remainder of tasks sharing the same system, cpuset, mempolicy, or memory controller resources to use at least 50% more memory. A value of -500, on the other hand, would be roughly equivalent to discounting 50% of the task's allowed memory from being considered as scoring against the task.h]hXConsequently, it is very simple for userspace to define the amount of memory to consider for each task. Setting a /proc//oom_score_adj value of +500, for example, is roughly equivalent to allowing the remainder of tasks sharing the same system, cpuset, mempolicy, or memory controller resources to use at least 50% more memory. A value of -500, on the other hand, would be roughly equivalent to discounting 50% of the task’s allowed memory from being considered as scoring against the task.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj]hhubj)}(hXWFor backwards compatibility with previous kernels, /proc//oom_adj may also be used to tune the badness score. Its acceptable values range from -16 (OOM_ADJUST_MIN) to +15 (OOM_ADJUST_MAX) and a special value of -17 (OOM_DISABLE) to disable oom killing entirely for that task. Its value is scaled linearly with /proc//oom_score_adj.h]hXWFor backwards compatibility with previous kernels, /proc//oom_adj may also be used to tune the badness score. Its acceptable values range from -16 (OOM_ADJUST_MIN) to +15 (OOM_ADJUST_MAX) and a special value of -17 (OOM_DISABLE) to disable oom killing entirely for that task. Its value is scaled linearly with /proc//oom_score_adj.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj]hhubj)}(hThe value of /proc//oom_score_adj may be reduced no lower than the last value set by a CAP_SYS_RESOURCE process. To reduce the value any lower requires CAP_SYS_RESOURCE.h]hThe value of /proc//oom_score_adj may be reduced no lower than the last value set by a CAP_SYS_RESOURCE process. To reduce the value any lower requires CAP_SYS_RESOURCE.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj]hhubeh}(h]Cproc-pid-oom-adj-proc-pid-oom-score-adj-adjust-the-oom-killer-scoreah ]h"]P3.1 /proc//oom_adj & /proc//oom_score_adj- adjust the oom-killer scoreah$]h&]uh1hhjx]hhhhhMubh)}(hhh](h)}(h<3.2 /proc//oom_score - Display current oom-killer scoreh]h<3.2 /proc//oom_score - Display current oom-killer score}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hhhhhMubj)}(hThis file can be used to check the current score used by the oom-killer for any given . Use it together with /proc//oom_score_adj to tune which process should be killed in an out-of-memory situation.h]hThis file can be used to check the current score used by the oom-killer for any given . Use it together with /proc//oom_score_adj to tune which process should be killed in an out-of-memory situation.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj^hhubj)}(hbPlease note that the exported value includes oom_score_adj so it is effectively in range [0,2000].h]hbPlease note that the exported value includes oom_score_adj so it is effectively in range [0,2000].}(hj#^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj^hhubeh}(h]3proc-pid-oom-score-display-current-oom-killer-scoreah ]h"]<3.2 /proc//oom_score - display current oom-killer scoreah$]h&]uh1hhjx]hhhhhMubh)}(hhh](h)}(h63.3 /proc//io - Display the IO accounting fieldsh]h63.3 /proc//io - Display the IO accounting fields}(hj<^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9^hhhhhMubj)}(h:This file contains IO statistics for each running process.h]h:This file contains IO statistics for each running process.}(hjJ^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj9^hhubh)}(hhh](h)}(hExampleh]hExample}(hj[^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX^hhhhhMubj )}(htest:/tmp # dd if=/dev/zero of=/tmp/test.dat & [1] 3828 test:/tmp # cat /proc/3828/io rchar: 323934931 wchar: 323929600 syscr: 632687 syscw: 632675 read_bytes: 0 write_bytes: 323932160 cancelled_write_bytes: 0h]htest:/tmp # dd if=/dev/zero of=/tmp/test.dat & [1] 3828 test:/tmp # cat /proc/3828/io rchar: 323934931 wchar: 323929600 syscr: 632687 syscw: 632675 read_bytes: 0 write_bytes: 323932160 cancelled_write_bytes: 0}hji^sbah}(h]h ]h"]h$]h&]hhuh1j hhhM hjX^hhubeh}(h]exampleah ]h"]h$]exampleah&]uh1hhj9^hhhhhMjOKubh)}(hhh](h)}(h Descriptionh]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hhhhhMubh)}(hhh](h)}(hrcharh]hrchar}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hhhhhMubj)}(hXPI/O counter: chars read The number of bytes which this task has caused to be read from storage. This is simply the sum of bytes which this process passed to read() and pread(). It includes things like tty IO and it is unaffected by whether or not actual physical disk IO was required (the read might have been satisfied from pagecache).h]hXPI/O counter: chars read The number of bytes which this task has caused to be read from storage. This is simply the sum of bytes which this process passed to read() and pread(). It includes things like tty IO and it is unaffected by whether or not actual physical disk IO was required (the read might have been satisfied from pagecache).}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj^hhubeh}(h]rcharah ]h"]rcharah$]h&]uh1hhj^hhhhhMubh)}(hhh](h)}(hwcharh]hwchar}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hhhhhM&ubj)}(hI/O counter: chars written The number of bytes which this task has caused, or shall cause to be written to disk. Similar caveats apply here as with rchar.h]hI/O counter: chars written The number of bytes which this task has caused, or shall cause to be written to disk. Similar caveats apply here as with rchar.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM(hj^hhubeh}(h]wcharah ]h"]wcharah$]h&]uh1hhj^hhhhhM&ubh)}(hhh](h)}(hsyscrh]hsyscr}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hhhhhM.ubj)}(huI/O counter: read syscalls Attempt to count the number of read I/O operations, i.e. syscalls like read() and pread().h]huI/O counter: read syscalls Attempt to count the number of read I/O operations, i.e. syscalls like read() and pread().}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM0hj^hhubeh}(h]syscrah ]h"]syscrah$]h&]uh1hhj^hhhhhM.ubh)}(hhh](h)}(hsyscwh]hsyscw}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hhhhhM6ubj)}(hyI/O counter: write syscalls Attempt to count the number of write I/O operations, i.e. syscalls like write() and pwrite().h]hyI/O counter: write syscalls Attempt to count the number of write I/O operations, i.e. syscalls like write() and pwrite().}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM8hj_hhubeh}(h]syscwah ]h"]syscwah$]h&]uh1hhj^hhhhhM6ubh)}(hhh](h)}(h read_bytesh]h read_bytes}(hj/_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,_hhhhhM>ubj)}(hXI/O counter: bytes read Attempt to count the number of bytes which this process really did cause to be fetched from the storage layer. Done at the submit_bio() level, so it is accurate for block-backed filesystems. h]hXI/O counter: bytes read Attempt to count the number of bytes which this process really did cause to be fetched from the storage layer. Done at the submit_bio() level, so it is accurate for block-backed filesystems. }(h}j=_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM@hj,_hhubeh}(h] read-bytesah ]h"] read_bytesah$]h&]uh1hhj^hhhhhM>ubh)}(hhh](h)}(h write_bytesh]h write_bytes}(hjV_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS_hhhhhMHubj)}(hI/O counter: bytes written Attempt to count the number of bytes which this process caused to be sent to the storage layer. This is done at page-dirtying time.h]hI/O counter: bytes written Attempt to count the number of bytes which this process caused to be sent to the storage layer. This is done at page-dirtying time.}(hjd_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMJhjS_hhubeh}(h] write-bytesah ]h"] write_bytesah$]h&]uh1hhj^hhhhhMHubh)}(hhh](h)}(hcancelled_write_bytesh]hcancelled_write_bytes}(hj}_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz_hhhhhMPubj)}(hXMThe big inaccuracy here is truncate. If a process writes 1MB to a file and then deletes the file, it will in fact perform no writeout. But it will have been accounted as having caused 1MB of write. In other words: The number of bytes which this process caused to not happen, by truncating pagecache. A task can cause "negative" IO too. If this task truncates some dirty pagecache, some IO which another task has been accounted for (in its write_bytes) will not be happening. We _could_ just subtract that from the truncating task's write_bytes, but there is information loss in doing that.h]hXSThe big inaccuracy here is truncate. If a process writes 1MB to a file and then deletes the file, it will in fact perform no writeout. But it will have been accounted as having caused 1MB of write. In other words: The number of bytes which this process caused to not happen, by truncating pagecache. A task can cause “negative” IO too. If this task truncates some dirty pagecache, some IO which another task has been accounted for (in its write_bytes) will not be happening. We _could_ just subtract that from the truncating task’s write_bytes, but there is information loss in doing that.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMRhjz_hhubhnote)}(hAt its current implementation state, this is a bit racy on 32-bit machines: if process A reads process B's /proc/pid/io while process B is updating one of those 64-bit counters, process A could see an intermediate result.h]j)}(hAt its current implementation state, this is a bit racy on 32-bit machines: if process A reads process B's /proc/pid/io while process B is updating one of those 64-bit counters, process A could see an intermediate result.h]hAt its current implementation state, this is a bit racy on 32-bit machines: if process A reads process B’s /proc/pid/io while process B is updating one of those 64-bit counters, process A could see an intermediate result.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM_hj_ubah}(h]h ]h"]h$]h&]uh1j_hjz_hhhhhNubj)}(hhMore information about this can be found within the taskstats documentation in Documentation/accounting.h]hhMore information about this can be found within the taskstats documentation in Documentation/accounting.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMdhjz_hhubeh}(h]cancelled-write-bytesah ]h"]cancelled_write_bytesah$]h&]uh1hhj^hhhhhMPubeh}(h] descriptionah ]h"]h$] descriptionah&]uh1hhj9^hhhhhMjOKubeh}(h],proc-pid-io-display-the-io-accounting-fieldsah ]h"]53.3 /proc//io - display the io accounting fieldsah$]h&]uh1hhjx]hhhhhMubh)}(hhh](h)}(h>3.4 /proc//coredump_filter - Core dump filtering settingsh]h>3.4 /proc//coredump_filter - Core dump filtering settings}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hhhhhMhubj)}(hXQWhen a process is dumped, all anonymous memory is written to a core file as long as the size of the core file isn't limited. But sometimes we don't want to dump some memory segments, for example, huge shared memory or DAX. Conversely, sometimes we want to save file-backed memory segments into a core file, not only the individual files.h]hXUWhen a process is dumped, all anonymous memory is written to a core file as long as the size of the core file isn’t limited. But sometimes we don’t want to dump some memory segments, for example, huge shared memory or DAX. Conversely, sometimes we want to save file-backed memory segments into a core file, not only the individual files.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMihj_hhubj)}(hX$/proc//coredump_filter allows you to customize which memory segments will be dumped when the process is dumped. coredump_filter is a bitmask of memory types. If a bit of the bitmask is set, memory segments of the corresponding memory type are dumped, otherwise they are not dumped.h]hX$/proc//coredump_filter allows you to customize which memory segments will be dumped when the process is dumped. coredump_filter is a bitmask of memory types. If a bit of the bitmask is set, memory segments of the corresponding memory type are dumped, otherwise they are not dumped.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMohj_hhubj)}(h+The following 9 memory types are supported:h]h+The following 9 memory types are supported:}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMthj_hhubj?%)}(hX- (bit 0) anonymous private memory - (bit 1) anonymous shared memory - (bit 2) file-backed private memory - (bit 3) file-backed shared memory - (bit 4) ELF header pages in file-backed private memory areas (it is effective only if the bit 2 is cleared) - (bit 5) hugetlb private memory - (bit 6) hugetlb shared memory - (bit 7) DAX private memory - (bit 8) DAX shared memory Note that MMIO pages such as frame buffer are never dumped and vDSO pages are always dumped regardless of the bitmask status. Note that bits 0-4 don't affect hugetlb or DAX memory. hugetlb memory is only affected by bit 5-6, and DAX is only affected by bits 7-8. h](j)}(hhh](j)}(h (bit 0) anonymous private memoryh]j)}(hj`h]h (bit 0) anonymous private memory}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMvhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubj)}(h(bit 1) anonymous shared memoryh]j)}(hj4`h]h(bit 1) anonymous shared memory}(hj6`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMwhj2`ubah}(h]h ]h"]h$]h&]uh1jhj`ubj)}(h"(bit 2) file-backed private memoryh]j)}(hjK`h]h"(bit 2) file-backed private memory}(hjM`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMxhjI`ubah}(h]h ]h"]h$]h&]uh1jhj`ubj)}(h!(bit 3) file-backed shared memoryh]j)}(hjb`h]h!(bit 3) file-backed shared memory}(hjd`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMyhj``ubah}(h]h ]h"]h$]h&]uh1jhj`ubj)}(hk(bit 4) ELF header pages in file-backed private memory areas (it is effective only if the bit 2 is cleared)h]j)}(hk(bit 4) ELF header pages in file-backed private memory areas (it is effective only if the bit 2 is cleared)h]hk(bit 4) ELF header pages in file-backed private memory areas (it is effective only if the bit 2 is cleared)}(hj{`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMzhjw`ubah}(h]h ]h"]h$]h&]uh1jhj`ubj)}(h(bit 5) hugetlb private memoryh]j)}(hj`h]h(bit 5) hugetlb private memory}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM|hj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubj)}(h(bit 6) hugetlb shared memoryh]j)}(hj`h]h(bit 6) hugetlb shared memory}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM}hj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubj)}(h(bit 7) DAX private memoryh]j)}(hj`h]h(bit 7) DAX private memory}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM~hj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubj)}(h(bit 8) DAX shared memory h]j)}(h(bit 8) DAX shared memoryh]h(bit 8) DAX shared memory}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]jj0uh1jhhhMvhj`ubj)}(h}Note that MMIO pages such as frame buffer are never dumped and vDSO pages are always dumped regardless of the bitmask status.h]h}Note that MMIO pages such as frame buffer are never dumped and vDSO pages are always dumped regardless of the bitmask status.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj`ubj)}(hNote that bits 0-4 don't affect hugetlb or DAX memory. hugetlb memory is only affected by bit 5-6, and DAX is only affected by bits 7-8.h]hNote that bits 0-4 don’t affect hugetlb or DAX memory. hugetlb memory is only affected by bit 5-6, and DAX is only affected by bits 7-8.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj`ubeh}(h]h ]h"]h$]h&]uh1j>%hhhMvhj_hhubj)}(hThe default value of coredump_filter is 0x33; this means all anonymous memory segments, ELF header pages and hugetlb private memory are dumped.h]hThe default value of coredump_filter is 0x33; this means all anonymous memory segments, ELF header pages and hugetlb private memory are dumped.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj_hhubj)}(hrIf you don't want to dump all shared memory segments attached to pid 1234, write 0x31 to the process's proc file::h]huIf you don’t want to dump all shared memory segments attached to pid 1234, write 0x31 to the process’s proc file:}(hj"ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj_hhubj )}(h($ echo 0x31 > /proc/1234/coredump_filterh]h($ echo 0x31 > /proc/1234/coredump_filter}hj0asbah}(h]h ]h"]h$]h&]hhuh1j hhhMhj_hhubj)}(hWhen a new process is created, the process inherits the bitmask status from its parent. It is useful to set up coredump_filter before the program runs. For example::h]hWhen a new process is created, the process inherits the bitmask status from its parent. It is useful to set up coredump_filter before the program runs. For example:}(hj>ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj_hhubj )}(h8$ echo 0x7 > /proc/self/coredump_filter $ ./some_programh]h8$ echo 0x7 > /proc/self/coredump_filter $ ./some_program}hjLasbah}(h]h ]h"]h$]h&]hhuh1j hhhMhj_hhubeh}(h]5proc-pid-coredump-filter-core-dump-filtering-settingsah ]h"]>3.4 /proc//coredump_filter - core dump filtering settingsah$]h&]uh1hhjx]hhhhhMhubh)}(hhh](h)}(h83.5 /proc//mountinfo - Information about mountsh]h83.5 /proc//mountinfo - Information about mounts}(hjeahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbahhhhhMubj)}(h&This file contains lines of the form::h]h%This file contains lines of the form:}(hjsahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjbahhubj )}(hX^36 35 98:0 /mnt1 /mnt2 rw,noatime master:1 - ext3 /dev/root rw,errors=continue (1)(2)(3) (4) (5) (6) (n…m) (m+1)(m+2) (m+3) (m+4) (1) mount ID: unique identifier of the mount (may be reused after umount) (2) parent ID: ID of parent (or of self for the top of the mount tree) (3) major:minor: value of st_dev for files on filesystem (4) root: root of the mount within the filesystem (5) mount point: mount point relative to the process's root (6) mount options: per mount options (n…m) optional fields: zero or more fields of the form "tag[:value]" (m+1) separator: marks the end of the optional fields (m+2) filesystem type: name of filesystem of the form "type[.subtype]" (m+3) mount source: filesystem specific information or "none" (m+4) super options: per super block optionsh]hX^36 35 98:0 /mnt1 /mnt2 rw,noatime master:1 - ext3 /dev/root rw,errors=continue (1)(2)(3) (4) (5) (6) (n…m) (m+1)(m+2) (m+3) (m+4) (1) mount ID: unique identifier of the mount (may be reused after umount) (2) parent ID: ID of parent (or of self for the top of the mount tree) (3) major:minor: value of st_dev for files on filesystem (4) root: root of the mount within the filesystem (5) mount point: mount point relative to the process's root (6) mount options: per mount options (n…m) optional fields: zero or more fields of the form "tag[:value]" (m+1) separator: marks the end of the optional fields (m+2) filesystem type: name of filesystem of the form "type[.subtype]" (m+3) mount source: filesystem specific information or "none" (m+4) super options: per super block options}hjasbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjbahhubj)}(hdParsers should ignore all unrecognised optional fields. Currently the possible optional fields are:h]hdParsers should ignore all unrecognised optional fields. Currently the possible optional fields are:}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjbahhubh)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1hhjaubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK>uh1hhjaubh)}(hhh](h)}(hhh](h)}(hhh]j)}(hshared:Xh]hshared:X}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjaubah}(h]h ]h"]h$]h&]uh1hhjaubh)}(hhh]j)}(hmount is shared in peer group Xh]hmount is shared in peer group X}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjaubah}(h]h ]h"]h$]h&]uh1hhjaubeh}(h]h ]h"]h$]h&]uh1hhjaubh)}(hhh](h)}(hhh]j)}(hmaster:Xh]hmaster:X}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjaubah}(h]h ]h"]h$]h&]uh1hhjaubh)}(hhh]j)}(hmount is slave to peer group Xh]hmount is slave to peer group X}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj bubah}(h]h ]h"]h$]h&]uh1hhjaubeh}(h]h ]h"]h$]h&]uh1hhjaubh)}(hhh](h)}(hhh]j)}(hpropagate_from:Xh]hpropagate_from:X}(hj.bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj+bubah}(h]h ]h"]h$]h&]uh1hhj(bubh)}(hhh]j)}(h>mount is slave and receives propagation from peer group X [#]_h](h:mount is slave and receives propagation from peer group X }(hjEbhhhNhNubhfootnote_reference)}(h[#]_h]h1}(hjObhhhNhNubah}(h]id3ah ]h"]h$]h&]autoKrefidid4docnamefilesystems/procuh1jMbhjEbresolvedKubeh}(h]h ]h"]h$]h&]uh1jhhhMhjBbubah}(h]h ]h"]h$]h&]uh1hhj(bubeh}(h]h ]h"]h$]h&]uh1hhjaubh)}(hhh](h)}(hhh]j)}(h unbindableh]h unbindable}(hj|bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjybubah}(h]h ]h"]h$]h&]uh1hhjvbubh)}(hhh]j)}(hmount is unbindableh]hmount is unbindable}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjbubah}(h]h ]h"]h$]h&]uh1hhjvbubeh}(h]h ]h"]h$]h&]uh1hhjaubeh}(h]h ]h"]h$]h&]uh1hhjaubeh}(h]h ]h"]h$]h&]colsKuh1hhjaubah}(h]h ]h"]h$]h&]uh1hhjbahhhhhNubhfootnote)}(hX is the closest dominant peer group under the process's root. If X is the immediate master of the mount, or if there's no dominant peer group under the same root, then only the "master:X" field is present and not the "propagate_from:X" field. h](hlabel)}(hhh]h1}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jbhjbhhhNhNubj)}(hX is the closest dominant peer group under the process's root. If X is the immediate master of the mount, or if there's no dominant peer group under the same root, then only the "master:X" field is present and not the "propagate_from:X" field.h]hXX is the closest dominant peer group under the process’s root. If X is the immediate master of the mount, or if there’s no dominant peer group under the same root, then only the “master:X” field is present and not the “propagate_from:X” field.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjbubeh}(h]j`bah ]h"]1ah$]h&]jYbaj^bKjabjbbuh1jbhhhMhjbahhubj)}(h.For more information on mount propagation see:h]h.For more information on mount propagation see:}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjbahhubj?%)}(h-Documentation/filesystems/sharedsubtree.rst h]j)}(h+Documentation/filesystems/sharedsubtree.rsth]h+Documentation/filesystems/sharedsubtree.rst}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjbubah}(h]h ]h"]h$]h&]uh1j>%hhhMhjbahhubeh}(h]+proc-pid-mountinfo-information-about-mountsah ]h"]43.5 /proc//mountinfo - information about mountsah$]h&]uh1hhjx]hhhhhMubh)}(hhh](h)}(h73.6 /proc//comm & /proc//task//commh]h73.6 /proc//comm & /proc//task//comm}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchhhhhMubj)}(hXdThese files provide a method to access a task's comm value. It also allows for a task to set its own or one of its thread siblings comm value. The comm value is limited in size compared to the cmdline value, so writing anything longer then the kernel's TASK_COMM_LEN (currently 16 chars, including the NUL terminator) will result in a truncated comm value.h]hXhThese files provide a method to access a task’s comm value. It also allows for a task to set its own or one of its thread siblings comm value. The comm value is limited in size compared to the cmdline value, so writing anything longer then the kernel’s TASK_COMM_LEN (currently 16 chars, including the NUL terminator) will result in a truncated comm value.}(hj)chhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjchhubeh}(h]$proc-pid-comm-proc-pid-task-tid-commah ]h"]23.6 /proc//comm & /proc//task//commah$]h&]uh1hhjx]hhhhhMubh)}(hhh](h)}(hI3.7 /proc//task//children - Information about task childrenh]hI3.7 /proc//task//children - Information about task children}(hjBchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?chhhhhMubj)}(hThis file provides a fast way to retrieve first level children pids of a task pointed by / pair. The format is a space separated stream of pids.h]hThis file provides a fast way to retrieve first level children pids of a task pointed by / pair. The format is a space separated stream of pids.}(hjPchhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj?chhubj)}(hNote the "first level" here -- if a child has its own children they will not be listed here; one needs to read /proc//task//children to obtain the descendants.h]hNote the “first level” here -- if a child has its own children they will not be listed here; one needs to read /proc//task//children to obtain the descendants.}(hj^chhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj?chhubj)}(hX(Since this interface is intended to be fast and cheap it doesn't guarantee to provide precise results and some children might be skipped, especially if they've exited right after we printed their pids, so one needs to either stop or freeze processes being inspected if precise results are needed.h]hX,Since this interface is intended to be fast and cheap it doesn’t guarantee to provide precise results and some children might be skipped, especially if they’ve exited right after we printed their pids, so one needs to either stop or freeze processes being inspected if precise results are needed.}(hjlchhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj?chhubeh}(h]:proc-pid-task-tid-children-information-about-task-childrenah ]h"]E3.7 /proc//task//children - information about task childrenah$]h&]uh1hhjx]hhhhhMubh)}(hhh](h)}(h?3.8 /proc//fdinfo/ - Information about opened fileh]h?3.8 /proc//fdinfo/ - Information about opened file}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchhhhhMubj)}(hXThis file provides information associated with an opened file. The regular files have at least four fields -- 'pos', 'flags', 'mnt_id' and 'ino'. The 'pos' represents the current offset of the opened file in decimal form [see lseek(2) for details], 'flags' denotes the octal O_xxx mask the file has been created with [see open(2) for details] and 'mnt_id' represents mount ID of the file system containing the opened file [see 3.5 /proc//mountinfo for details]. 'ino' represents the inode number of the file.h]hX!This file provides information associated with an opened file. The regular files have at least four fields -- ‘pos’, ‘flags’, ‘mnt_id’ and ‘ino’. The ‘pos’ represents the current offset of the opened file in decimal form [see lseek(2) for details], ‘flags’ denotes the octal O_xxx mask the file has been created with [see open(2) for details] and ‘mnt_id’ represents mount ID of the file system containing the opened file [see 3.5 /proc//mountinfo for details]. ‘ino’ represents the inode number of the file.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjchhubj)}(hA typical output is::h]hA typical output is:}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjchhubj )}(h2pos: 0 flags: 0100002 mnt_id: 19 ino: 63107h]h2pos: 0 flags: 0100002 mnt_id: 19 ino: 63107}hjcsbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjchhubj)}(hIAll locks associated with a file descriptor are shown in its fdinfo too::h]hHAll locks associated with a file descriptor are shown in its fdinfo too:}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjchhubj )}(h;lock: 1: FLOCK ADVISORY WRITE 359 00:13:11691 0 EOFh]h;lock: 1: FLOCK ADVISORY WRITE 359 00:13:11691 0 EOF}hjcsbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjchhubj)}(hThe files such as eventfd, fsnotify, signalfd, epoll among the regular pos/flags pair provide additional information particular to the objects they represent.h]hThe files such as eventfd, fsnotify, signalfd, epoll among the regular pos/flags pair provide additional information particular to the objects they represent.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjchhubh)}(hhh](h)}(h Eventfd filesh]h Eventfd files}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchhhhhMubj )}(hBpos: 0 flags: 04002 mnt_id: 9 ino: 63107 eventfd-count: 5ah]hBpos: 0 flags: 04002 mnt_id: 9 ino: 63107 eventfd-count: 5a}hjcsbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjchhubj)}(h0where 'eventfd-count' is hex value of a counter.h]h4where ‘eventfd-count’ is hex value of a counter.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjchhubeh}(h] eventfd-filesah ]h"] eventfd filesah$]h&]uh1hhjchhhhhMubh)}(hhh](h)}(hSignalfd filesh]hSignalfd files}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhhhhhMubj )}(hPpos: 0 flags: 04002 mnt_id: 9 ino: 63107 sigmask: 0000000000000200h]hPpos: 0 flags: 04002 mnt_id: 9 ino: 63107 sigmask: 0000000000000200}hj-dsbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjdhhubj)}(hGwhere 'sigmask' is hex value of the signal mask associated with a file.h]hKwhere ‘sigmask’ is hex value of the signal mask associated with a file.}(hj;dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjdhhubeh}(h]signalfd-filesah ]h"]signalfd filesah$]h&]uh1hhjchhhhhMubh)}(hhh](h)}(h Epoll filesh]h Epoll files}(hjTdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQdhhhhhM ubj )}(hxpos: 0 flags: 02 mnt_id: 9 ino: 63107 tfd: 5 events: 1d data: ffffffffffffffff pos:0 ino:61af sdev:7h]hxpos: 0 flags: 02 mnt_id: 9 ino: 63107 tfd: 5 events: 1d data: ffffffffffffffff pos:0 ino:61af sdev:7}hjbdsbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjQdhhubj)}(hwhere 'tfd' is a target file descriptor number in decimal form, 'events' is events mask being watched and the 'data' is data associated with a target [see epoll(7) for more details].h]hwhere ‘tfd’ is a target file descriptor number in decimal form, ‘events’ is events mask being watched and the ‘data’ is data associated with a target [see epoll(7) for more details].}(hjpdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjQdhhubj)}(hThe 'pos' is current offset of the target file in decimal form [see lseek(2)], 'ino' and 'sdev' are inode and device numbers where target file resides, all in hex format.h]hThe ‘pos’ is current offset of the target file in decimal form [see lseek(2)], ‘ino’ and ‘sdev’ are inode and device numbers where target file resides, all in hex format.}(hj~dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjQdhhubeh}(h] epoll-filesah ]h"] epoll filesah$]h&]uh1hhjchhhhhM ubh)}(hhh](h)}(hFsnotify filesh]hFsnotify files}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhhhhhM ubj)}(h/For inotify files the format is the following::h]h.For inotify files the format is the following:}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM!hjdhhubj )}(hpos: 0 flags: 02000000 mnt_id: 9 ino: 63107 inotify wd:3 ino:9e7e sdev:800013 mask:800afce ignored_mask:0 fhandle-bytes:8 fhandle-type:1 f_handle:7e9e0000640d1b6dh]hpos: 0 flags: 02000000 mnt_id: 9 ino: 63107 inotify wd:3 ino:9e7e sdev:800013 mask:800afce ignored_mask:0 fhandle-bytes:8 fhandle-type:1 f_handle:7e9e0000640d1b6d}hjdsbah}(h]h ]h"]h$]h&]hhuh1j hhhM#hjdhhubj)}(hwhere 'wd' is a watch descriptor in decimal form, i.e. a target file descriptor number, 'ino' and 'sdev' are inode and device where the target file resides and the 'mask' is the mask of events, all in hex form [see inotify(7) for more details].h]hXwhere ‘wd’ is a watch descriptor in decimal form, i.e. a target file descriptor number, ‘ino’ and ‘sdev’ are inode and device where the target file resides and the ‘mask’ is the mask of events, all in hex form [see inotify(7) for more details].}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM)hjdhhubj)}(hIf the kernel was built with exportfs support, the path to the target file is encoded as a file handle. The file handle is provided by three fields 'fhandle-bytes', 'fhandle-type' and 'f_handle', all in hex format.h]hIf the kernel was built with exportfs support, the path to the target file is encoded as a file handle. The file handle is provided by three fields ‘fhandle-bytes’, ‘fhandle-type’ and ‘f_handle’, all in hex format.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM.hjdhhubj)}(hUIf the kernel is built without exportfs support the file handle won't be printed out.h]hWIf the kernel is built without exportfs support the file handle won’t be printed out.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM3hjdhhubj)}(hLIf there is no inotify mark attached yet the 'inotify' line will be omitted.h]hPIf there is no inotify mark attached yet the ‘inotify’ line will be omitted.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM6hjdhhubj)}(h"For fanotify files the format is::h]h!For fanotify files the format is:}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM8hjdhhubj )}(hXpos: 0 flags: 02 mnt_id: 9 ino: 63107 fanotify flags:10 event-flags:0 fanotify mnt_id:12 mflags:40 mask:38 ignored_mask:40000003 fanotify ino:4f969 sdev:800013 mflags:0 mask:3b ignored_mask:40000000 fhandle-bytes:8 fhandle-type:1 f_handle:69f90400c275b5b4h]hXpos: 0 flags: 02 mnt_id: 9 ino: 63107 fanotify flags:10 event-flags:0 fanotify mnt_id:12 mflags:40 mask:38 ignored_mask:40000003 fanotify ino:4f969 sdev:800013 mflags:0 mask:3b ignored_mask:40000000 fhandle-bytes:8 fhandle-type:1 f_handle:69f90400c275b5b4}hjesbah}(h]h ]h"]h$]h&]hhuh1j hhhM:hjdhhubj)}(hXwhere fanotify 'flags' and 'event-flags' are values used in fanotify_init call, 'mnt_id' is the mount point identifier, 'mflags' is the value of flags associated with mark which are tracked separately from events mask. 'ino' and 'sdev' are target inode and device, 'mask' is the events mask and 'ignored_mask' is the mask of events which are to be ignored. All are in hex format. Incorporation of 'mflags', 'mask' and 'ignored_mask' provide information about flags and mask used in fanotify_mark call [see fsnotify manpage for details].h]hXDwhere fanotify ‘flags’ and ‘event-flags’ are values used in fanotify_init call, ‘mnt_id’ is the mount point identifier, ‘mflags’ is the value of flags associated with mark which are tracked separately from events mask. ‘ino’ and ‘sdev’ are target inode and device, ‘mask’ is the events mask and ‘ignored_mask’ is the mask of events which are to be ignored. All are in hex format. Incorporation of ‘mflags’, ‘mask’ and ‘ignored_mask’ provide information about flags and mask used in fanotify_mark call [see fsnotify manpage for details].}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMBhjdhhubj)}(h~While the first three lines are mandatory and always printed, the rest is optional and may be omitted if no marks created yet.h]h~While the first three lines are mandatory and always printed, the rest is optional and may be omitted if no marks created yet.}(hj#ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMKhjdhhubeh}(h]fsnotify-filesah ]h"]fsnotify filesah$]h&]uh1hhjchhhhhM ubh)}(hhh](h)}(h Timerfd filesh]h Timerfd files}(hj/fdinfo/ - information about opened fileah$]h&]uh1hhjx]hhhhhMubh)}(hhh](h)}(hE3.9 /proc//map_files - Information about memory mapped filesh]hE3.9 /proc//map_files - Information about memory mapped files}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehhhhhMvubj)}(hxThis directory contains symbolic links which represent memory mapped files the process is maintaining. Example output::h]hwThis directory contains symbolic links which represent memory mapped files the process is maintaining. Example output:}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMwhjehhubj )}(hX| lr-------- 1 root root 64 Jan 27 11:24 333c600000-333c620000 -> /usr/lib64/ld-2.18.so | lr-------- 1 root root 64 Jan 27 11:24 333c81f000-333c820000 -> /usr/lib64/ld-2.18.so | lr-------- 1 root root 64 Jan 27 11:24 333c820000-333c821000 -> /usr/lib64/ld-2.18.so | ... | lr-------- 1 root root 64 Jan 27 11:24 35d0421000-35d0422000 -> /usr/lib64/libselinux.so.1 | lr-------- 1 root root 64 Jan 27 11:24 400000-41a000 -> /usr/bin/lsh]hX| lr-------- 1 root root 64 Jan 27 11:24 333c600000-333c620000 -> /usr/lib64/ld-2.18.so | lr-------- 1 root root 64 Jan 27 11:24 333c81f000-333c820000 -> /usr/lib64/ld-2.18.so | lr-------- 1 root root 64 Jan 27 11:24 333c820000-333c821000 -> /usr/lib64/ld-2.18.so | ... | lr-------- 1 root root 64 Jan 27 11:24 35d0421000-35d0422000 -> /usr/lib64/libselinux.so.1 | lr-------- 1 root root 64 Jan 27 11:24 400000-41a000 -> /usr/bin/ls}hjesbah}(h]h ]h"]h$]h&]hhuh1j hhhMzhjehhubj)}(h{The name of a link represents the virtual memory bounds of a mapping, i.e. vm_area_struct::vm_start-vm_area_struct::vm_end.h]h{The name of a link represents the virtual memory bounds of a mapping, i.e. vm_area_struct::vm_start-vm_area_struct::vm_end.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjehhubj)}(hXnThe main purpose of the map_files is to retrieve a set of memory mapped files in a fast way instead of parsing /proc//maps or /proc//smaps, both of which contain many more records. At the same time one can open(2) mappings from the listings of two processes and comparing their inode numbers to figure out which anonymous memory areas are actually shared.h]hXnThe main purpose of the map_files is to retrieve a set of memory mapped files in a fast way instead of parsing /proc//maps or /proc//smaps, both of which contain many more records. At the same time one can open(2) mappings from the listings of two processes and comparing their inode numbers to figure out which anonymous memory areas are actually shared.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjehhubeh}(h]8proc-pid-map-files-information-about-memory-mapped-filesah ]h"]A3.9 /proc//map_files - information about memory mapped filesah$]h&]uh1hhjx]hhhhhMvubh)}(hhh](h)}(h93.10 /proc//timerslack_ns - Task timerslack valueh]h93.10 /proc//timerslack_ns - Task timerslack value}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehhhhhMubj)}(hThis file provides the value of the task's timerslack value in nanoseconds. This value specifies an amount of time that normal timers may be deferred in order to coalesce timers and avoid unnecessary wakeups.h]hThis file provides the value of the task’s timerslack value in nanoseconds. This value specifies an amount of time that normal timers may be deferred in order to coalesce timers and avoid unnecessary wakeups.}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjehhubj)}(hPThis allows a task's interactivity vs power consumption tradeoff to be adjusted.h]hRThis allows a task’s interactivity vs power consumption tradeoff to be adjusted.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjehhubj)}(hJWriting 0 to the file will set the task's timerslack to the default value.h]hLWriting 0 to the file will set the task’s timerslack to the default value.}(hj)fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjehhubj)}(h$Valid values are from 0 - ULLONG_MAXh]h$Valid values are from 0 - ULLONG_MAX}(hj7fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjehhubj)}(hAn application setting the value must have PTRACE_MODE_ATTACH_FSCREDS level permissions on the task specified to change its timerslack_ns value.h]hAn application setting the value must have PTRACE_MODE_ATTACH_FSCREDS level permissions on the task specified to change its timerslack_ns value.}(hjEfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjehhubeh}(h],proc-pid-timerslack-ns-task-timerslack-valueah ]h"]63.10 /proc//timerslack_ns - task timerslack valueah$]h&]uh1hhjx]hhhhhMubh)}(hhh](h)}(hA3.11 /proc//patch_state - Livepatch patch operation stateh]hA3.11 /proc//patch_state - Livepatch patch operation state}(hj^fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[fhhhhhMubj)}(h_When CONFIG_LIVEPATCH is enabled, this file displays the value of the patch state for the task.h]h_When CONFIG_LIVEPATCH is enabled, this file displays the value of the patch state for the task.}(hjlfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj[fhhubj)}(h9A value of '-1' indicates that no patch is in transition.h]h=A value of ‘-1’ indicates that no patch is in transition.}(hjzfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj[fhhubj)}(hA value of '0' indicates that a patch is in transition and the task is unpatched. If the patch is being enabled, then the task hasn't been patched yet. If the patch is being disabled, then the task has already been unpatched.h]hA value of ‘0’ indicates that a patch is in transition and the task is unpatched. If the patch is being enabled, then the task hasn’t been patched yet. If the patch is being disabled, then the task has already been unpatched.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj[fhhubj)}(hA value of '1' indicates that a patch is in transition and the task is patched. If the patch is being enabled, then the task has already been patched. If the patch is being disabled, then the task hasn't been unpatched yet.h]hA value of ‘1’ indicates that a patch is in transition and the task is patched. If the patch is being enabled, then the task has already been patched. If the patch is being disabled, then the task hasn’t been unpatched yet.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj[fhhubeh}(h]4proc-pid-patch-state-livepatch-patch-operation-stateah ]h"]>3.11 /proc//patch_state - livepatch patch operation stateah$]h&]uh1hhjx]hhhhhMubh)}(hhh](h)}(h@3.12 /proc//arch_status - task architecture specific statush]h@3.12 /proc//arch_status - task architecture specific status}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhhhhhMubj)}(hmWhen CONFIG_PROC_PID_ARCH_STATUS is enabled, this file displays the architecture specific status of the task.h]hmWhen CONFIG_PROC_PID_ARCH_STATUS is enabled, this file displays the architecture specific status of the task.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjfhhubh)}(hhh](h)}(hExampleh]hExample}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhhhhhMubj )}(h6$ cat /proc/6753/arch_status AVX512_elapsed_ms: 8h]h6$ cat /proc/6753/arch_status AVX512_elapsed_ms: 8}hjfsbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjfhhubeh}(h]id5ah ]h"]h$]j}^ah&]uh1hhjfhhhhhMjOKubh)}(hhh]h)}(h Descriptionh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhhhhhMubah}(h]id6ah ]h"]h$]j_ah&]uh1hhjfhhhhhMjOKubh)}(hhh](h)}(hx86 specific entriesh]hx86 specific entries}(hj ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ghhhhhMubh)}(hhh](h)}(hAVX512_elapsed_msh]hAVX512_elapsed_ms}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghhhhhMubj?%)}(hXmIf AVX512 is supported on the machine, this entry shows the milliseconds elapsed since the last time AVX512 usage was recorded. The recording happens on a best effort basis when a task is scheduled out. This means that the value depends on two factors: 1) The time which the task spent on the CPU without being scheduled out. With CPU isolation and a single runnable task this can take several seconds. 2) The time since the task was scheduled out last. Depending on the reason for being scheduled out (time slice exhausted, syscall ...) this can be arbitrary long time. As a consequence the value cannot be considered precise and authoritative information. The application which uses this information has to be aware of the overall scenario on the system in order to determine whether a task is a real AVX512 user or not. Precise information can be obtained with performance counters. A special value of '-1' indicates that no AVX512 usage was recorded, thus the task is unlikely an AVX512 user, but depends on the workload and the scheduling scenario, it also could be a false negative mentioned above. h](j)}(hIf AVX512 is supported on the machine, this entry shows the milliseconds elapsed since the last time AVX512 usage was recorded. The recording happens on a best effort basis when a task is scheduled out. This means that the value depends on two factors:h]hIf AVX512 is supported on the machine, this entry shows the milliseconds elapsed since the last time AVX512 usage was recorded. The recording happens on a best effort basis when a task is scheduled out. This means that the value depends on two factors:}(hj/ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj+gubj?%)}(hXK1) The time which the task spent on the CPU without being scheduled out. With CPU isolation and a single runnable task this can take several seconds. 2) The time since the task was scheduled out last. Depending on the reason for being scheduled out (time slice exhausted, syscall ...) this can be arbitrary long time. h]j/)}(hhh](j)}(hThe time which the task spent on the CPU without being scheduled out. With CPU isolation and a single runnable task this can take several seconds. h]j)}(hThe time which the task spent on the CPU without being scheduled out. With CPU isolation and a single runnable task this can take several seconds.h]hThe time which the task spent on the CPU without being scheduled out. With CPU isolation and a single runnable task this can take several seconds.}(hjHghhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjDgubah}(h]h ]h"]h$]h&]uh1jhjAgubj)}(hThe time since the task was scheduled out last. Depending on the reason for being scheduled out (time slice exhausted, syscall ...) this can be arbitrary long time. h]j)}(hThe time since the task was scheduled out last. Depending on the reason for being scheduled out (time slice exhausted, syscall ...) this can be arbitrary long time.h]hThe time since the task was scheduled out last. Depending on the reason for being scheduled out (time slice exhausted, syscall ...) this can be arbitrary long time.}(hj`ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj\gubah}(h]h ]h"]h$]h&]uh1jhjAgubeh}(h]h ]h"]h$]h&]j30j40j50hj60j70uh1j/hj=gubah}(h]h ]h"]h$]h&]uh1j>%hhhMhj+gubj)}(hX:As a consequence the value cannot be considered precise and authoritative information. The application which uses this information has to be aware of the overall scenario on the system in order to determine whether a task is a real AVX512 user or not. Precise information can be obtained with performance counters.h]hX:As a consequence the value cannot be considered precise and authoritative information. The application which uses this information has to be aware of the overall scenario on the system in order to determine whether a task is a real AVX512 user or not. Precise information can be obtained with performance counters.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj+gubj)}(hA special value of '-1' indicates that no AVX512 usage was recorded, thus the task is unlikely an AVX512 user, but depends on the workload and the scheduling scenario, it also could be a false negative mentioned above.h]hA special value of ‘-1’ indicates that no AVX512 usage was recorded, thus the task is unlikely an AVX512 user, but depends on the workload and the scheduling scenario, it also could be a false negative mentioned above.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj+gubeh}(h]h ]h"]h$]h&]uh1j>%hhhMhjghhubeh}(h]avx512-elapsed-msah ]h"]avx512_elapsed_msah$]h&]uh1hhj ghhhhhMubeh}(h]x86-specific-entriesah ]h"]x86 specific entriesah$]h&]uh1hhjfhhhhhMubeh}(h]6proc-pid-arch-status-task-architecture-specific-statusah ]h"]@3.12 /proc//arch_status - task architecture specific statusah$]h&]uh1hhjx]hhhhhMubh)}(hhh](h)}(h43.13 /proc//fd - List of symlinks to open filesh]h43.13 /proc//fd - List of symlinks to open files}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghhhhhMubj)}(hoThis directory contains symbolic links which represent open files the process is maintaining. Example output::h]hnThis directory contains symbolic links which represent open files the process is maintaining. Example output:}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjghhubj )}(hX%lr-x------ 1 root root 64 Sep 20 17:53 0 -> /dev/null l-wx------ 1 root root 64 Sep 20 17:53 1 -> /dev/null lrwx------ 1 root root 64 Sep 20 17:53 10 -> 'socket:[12539]' lrwx------ 1 root root 64 Sep 20 17:53 11 -> 'socket:[12540]' lrwx------ 1 root root 64 Sep 20 17:53 12 -> 'socket:[12542]'h]hX%lr-x------ 1 root root 64 Sep 20 17:53 0 -> /dev/null l-wx------ 1 root root 64 Sep 20 17:53 1 -> /dev/null lrwx------ 1 root root 64 Sep 20 17:53 10 -> 'socket:[12539]' lrwx------ 1 root root 64 Sep 20 17:53 11 -> 'socket:[12540]' lrwx------ 1 root root 64 Sep 20 17:53 12 -> 'socket:[12542]'}hjgsbah}(h]h ]h"]h$]h&]hhuh1j hhhMhjghhubj)}(hThe number of open files for the process is stored in 'size' member of stat() output for /proc//fd for fast access. -------------------------------------------------------h]hThe number of open files for the process is stored in ‘size’ member of stat() output for /proc//fd for fast access. -------------------------------------------------------}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjghhubeh}(h]*proc-pid-fd-list-of-symlinks-to-open-filesah ]h"]43.13 /proc//fd - list of symlinks to open filesah$]h&]uh1hhjx]hhhhhMubh)}(hhh](h)}(hE3.14 /proc//ksm_merging_pages shows.h]hIt represents how many pages of this process are involved in KSM merging (not including ksm_zero_pages). It is the same with what /proc//ksm_merging_pages shows.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjhhhubeh}(h]ksm-merging-pagesah ]h"]ksm_merging_pagesah$]h&]uh1hhjChhhhhhM ubh)}(hhh](h)}(hksm_process_profith]hksm_process_profit}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhhM ubj)}(hX~The profit that KSM brings (Saved bytes). KSM can save memory by merging identical pages, but also can consume additional memory, because it needs to generate a number of rmap_items to save each scanned page's brief rmap information. Some of these pages may be merged, but some may not be abled to be merged after being checked several times, which are unprofitable memory consumed.h]hXThe profit that KSM brings (Saved bytes). KSM can save memory by merging identical pages, but also can consume additional memory, because it needs to generate a number of rmap_items to save each scanned page’s brief rmap information. Some of these pages may be merged, but some may not be abled to be merged after being checked several times, which are unprofitable memory consumed.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjhhhubeh}(h]ksm-process-profitah ]h"]ksm_process_profitah$]h&]uh1hhjChhhhhhM ubh)}(hhh](h)}(h ksm_merge_anyh]h ksm_merge_any}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhhM ubj)}(hIt specifies whether the process's 'mm is added by prctl() into the candidate list of KSM or not, and if KSM scanning is fully enabled at process level.h]hIt specifies whether the process’s ‘mm is added by prctl() into the candidate list of KSM or not, and if KSM scanning is fully enabled at process level.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM hjhhhubeh}(h] ksm-merge-anyah ]h"] ksm_merge_anyah$]h&]uh1hhjChhhhhhM ubh)}(hhh](h)}(h ksm_mergeableh]h ksm_mergeable}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihhhhhM$ ubj)}(hTIt specifies whether any VMAs of the process''s mms are currently applicable to KSM.h]hXIt specifies whether any VMAs of the process’’s mms are currently applicable to KSM.}(hj(ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM& hjihhubj)}(hPMore information about KSM can be found in Documentation/admin-guide/mm/ksm.rst.h]hPMore information about KSM can be found in Documentation/admin-guide/mm/ksm.rst.}(hj6ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM) hjihhubeh}(h] ksm-mergeableah ]h"] ksm_mergeableah$]h&]uh1hhjChhhhhhM$ ubeh}(h]id8ah ]h"]h$] descriptionah&]uh1hhjghhhhhMjOKubeh}(h]/ access mode. gid= Set the group authorized to learn processes information. subset= Show only the specified subset of procfs. ========= ======================================================== h]h)}(hhh]h)}(hhh](h)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1hhjiubh)}(hhh]h}(h]h ]h"]h$]h&]colwidthK8uh1hhjiubh)}(hhh](h)}(hhh](h)}(hhh]j)}(hhidepid=h]hhidepid=}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM6 hjiubah}(h]h ]h"]h$]h&]uh1hhjiubh)}(hhh]j)}(hSet /proc// access mode.h]hSet /proc// access mode.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM6 hjiubah}(h]h ]h"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]uh1hhjiubh)}(hhh](h)}(hhh]j)}(hgid=h]hgid=}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM7 hjiubah}(h]h ]h"]h$]h&]uh1hhjiubh)}(hhh]j)}(h8Set the group authorized to learn processes information.h]h8Set the group authorized to learn processes information.}(hj jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM7 hjjubah}(h]h ]h"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]uh1hhjiubh)}(hhh](h)}(hhh]j)}(hsubset=h]hsubset=}(hj)jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM8 hj&jubah}(h]h ]h"]h$]h&]uh1hhj#jubh)}(hhh]j)}(h)Show only the specified subset of procfs.h]h)Show only the specified subset of procfs.}(hj@jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM8 hj=jubah}(h]h ]h"]h$]h&]uh1hhj#jubeh}(h]h ]h"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]colsKuh1hhjiubah}(h]h ]h"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&]uh1j>%hhhM5 hjuihhubj)}(hjhidepid=off or hidepid=0 means classic mode - everybody may access all /proc// directories (default).h]hjhidepid=off or hidepid=0 means classic mode - everybody may access all /proc// directories (default).}(hjsjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM; hjuihhubj)}(hX hidepid=noaccess or hidepid=1 means users may not access any /proc// directories but their own. Sensitive files like cmdline, sched*, status are now protected against other users. This makes it impossible to learn whether any user runs specific program (given the program doesn't reveal itself by its behaviour). As an additional bonus, as /proc//cmdline is unaccessible for other users, poorly written programs passing sensitive information via program arguments are now protected against local eavesdroppers.h]hX hidepid=noaccess or hidepid=1 means users may not access any /proc// directories but their own. Sensitive files like cmdline, sched*, status are now protected against other users. This makes it impossible to learn whether any user runs specific program (given the program doesn’t reveal itself by its behaviour). As an additional bonus, as /proc//cmdline is unaccessible for other users, poorly written programs passing sensitive information via program arguments are now protected against local eavesdroppers.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM> hjuihhubj)}(hXQhidepid=invisible or hidepid=2 means hidepid=1 plus all /proc// will be fully invisible to other users. It doesn't mean that it hides a fact whether a process with a specific pid value exists (it can be learned by other means, e.g. by "kill -0 $PID"), but it hides process's uid and gid, which may be learned by stat()'ing /proc// otherwise. It greatly complicates an intruder's task of gathering information about running processes, whether some daemon runs with elevated privileges, whether other user runs some sensitive program, whether other users run any program at all, etc.h]hX]hidepid=invisible or hidepid=2 means hidepid=1 plus all /proc// will be fully invisible to other users. It doesn’t mean that it hides a fact whether a process with a specific pid value exists (it can be learned by other means, e.g. by “kill -0 $PID”), but it hides process’s uid and gid, which may be learned by stat()’ing /proc// otherwise. It greatly complicates an intruder’s task of gathering information about running processes, whether some daemon runs with elevated privileges, whether other user runs some sensitive program, whether other users run any program at all, etc.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMF hjuihhubj)}(hzhidepid=ptraceable or hidepid=4 means that procfs should only contain /proc// directories that the caller can ptrace.h]hzhidepid=ptraceable or hidepid=4 means that procfs should only contain /proc// directories that the caller can ptrace.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMO hjuihhubj)}(hgid= defines a group authorized to learn processes information otherwise prohibited by hidepid=. If you use some daemon like identd which needs to learn information about processes information, just add identd to this group.h]hgid= defines a group authorized to learn processes information otherwise prohibited by hidepid=. If you use some daemon like identd which needs to learn information about processes information, just add identd to this group.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMR hjuihhubj)}(hasubset=pid hides all top level files and directories in the procfs that are not related to tasks.h]hasubset=pid hides all top level files and directories in the procfs that are not related to tasks.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMV hjuihhubeh}(h] mount-optionsah ]h"]4.1 mount optionsah$]h&]uh1hhjdihhhhhM1 ubeh}(h]chapter-4-configuring-procfsah ]h"]chapter 4: configuring procfsah$]h&]uh1hhhhhhhhM. ubh)}(hhh](h)}(hChapter 5: Filesystem behaviorh]hChapter 5: Filesystem behavior}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhhhhhMZ ubj)}(hOriginally, before the advent of pid namespace, procfs was a global file system. It means that there was only one procfs instance in the system.h]hOriginally, before the advent of pid namespace, procfs was a global file system. It means that there was only one procfs instance in the system.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM\ hjjhhubj)}(hWhen pid namespace was added, a separate procfs instance was mounted in each pid namespace. So, procfs mount options are global among all mountpoints within the same namespace::h]hWhen pid namespace was added, a separate procfs instance was mounted in each pid namespace. So, procfs mount options are global among all mountpoints within the same namespace:}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM_ hjjhhubj )}(hX@# grep ^proc /proc/mounts proc /proc proc rw,relatime,hidepid=2 0 0 # strace -e mount mount -o hidepid=1 -t proc proc /tmp/proc mount("proc", "/tmp/proc", "proc", 0, "hidepid=1") = 0 +++ exited with 0 +++ # grep ^proc /proc/mounts proc /proc proc rw,relatime,hidepid=2 0 0 proc /tmp/proc proc rw,relatime,hidepid=2 0 0h]hX@# grep ^proc /proc/mounts proc /proc proc rw,relatime,hidepid=2 0 0 # strace -e mount mount -o hidepid=1 -t proc proc /tmp/proc mount("proc", "/tmp/proc", "proc", 0, "hidepid=1") = 0 +++ exited with 0 +++ # grep ^proc /proc/mounts proc /proc proc rw,relatime,hidepid=2 0 0 proc /tmp/proc proc rw,relatime,hidepid=2 0 0}hjksbah}(h]h ]h"]h$]h&]hhuh1j hhhMc hjjhhubj)}(hOand only after remounting procfs mount options will change at all mountpoints::h]hNand only after remounting procfs mount options will change at all mountpoints:}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMn hjjhhubj )}(h# mount -o remount,hidepid=1 -t proc proc /tmp/proc # grep ^proc /proc/mounts proc /proc proc rw,relatime,hidepid=1 0 0 proc /tmp/proc proc rw,relatime,hidepid=1 0 0h]h# mount -o remount,hidepid=1 -t proc proc /tmp/proc # grep ^proc /proc/mounts proc /proc proc rw,relatime,hidepid=1 0 0 proc /tmp/proc proc rw,relatime,hidepid=1 0 0}hj ksbah}(h]h ]h"]h$]h&]hhuh1j hhhMq hjjhhubj)}(hBThis behavior is different from the behavior of other filesystems.h]hBThis behavior is different from the behavior of other filesystems.}(hj.khhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMw hjjhhubj)}(hXThe new procfs behavior is more like other filesystems. Each procfs mount creates a new procfs instance. Mount options affect own procfs instance. It means that it became possible to have several procfs instances displaying tasks with different filtering options in one pid namespace::h]hXThe new procfs behavior is more like other filesystems. Each procfs mount creates a new procfs instance. Mount options affect own procfs instance. It means that it became possible to have several procfs instances displaying tasks with different filtering options in one pid namespace:}(hj