Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1449324 > unrolled thread

[PATCH] mm: add per-zone lru list stat -fix

Started byMel Gorman <mgorman@techsingularity.net>
First post2016-07-25 09:30 +0200
Last post2016-07-25 10:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] mm: add per-zone lru list stat -fix Mel Gorman <mgorman@techsingularity.net> - 2016-07-25 09:30 +0200
    Re: [PATCH] mm: add per-zone lru list stat -fix Minchan Kim <minchan@kernel.org> - 2016-07-25 10:10 +0200

#1449324 — [PATCH] mm: add per-zone lru list stat -fix

FromMel Gorman <mgorman@techsingularity.net>
Date2016-07-25 09:30 +0200
Subject[PATCH] mm: add per-zone lru list stat -fix
Message-ID<rYIuR-1Id-9@gated-at.bofh.it>
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

Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
---
 mm/vmstat.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/mm/vmstat.c b/mm/vmstat.c
index e1a46906c61b..89cec42d19ff 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -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",

[toc] | [next] | [standalone]


#1449342

FromMinchan Kim <minchan@kernel.org>
Date2016-07-25 10:10 +0200
Message-ID<rYJ7z-2aj-3@gated-at.bofh.it>
In reply to#1449324
On Mon, Jul 25, 2016 at 08:23:00AM +0100, Mel Gorman wrote:
> 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
> 
> Signed-off-by: Mel Gorman <mgorman@techsingularity.net>

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.

Acked-by: Minchan Kim <minchan@kernel.org>

Thanks.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web