diff options
author | Minchan Kim <minchan@kernel.org> | 2016-07-28 18:47:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-28 19:07:41 -0400 |
commit | 33e077bd6059a5589de879c30b4b5a0256d0319b (patch) | |
tree | 7e12dfc7ace845afcb2ef755380219b6a938a0ff /mm/page_alloc.c | |
parent | 68eb0731c4ce1d64aa59b244abae4e72300719b6 (diff) |
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.
[minchan@kernel.org: fix node_pages_scanned]
Link: http://lkml.kernel.org/r/20160716101431.GA10305@bbox
Link: http://lkml.kernel.org/r/1468588165-12461-5-git-send-email-mgorman@techsingularity.net
Signed-off-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index f1b5a0bc11f2..ffd4fdbae8b5 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -4313,6 +4313,7 @@ void show_free_areas(unsigned int filter) | |||
4313 | #endif | 4313 | #endif |
4314 | " writeback_tmp:%lukB" | 4314 | " writeback_tmp:%lukB" |
4315 | " unstable:%lukB" | 4315 | " unstable:%lukB" |
4316 | " pages_scanned:%lu" | ||
4316 | " all_unreclaimable? %s" | 4317 | " all_unreclaimable? %s" |
4317 | "\n", | 4318 | "\n", |
4318 | pgdat->node_id, | 4319 | pgdat->node_id, |
@@ -4335,6 +4336,7 @@ void show_free_areas(unsigned int filter) | |||
4335 | K(node_page_state(pgdat, NR_SHMEM)), | 4336 | K(node_page_state(pgdat, NR_SHMEM)), |
4336 | K(node_page_state(pgdat, NR_WRITEBACK_TEMP)), | 4337 | K(node_page_state(pgdat, NR_WRITEBACK_TEMP)), |
4337 | K(node_page_state(pgdat, NR_UNSTABLE_NFS)), | 4338 | K(node_page_state(pgdat, NR_UNSTABLE_NFS)), |
4339 | node_page_state(pgdat, NR_PAGES_SCANNED), | ||
4338 | !pgdat_reclaimable(pgdat) ? "yes" : "no"); | 4340 | !pgdat_reclaimable(pgdat) ? "yes" : "no"); |
4339 | } | 4341 | } |
4340 | 4342 | ||
@@ -4365,7 +4367,6 @@ void show_free_areas(unsigned int filter) | |||
4365 | " free_pcp:%lukB" | 4367 | " free_pcp:%lukB" |
4366 | " local_pcp:%ukB" | 4368 | " local_pcp:%ukB" |
4367 | " free_cma:%lukB" | 4369 | " free_cma:%lukB" |
4368 | " node_pages_scanned:%lu" | ||
4369 | "\n", | 4370 | "\n", |
4370 | zone->name, | 4371 | zone->name, |
4371 | K(zone_page_state(zone, NR_FREE_PAGES)), | 4372 | K(zone_page_state(zone, NR_FREE_PAGES)), |
@@ -4383,8 +4384,7 @@ void show_free_areas(unsigned int filter) | |||
4383 | K(zone_page_state(zone, NR_BOUNCE)), | 4384 | K(zone_page_state(zone, NR_BOUNCE)), |
4384 | K(free_pcp), | 4385 | K(free_pcp), |
4385 | K(this_cpu_read(zone->pageset->pcp.count)), | 4386 | K(this_cpu_read(zone->pageset->pcp.count)), |
4386 | K(zone_page_state(zone, NR_FREE_CMA_PAGES)), | 4387 | K(zone_page_state(zone, NR_FREE_CMA_PAGES))); |
4387 | K(node_page_state(zone->zone_pgdat, NR_PAGES_SCANNED))); | ||
4388 | printk("lowmem_reserve[]:"); | 4388 | printk("lowmem_reserve[]:"); |
4389 | for (i = 0; i < MAX_NR_ZONES; i++) | 4389 | for (i = 0; i < MAX_NR_ZONES; i++) |
4390 | printk(" %ld", zone->lowmem_reserve[i]); | 4390 | printk(" %ld", zone->lowmem_reserve[i]); |