hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/Documentation/ABI/testing/procfs-smaps_rollup
....@@ -3,29 +3,39 @@
33 Contact: Daniel Colascione <dancol@google.com>
44 Description:
55 This file provides pre-summed memory information for a
6
- process. The format is identical to /proc/pid/smaps,
6
+ process. The format is almost identical to /proc/pid/smaps,
77 except instead of an entry for each VMA in a process,
88 smaps_rollup has a single entry (tagged "[rollup]")
99 for which each field is the sum of the corresponding
1010 fields from all the maps in /proc/pid/smaps.
11
- For more details, see the procfs man page.
11
+ Additionally, the fields Pss_Anon, Pss_File and Pss_Shmem
12
+ are not present in /proc/pid/smaps. These fields represent
13
+ the sum of the Pss field of each type (anon, file, shmem).
14
+ For more details, see Documentation/filesystems/proc.rst
15
+ and the procfs man page.
1216
13
- Typical output looks like this:
17
+ Typical output looks like this::
1418
15
- 00100000-ff709000 ---p 00000000 00:00 0 [rollup]
16
- Rss: 884 kB
17
- Pss: 385 kB
18
- Shared_Clean: 696 kB
19
- Shared_Dirty: 0 kB
20
- Private_Clean: 120 kB
21
- Private_Dirty: 68 kB
22
- Referenced: 884 kB
23
- Anonymous: 68 kB
24
- LazyFree: 0 kB
25
- AnonHugePages: 0 kB
26
- ShmemPmdMapped: 0 kB
27
- Shared_Hugetlb: 0 kB
28
- Private_Hugetlb: 0 kB
29
- Swap: 0 kB
30
- SwapPss: 0 kB
31
- Locked: 385 kB
19
+ 00100000-ff709000 ---p 00000000 00:00 0 [rollup]
20
+ Size: 1192 kB
21
+ KernelPageSize: 4 kB
22
+ MMUPageSize: 4 kB
23
+ Rss: 884 kB
24
+ Pss: 385 kB
25
+ Pss_Anon: 301 kB
26
+ Pss_File: 80 kB
27
+ Pss_Shmem: 4 kB
28
+ Shared_Clean: 696 kB
29
+ Shared_Dirty: 0 kB
30
+ Private_Clean: 120 kB
31
+ Private_Dirty: 68 kB
32
+ Referenced: 884 kB
33
+ Anonymous: 68 kB
34
+ LazyFree: 0 kB
35
+ AnonHugePages: 0 kB
36
+ ShmemPmdMapped: 0 kB
37
+ Shared_Hugetlb: 0 kB
38
+ Private_Hugetlb: 0 kB
39
+ Swap: 0 kB
40
+ SwapPss: 0 kB
41
+ Locked: 385 kB