linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@kernel.org>
To: Xishi Qiu <qiuxishi@huawei.com>
Cc: Aaron Lu <aaron.lu@intel.com>, Linux MM <linux-mm@kvack.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: why the count nr_file_pages is not equal to nr_inactive_file + nr_active_file ?
Date: Mon, 16 May 2016 13:16:26 +0200	[thread overview]
Message-ID: <20160516111626.GG23146@dhcp22.suse.cz> (raw)
In-Reply-To: <57399A84.20205@huawei.com>

On Mon 16-05-16 18:01:40, Xishi Qiu wrote:
> On 2016/5/16 17:57, Michal Hocko wrote:
> 
> > [Sorry I haven't noticed this answer before]
> > 
> > On Fri 13-05-16 15:31:42, Xishi Qiu wrote:
> >> On 2016/5/13 15:00, Aaron Lu wrote:
> >>
> >> Hi Aaron,
> >>
> >> Thanks for your reply, but I find the count of nr_shmem is very small
> >> in my system.
> > 
> > which kernel version is this? I remember that we used to account thp
> > pages as NR_FILE_PAGE as well in the past.
> > 
> > I didn't get to look at your number more closely though.
> 
> Hi Michal,
> 
> It's android kernel, v3.10
> I think the thp config is off.

Ble. Not enough sleep. I didn't mean thp but hugetlb pages. Sorry about
the confusion. If even that is not the case then there is either an
accounting bug or some fs doesn't put pages in the pagecache directly to
the LRUs or thos pages are on unevictable list.
-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2016-05-16 11:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-13  3:58 Xishi Qiu
2016-05-13  7:00 ` Aaron Lu
2016-05-13  7:31   ` Xishi Qiu
2016-05-16  9:57     ` Michal Hocko
2016-05-16 10:01       ` Xishi Qiu
2016-05-16 11:16         ` Michal Hocko [this message]
2016-05-16  9:31 ` Michal Hocko
2016-05-16  9:58   ` Xishi Qiu

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=20160516111626.GG23146@dhcp22.suse.cz \
    --to=mhocko@kernel.org \
    --cc=aaron.lu@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=qiuxishi@huawei.com \
    /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