* Discrepancy between sum of smaps rss and process rss
@ 2018-01-29 23:25 Daniel Colascione
0 siblings, 0 replies; only message in thread
From: Daniel Colascione @ 2018-01-29 23:25 UTC (permalink / raw)
To: linux-mm
[-- Attachment #1: Type: text/plain, Size: 870 bytes --]
Hi linux-mm,
Do we expect the reporter process-wide RSS figure to differ from that of
the sum of the RSS fields of the individual VMAs as reported via smaps?
They're tracked very differently: the former is the sum
of MM_FILEPAGES, MM_ANONPAGES, and MM_SHMEMPAGES, while the latter comes
from counting pages in smaps_pte_entry (huge pages don't appear in this
context). The sum of the smaps rss fields is sometimes larger than the
counter-based values from status. Same with the anonymous sizes and the new
anonymous RSS in status.
Weirdly, I can't reproduce the discrepancy in a minimal UML boot with
init=/bin/sh (either with 4.4.88 or with latest master), but I can see this
discrepancy appear on both Android systems and normal Ubuntu 14.04 systems.
Before I spend more time debugging: is there something obvious that I
missed? Where should I be looking?
Thanks!
[-- Attachment #2: Type: text/html, Size: 1003 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-29 23:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-29 23:25 Discrepancy between sum of smaps rss and process rss Daniel Colascione
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox