linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Colascione <dancol@google.com>
To: linux-mm@kvack.org
Subject: Discrepancy between sum of smaps rss and process rss
Date: Mon, 29 Jan 2018 15:25:56 -0800	[thread overview]
Message-ID: <CAKOZuevLegEQgaVxAtRS=-5XH5x2Q3DasL9oKJbJ6NuTeDmsQQ@mail.gmail.com> (raw)

[-- 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 --]

                 reply	other threads:[~2018-01-29 23:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKOZuevLegEQgaVxAtRS=-5XH5x2Q3DasL9oKJbJ6NuTeDmsQQ@mail.gmail.com' \
    --to=dancol@google.com \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox