Commit 798d6a91 authored by Luigi Semenzato's avatar Luigi Semenzato Committed by chrome-bot
Browse files

FROMLIST: mm: smaps: split PSS into components

Report separate components (anon, file, and shmem)
for PSS in smaps and 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.

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

(am from https://patchwork.kernel.org/patch/10969398/

)

BUG=chromium:962973
TEST=ran it

Change-Id: Icaa696746d5e83b993c936fa28ff93a6a9dfad4e
Signed-off-by: default avatarLuigi Semenzato <semenzato@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1660016


Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: default avatarSonny Rao <sonnyrao@chromium.org>
Reviewed-by: default avatarJulan Hsu <julanhsu@google.com>
parent f8cfd165
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment