From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753741AbcEPLQa (ORCPT ); Mon, 16 May 2016 07:16:30 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:37739 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752049AbcEPLQ3 (ORCPT ); Mon, 16 May 2016 07:16:29 -0400 Date: Mon, 16 May 2016 13:16:26 +0200 From: Michal Hocko To: Xishi Qiu Cc: Aaron Lu , Linux MM , LKML Subject: Re: why the count nr_file_pages is not equal to nr_inactive_file + nr_active_file ? Message-ID: <20160516111626.GG23146@dhcp22.suse.cz> References: <573550D8.9030507@huawei.com> <573582DE.3030302@huawei.com> <20160516095720.GB23251@dhcp22.suse.cz> <57399A84.20205@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57399A84.20205@huawei.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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