Skip to content

Commit 33e077b

Browse files
minchanktorvalds
authored andcommitted
mm: show node_pages_scanned per node, not zone
The node_pages_scanned represents the number of scanned pages of node for reclaim so it's pointless to show it as kilobytes. As well, node_pages_scanned is per-node value, not per-zone. This patch changes node_pages_scanned per-zone-killobytes with per-node-count. [[email protected]: fix node_pages_scanned] Link: http://lkml.kernel.org/r/20160716101431.GA10305@bbox Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Minchan Kim <[email protected]> Signed-off-by: Mel Gorman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 68eb073 commit 33e077b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mm/page_alloc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4313,6 +4313,7 @@ void show_free_areas(unsigned int filter)
43134313
#endif
43144314
" writeback_tmp:%lukB"
43154315
" unstable:%lukB"
4316+
" pages_scanned:%lu"
43164317
" all_unreclaimable? %s"
43174318
"\n",
43184319
pgdat->node_id,
@@ -4335,6 +4336,7 @@ void show_free_areas(unsigned int filter)
43354336
K(node_page_state(pgdat, NR_SHMEM)),
43364337
K(node_page_state(pgdat, NR_WRITEBACK_TEMP)),
43374338
K(node_page_state(pgdat, NR_UNSTABLE_NFS)),
4339+
node_page_state(pgdat, NR_PAGES_SCANNED),
43384340
!pgdat_reclaimable(pgdat) ? "yes" : "no");
43394341
}
43404342

@@ -4365,7 +4367,6 @@ void show_free_areas(unsigned int filter)
43654367
" free_pcp:%lukB"
43664368
" local_pcp:%ukB"
43674369
" free_cma:%lukB"
4368-
" node_pages_scanned:%lu"
43694370
"\n",
43704371
zone->name,
43714372
K(zone_page_state(zone, NR_FREE_PAGES)),
@@ -4383,8 +4384,7 @@ void show_free_areas(unsigned int filter)
43834384
K(zone_page_state(zone, NR_BOUNCE)),
43844385
K(free_pcp),
43854386
K(this_cpu_read(zone->pageset->pcp.count)),
4386-
K(zone_page_state(zone, NR_FREE_CMA_PAGES)),
4387-
K(node_page_state(zone->zone_pgdat, NR_PAGES_SCANNED)));
4387+
K(zone_page_state(zone, NR_FREE_CMA_PAGES)));
43884388
printk("lowmem_reserve[]:");
43894389
for (i = 0; i < MAX_NR_ZONES; i++)
43904390
printk(" %ld", zone->lowmem_reserve[i]);

0 commit comments

Comments
 (0)