Re: [PATCH V2 7/7] mm: add a separate RSS for MADV_FREE pages

2017-02-21 Thread Shaohua Li
On Wed, Feb 22, 2017 at 09:46:05AM +0900, Minchan Kim wrote: > Hi Shaohua, > > On Fri, Feb 03, 2017 at 03:33:23PM -0800, Shaohua Li wrote: > > Add a separate RSS for MADV_FREE pages. The pages are charged into > > MM_ANONPAGES (because they are mapped anon pages) and also charged into > > the MM_L

Re: [PATCH V2 7/7] mm: add a separate RSS for MADV_FREE pages

2017-02-21 Thread Minchan Kim
Hi Shaohua, On Fri, Feb 03, 2017 at 03:33:23PM -0800, Shaohua Li wrote: > Add a separate RSS for MADV_FREE pages. The pages are charged into > MM_ANONPAGES (because they are mapped anon pages) and also charged into > the MM_LAZYFREEPAGES. /proc/pid/statm will have an extra field to > display the R

Re: [PATCH V2 7/7] mm: add a separate RSS for MADV_FREE pages

2017-02-21 Thread Michal Hocko
On Fri 10-02-17 10:01:02, Shaohua Li wrote: > On Fri, Feb 10, 2017 at 02:35:05PM +0100, Michal Hocko wrote: > > On Fri 03-02-17 15:33:23, Shaohua Li wrote: > > > Add a separate RSS for MADV_FREE pages. The pages are charged into > > > MM_ANONPAGES (because they are mapped anon pages) and also charg

Re: [PATCH V2 7/7] mm: add a separate RSS for MADV_FREE pages

2017-02-10 Thread Shaohua Li
On Fri, Feb 10, 2017 at 02:35:05PM +0100, Michal Hocko wrote: > On Fri 03-02-17 15:33:23, Shaohua Li wrote: > > Add a separate RSS for MADV_FREE pages. The pages are charged into > > MM_ANONPAGES (because they are mapped anon pages) and also charged into > > the MM_LAZYFREEPAGES. /proc/pid/statm wi

Re: [PATCH V2 7/7] mm: add a separate RSS for MADV_FREE pages

2017-02-10 Thread Michal Hocko
On Fri 03-02-17 15:33:23, Shaohua Li wrote: > Add a separate RSS for MADV_FREE pages. The pages are charged into > MM_ANONPAGES (because they are mapped anon pages) and also charged into > the MM_LAZYFREEPAGES. /proc/pid/statm will have an extra field to > display the RSS, which userspace can use t

[PATCH V2 7/7] mm: add a separate RSS for MADV_FREE pages

2017-02-03 Thread Shaohua Li
Add a separate RSS for MADV_FREE pages. The pages are charged into MM_ANONPAGES (because they are mapped anon pages) and also charged into the MM_LAZYFREEPAGES. /proc/pid/statm will have an extra field to display the RSS, which userspace can use to determine the RSS excluding MADV_FREE pages. The