[SRU][N/O:linux-intel][PATCH 1/4] mm: print the promo watermark in zoneinfo
Thibault Ferrante
thibault.ferrante at canonical.com
Tue Mar 18 16:30:02 UTC 2025
From: Kaiyang Zhao <kaiyang2 at cs.cmu.edu>
BugLink: https://bugs.launchpad.net/bugs/2103530
Print the promo watermark in zoneinfo just like other watermarks. This
helps users check and verify all the watermarks are appropriate.
Link: https://lkml.kernel.org/r/20240801232548.36604-3-kaiyang2@cs.cmu.edu
Signed-off-by: Kaiyang Zhao <kaiyang2 at cs.cmu.edu>
Cc: Johannes Weiner <hannes at cmpxchg.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
(cherry picked from commit d7f77d7bf6cd2a59186b6ae8affc5862ff05fb41 https://github.com/intel/kernel-downstream)
Signed-off-by: Thibault Ferrante <thibault.ferrante at canonical.com>
---
mm/vmstat.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/vmstat.c b/mm/vmstat.c
index b8efd2826c40a..60ba6b696df5e 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -1718,6 +1718,7 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat,
"\n min %lu"
"\n low %lu"
"\n high %lu"
+ "\n promo %lu"
"\n spanned %lu"
"\n present %lu"
"\n managed %lu"
@@ -1727,6 +1728,7 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat,
min_wmark_pages(zone),
low_wmark_pages(zone),
high_wmark_pages(zone),
+ promo_wmark_pages(zone),
zone->spanned_pages,
zone->present_pages,
zone_managed_pages(zone),
--
2.45.2
More information about the kernel-team
mailing list