mm: move page mapped accounting to the node
Reclaim makes decisions based on the number of pages that are mapped but it's mixing node and zone information. Account NR_FILE_MAPPED and NR_ANON_PAGES pages on the node. Link: http://lkml.kernel.org/r/1467970510-21195-18-git-send-email-mgorman@techsingularity.net Signed-off-by:Mel Gorman <mgorman@techsingularity.net> Acked-by:
Vlastimil Babka <vbabka@suse.cz> Acked-by:
Michal Hocko <mhocko@suse.com> Cc: Hillf Danton <hillf.zj@alibaba-inc.com> Acked-by:
Johannes Weiner <hannes@cmpxchg.org> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Rik van Riel <riel@surriel.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/tile/mm/pgtable.c 1 addition, 1 deletionarch/tile/mm/pgtable.c
- drivers/base/node.c 2 additions, 2 deletionsdrivers/base/node.c
- fs/proc/meminfo.c 2 additions, 2 deletionsfs/proc/meminfo.c
- include/linux/mmzone.h 3 additions, 3 deletionsinclude/linux/mmzone.h
- mm/page_alloc.c 3 additions, 3 deletionsmm/page_alloc.c
- mm/rmap.c 7 additions, 7 deletionsmm/rmap.c
- mm/vmscan.c 1 addition, 1 deletionmm/vmscan.c
- mm/vmstat.c 2 additions, 2 deletionsmm/vmstat.c
Loading
Please register or sign in to comment