aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems
diff options
context:
space:
mode:
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>2015-11-05 21:47:14 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-05 22:34:48 -0500
commit5d317b2b6536592a9b51fe65faed43d65ca9158e (patch)
treef6d51677a577802ddd873c2e01bf04c5aff1e3f1 /Documentation/filesystems
parent25ee01a2fca02dfb5a3ce316e77910c468108199 (diff)
mm: hugetlb: proc: add HugetlbPages field to /proc/PID/status
Currently there's no easy way to get per-process usage of hugetlb pages, which is inconvenient because userspace applications which use hugetlb typically want to control their processes on the basis of how much memory (including hugetlb) they use. So this patch simply provides easy access to the info via /proc/PID/status. Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Acked-by: Joern Engel <joern@logfs.org> Acked-by: David Rientjes <rientjes@google.com> Acked-by: Michal Hocko <mhocko@suse.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r--Documentation/filesystems/proc.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
index a7d6c06f36c4..12ac0e4455d4 100644
--- a/Documentation/filesystems/proc.txt
+++ b/Documentation/filesystems/proc.txt
@@ -175,6 +175,7 @@ read the file /proc/PID/status:
175 VmLib: 1412 kB 175 VmLib: 1412 kB
176 VmPTE: 20 kb 176 VmPTE: 20 kb
177 VmSwap: 0 kB 177 VmSwap: 0 kB
178 HugetlbPages: 0 kB
178 Threads: 1 179 Threads: 1
179 SigQ: 0/28578 180 SigQ: 0/28578
180 SigPnd: 0000000000000000 181 SigPnd: 0000000000000000
@@ -238,6 +239,7 @@ Table 1-2: Contents of the status files (as of 4.1)
238 VmPTE size of page table entries 239 VmPTE size of page table entries
239 VmPMD size of second level page tables 240 VmPMD size of second level page tables
240 VmSwap size of swap usage (the number of referred swapents) 241 VmSwap size of swap usage (the number of referred swapents)
242 HugetlbPages size of hugetlb memory portions
241 Threads number of threads 243 Threads number of threads
242 SigQ number of signals queued/max. number for queue 244 SigQ number of signals queued/max. number for queue
243 SigPnd bitmap of pending signals for the thread 245 SigPnd bitmap of pending signals for the thread