xref: /linux/Documentation/ABI/testing/procfs-smaps_rollup (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
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
6ee2ad71bSLuigi 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.
11ee2ad71bSLuigi Semenzato		Additionally, the fields Pss_Anon, Pss_File and Pss_Shmem
12ee2ad71bSLuigi Semenzato		are not present in /proc/pid/smaps.  These fields represent
13ee2ad71bSLuigi Semenzato		the sum of the Pss field of each type (anon, file, shmem).
140c1bc6b8SMauro Carvalho Chehab		For more details, see Documentation/filesystems/proc.rst
15ee2ad71bSLuigi Semenzato		and the procfs man page.
16493b0e9dSDaniel Colascione
1754a19b4dSMauro Carvalho Chehab		Typical output looks like this::
18493b0e9dSDaniel Colascione
19493b0e9dSDaniel Colascione			00100000-ff709000 ---p 00000000 00:00 0		 [rollup]
20ee2ad71bSLuigi Semenzato			Size:               1192 kB
21ee2ad71bSLuigi Semenzato			KernelPageSize:        4 kB
22ee2ad71bSLuigi Semenzato			MMUPageSize:           4 kB
23493b0e9dSDaniel Colascione			Rss:		     884 kB
24493b0e9dSDaniel Colascione			Pss:		     385 kB
25*30934843SVincent Whitchurch			Pss_Dirty:	      68 kB
26ee2ad71bSLuigi Semenzato			Pss_Anon:	     301 kB
27ee2ad71bSLuigi Semenzato			Pss_File:	      80 kB
28ee2ad71bSLuigi Semenzato			Pss_Shmem:	       4 kB
29493b0e9dSDaniel Colascione			Shared_Clean:	     696 kB
30493b0e9dSDaniel Colascione			Shared_Dirty:	       0 kB
31493b0e9dSDaniel Colascione			Private_Clean:	     120 kB
32493b0e9dSDaniel Colascione			Private_Dirty:	      68 kB
33493b0e9dSDaniel Colascione			Referenced:	     884 kB
34493b0e9dSDaniel Colascione			Anonymous:	      68 kB
35493b0e9dSDaniel Colascione			LazyFree:	       0 kB
36493b0e9dSDaniel Colascione			AnonHugePages:	       0 kB
37493b0e9dSDaniel Colascione			ShmemPmdMapped:	       0 kB
38493b0e9dSDaniel Colascione			Shared_Hugetlb:	       0 kB
39493b0e9dSDaniel Colascione			Private_Hugetlb:       0 kB
40493b0e9dSDaniel Colascione			Swap:		       0 kB
41493b0e9dSDaniel Colascione			SwapPss:	       0 kB
42493b0e9dSDaniel Colascione			Locked:		     385 kB
43