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