Re: [PATCH] mm: rmap: fix huge file mmap accounting in the memcg stats

2017-03-28 Thread Michal Hocko
On Tue 21-03-17 20:51:11, Johannes Weiner wrote: > Huge pages are accounted as single units in the memcg's "file_mapped" > counter. Account the correct number of base pages, like we do in the > corresponding node counter. > > Signed-off-by: Johannes Weiner with the CC: stable Acked-by: Michal H

Re: [PATCH] mm: rmap: fix huge file mmap accounting in the memcg stats

2017-03-24 Thread Johannes Weiner
On Fri, Mar 24, 2017 at 02:07:55PM +0300, Kirill A. Shutemov wrote: > On Tue, Mar 21, 2017 at 08:51:11PM -0400, Johannes Weiner wrote: > > Huge pages are accounted as single units in the memcg's "file_mapped" > > counter. Account the correct number of base pages, like we do in the > > corresponding

Re: [PATCH] mm: rmap: fix huge file mmap accounting in the memcg stats

2017-03-24 Thread Kirill A. Shutemov
On Tue, Mar 21, 2017 at 08:51:11PM -0400, Johannes Weiner wrote: > Huge pages are accounted as single units in the memcg's "file_mapped" > counter. Account the correct number of base pages, like we do in the > corresponding node counter. > > Signed-off-by: Johannes Weiner Sorry for missing that:

[PATCH] mm: rmap: fix huge file mmap accounting in the memcg stats

2017-03-21 Thread Johannes Weiner
Huge pages are accounted as single units in the memcg's "file_mapped" counter. Account the correct number of base pages, like we do in the corresponding node counter. Signed-off-by: Johannes Weiner --- include/linux/memcontrol.h | 6 ++ mm/rmap.c | 4 ++-- 2 files changed, 8