Commit f8780515 authored by MengEn Sun's avatar MengEn Sun Committed by Andrew Morton
Browse files

mm: add pcp high_min high_max to proc zoneinfo

When we do not set percpu_pagelist_high_fraction the kernel will compute
the pcp high_min/max by itself, which makes it hard to determine the
current high_min/max values.

So output the pcp high_min/max values to /proc/zoneinfo.

Link: https://lkml.kernel.org/r/20241010120935.656619-1-mengensun@tencent.com


Signed-off-by: default avatarMengEn Sun <mengensun@tencent.com>
Reviewed-by: default avatarJinliang Zheng <alexjlzheng@tencent.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 002c5d1c
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -1793,11 +1793,15 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat,
			   "\n    cpu: %i"
			   "\n              count:    %i"
			   "\n              high:     %i"
			   "\n              batch: %i",
			   "\n              batch:    %i"
			   "\n              high_min: %i"
			   "\n              high_max: %i",
			   i,
			   pcp->count,
			   pcp->high,
			   pcp->batch);
			   pcp->batch,
			   pcp->high_min,
			   pcp->high_max);
#ifdef CONFIG_SMP
		pzstats = per_cpu_ptr(zone->per_cpu_zonestats, i);
		seq_printf(m, "\n  vm stats threshold: %d",