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

2016-05-16 Thread Michal Hocko
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

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

2016-05-16 Thread Michal Hocko
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

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

2016-05-16 Thread Xishi Qiu
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

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

2016-05-16 Thread Xishi Qiu
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

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

2016-05-16 Thread Xishi Qiu
On 2016/5/16 17:31, Michal Hocko wrote: > 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 >

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

2016-05-16 Thread Xishi Qiu
On 2016/5/16 17:31, Michal Hocko wrote: > 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 >

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

2016-05-16 Thread Michal Hocko
[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

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

2016-05-16 Thread Michal Hocko
[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

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

2016-05-16 Thread Michal Hocko
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

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

2016-05-16 Thread Michal Hocko
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

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

2016-05-13 Thread Xishi Qiu
On 2016/5/13 15:00, Aaron Lu wrote: > On 05/13/2016 11:58 AM, 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. >> >> I think may be the pagevec trigger the problem, but PAGEVEC_SIZE is only 14. >>

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

2016-05-13 Thread Xishi Qiu
On 2016/5/13 15:00, Aaron Lu wrote: > On 05/13/2016 11:58 AM, 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. >> >> I think may be the pagevec trigger the problem, but PAGEVEC_SIZE is only 14. >>

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

2016-05-13 Thread Aaron Lu
On 05/13/2016 11:58 AM, 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. > > I think may be the pagevec trigger the problem, but PAGEVEC_SIZE is only 14. > Does anyone know the reason? One thing I

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

2016-05-13 Thread Aaron Lu
On 05/13/2016 11:58 AM, 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. > > I think may be the pagevec trigger the problem, but PAGEVEC_SIZE is only 14. > Does anyone know the reason? One thing I

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

2016-05-12 Thread Xishi Qiu
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. I think may be the pagevec trigger the problem, but PAGEVEC_SIZE is only 14. Does anyone know the reason? Thanks, Xishi Qiu root@hi3650:/ # cat /proc/vmstat nr_free_pages

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

2016-05-12 Thread Xishi Qiu
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. I think may be the pagevec trigger the problem, but PAGEVEC_SIZE is only 14. Does anyone know the reason? Thanks, Xishi Qiu root@hi3650:/ # cat /proc/vmstat nr_free_pages