linux-next/Documentation
Luigi Semenzato ee2ad71b07 mm: smaps: split PSS into components
Report separate components (anon, file, and shmem) for PSS in
smaps_rollup.

This helps understand and tune the memory manager behavior in consumer
devices, particularly mobile devices.  Many of them (e.g.  chromebooks and
Android-based devices) use zram for anon memory, and perform disk reads
for discarded file pages.  The difference in latency is large (e.g.
reading a single page from SSD is 30 times slower than decompressing a
zram page on one popular device), thus it is useful to know how much of
the PSS is anon vs.  file.

All the information is already present in /proc/pid/smaps, but much more
expensive to obtain because of the large size of that procfs entry.

This patch also removes a small code duplication in smaps_account, which
would have gotten worse otherwise.

Also updated Documentation/filesystems/proc.txt (the smaps section was a
bit stale, and I added a smaps_rollup section) and
Documentation/ABI/testing/procfs-smaps_rollup.

[semenzato@chromium.org: v5]
  Link: http://lkml.kernel.org/r/20190626234333.44608-1-semenzato@chromium.org
Link: http://lkml.kernel.org/r/20190626180429.174569-1-semenzato@chromium.org
Signed-off-by: Luigi Semenzato <semenzato@chromium.org>
Acked-by: Yu Zhao <yuzhao@chromium.org>
Cc: Sonny Rao <sonnyrao@chromium.org>
Cc: Yu Zhao <yuzhao@chromium.org>
Cc: Brian Geffon <bgeffon@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-07-12 11:05:47 -07:00
..
2019-07-12 11:05:47 -07:00
2019-05-14 19:52:48 -07:00
2019-06-08 13:42:11 -06:00
2019-07-09 10:45:06 -07:00
2019-07-09 10:45:06 -07:00
2019-06-28 09:04:14 -06:00
2019-06-08 13:42:11 -06:00
2019-06-20 14:08:49 -06:00
2019-06-20 14:08:49 -06:00
2019-05-31 11:13:10 +02:00
2019-06-28 20:57:31 +02:00
2019-06-27 07:35:47 -04:00
2019-06-07 11:39:04 -06:00
2018-10-25 06:50:48 -07:00
2018-12-18 16:13:04 +01:00
2019-05-08 17:13:35 -07:00
2019-04-08 14:13:43 +07:00
2019-05-21 10:11:19 +02:00
2019-05-09 08:40:55 -07:00
2019-06-26 11:39:11 +02:00
2018-05-08 09:16:41 -06:00