linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: print the promo watermark in zoneinfo
@ 2024-08-01 18:22 kaiyang2
  2024-08-01 18:54 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: kaiyang2 @ 2024-08-01 18:22 UTC (permalink / raw)
  To: linux-mm; +Cc: akpm, hannes, Kaiyang Zhao

From: Kaiyang Zhao <kaiyang2@cs.cmu.edu>

Printing the promo watermark in zoneinfo just like other watermarks.
This helps users check and verify all the watermarks are appropriate.

Signed-off-by: Kaiyang Zhao <kaiyang2@cs.cmu.edu>
---
 mm/vmstat.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mm/vmstat.c b/mm/vmstat.c
index 5082431dad28..2bf95b00489f 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -1725,6 +1725,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"
@@ -1734,6 +1735,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),
+		   wmark_pages(zone, WMARK_PROMO),
 		   zone->spanned_pages,
 		   zone->present_pages,
 		   zone_managed_pages(zone),
-- 
2.43.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-01 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-01 18:22 [PATCH] mm: print the promo watermark in zoneinfo kaiyang2
2024-08-01 18:54 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox