xref: /linux/Documentation/ABI/testing/procfs-smaps_rollup (revision ee2ad71b0756e995fa4f6d922463e9bccd71b198)
1493b0e9dSDaniel ColascioneWhat:		/proc/pid/smaps_rollup
2493b0e9dSDaniel ColascioneDate:		August 2017
3493b0e9dSDaniel ColascioneContact:	Daniel Colascione <dancol@google.com>
4493b0e9dSDaniel ColascioneDescription:
5493b0e9dSDaniel Colascione		This file provides pre-summed memory information for a
6*ee2ad71bSLuigi Semenzato		process.  The format is almost identical to /proc/pid/smaps,
7493b0e9dSDaniel Colascione		except instead of an entry for each VMA in a process,
8493b0e9dSDaniel Colascione		smaps_rollup has a single entry (tagged "[rollup]")
9493b0e9dSDaniel Colascione		for which each field is the sum of the corresponding
10493b0e9dSDaniel Colascione		fields from all the maps in /proc/pid/smaps.
11*ee2ad71bSLuigi Semenzato		Additionally, the fields Pss_Anon, Pss_File and Pss_Shmem
12*ee2ad71bSLuigi Semenzato		are not present in /proc/pid/smaps.  These fields represent
13*ee2ad71bSLuigi Semenzato		the sum of the Pss field of each type (anon, file, shmem).
14*ee2ad71bSLuigi Semenzato		For more details, see Documentation/filesystems/proc.txt
15*ee2ad71bSLuigi Semenzato		and the procfs man page.
16493b0e9dSDaniel Colascione
17493b0e9dSDaniel Colascione		Typical output looks like this:
18493b0e9dSDaniel Colascione
19493b0e9dSDaniel Colascione		00100000-ff709000 ---p 00000000 00:00 0		 [rollup]
20*ee2ad71bSLuigi Semenzato		Size:               1192 kB
21*ee2ad71bSLuigi Semenzato		KernelPageSize:        4 kB
22*ee2ad71bSLuigi Semenzato		MMUPageSize:           4 kB
23493b0e9dSDaniel Colascione		Rss:		     884 kB
24493b0e9dSDaniel Colascione		Pss:		     385 kB
25*ee2ad71bSLuigi Semenzato		Pss_Anon:	     301 kB
26*ee2ad71bSLuigi Semenzato		Pss_File:	      80 kB
27*ee2ad71bSLuigi Semenzato		Pss_Shmem:	       4 kB
28493b0e9dSDaniel Colascione		Shared_Clean:	     696 kB
29493b0e9dSDaniel Colascione		Shared_Dirty:	       0 kB
30493b0e9dSDaniel Colascione		Private_Clean:	     120 kB
31493b0e9dSDaniel Colascione		Private_Dirty:	      68 kB
32493b0e9dSDaniel Colascione		Referenced:	     884 kB
33493b0e9dSDaniel Colascione		Anonymous:	      68 kB
34493b0e9dSDaniel Colascione		LazyFree:	       0 kB
35493b0e9dSDaniel Colascione		AnonHugePages:	       0 kB
36493b0e9dSDaniel Colascione		ShmemPmdMapped:	       0 kB
37493b0e9dSDaniel Colascione		Shared_Hugetlb:	       0 kB
38493b0e9dSDaniel Colascione		Private_Hugetlb:       0 kB
39493b0e9dSDaniel Colascione		Swap:		       0 kB
40493b0e9dSDaniel Colascione		SwapPss:	       0 kB
41493b0e9dSDaniel Colascione		Locked:		     385 kB
42