Skip to contentSkip to conversation

mm: add per-zone lru list stat -fix

PATCH In review Mel Gorman 2 participants 2 messages Jul 25, 2016

Subsystems (2)
lore
Share & tools
lore

Mel Gorman

author
#0 lore raw

PATCH 1/1 mm: add per-zone lru list stat -fix

This patch renames the zone LRU stats as printed in /proc/vmstat to avoid confusion. This keeps both the node and zone stats which normally will be redundant but should always be roughly in sync.

This is a fix to the mmotm patch mm-add-per-zone-lru-list-stat.patch

---
 mm/vmstat.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
mm/vmstat.c +5 -5
index e1a46906c61b..89cec42d19ff 100644
@@ -921,11 +921,11 @@ int fragmentation_index(struct zone *zone, unsigned int order)
 const char * const vmstat_text[] = {
 	/* enum zone_stat_item countes */
 	"nr_free_pages",
-	"nr_inactive_anon",
-	"nr_active_anon",
-	"nr_inactive_file",
-	"nr_active_file",
-	"nr_unevictable",
+	"nr_zone_inactive_anon",
+	"nr_zone_active_anon",
+	"nr_zone_inactive_file",
+	"nr_zone_active_file",
+	"nr_zone_unevictable",
 	"nr_zone_write_pending",
 	"nr_mlock",
 	"nr_slab_reclaimable",

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Mel Gorman

This patch renames the zone LRU stats as printed in /proc/vmstat to avoid confusion. This keeps both the node and zone stats which normally will be redundant but should always be roughly in sync.

This is a fix to the mmotm patch mm-add-per-zone-lru-list-stat.patch

Actually, I don't have any number to prove how much keeping the stat both zone and node increases performance but I don't object it.

Thanks.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>