Re: why the count nr_file_pages is not equal to nr_inactive_file + nr_active_file ?

From: Michal Hocko
Date: Mon May 16 2016 - 05:32:25 EST


On Fri 13-05-16 11:58:16, Xishi Qiu wrote:
> I find the count nr_file_pages is not equal to nr_inactive_file + nr_active_file.
> There are 8 cpus, 2 zones in my system.

Because they count shmem pages as well and those are living on the anon
lru list (see shmem_add_to_page_cache).
--
Michal Hocko
SUSE Labs