Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: vmstat: output reserved_highatomic and free_highatomic in zoneinfo

The nr_free_highatomic is a key factor in calculating watermarks as it
affects the free pages count. Adding this metric, along with
nr_reserved_highatomic, to /proc/zoneinfo facilitates easier diagnosis
memory watermark calculations and memory pressure states.

Sample output:
cat /proc/zoneinfo
......
pagesets
cpu: 0
count: 52069
high: 52675
batch: 63
high_min: 13971
high_max: 62284
vm stats threshold: 10
node_unreclaimable: 0
start_pfn: 4096
reserved_highatomic: 5120
free_highatomic: 2081

Link: https://lkml.kernel.org/r/20251027141818.283587-1-jiayuan.chen@linux.dev
Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Cc: David Hildenbrand <david@redhat.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Jiayuan Chen and committed by
Andrew Morton
6af766c8 272239dc

+6 -2
+6 -2
mm/vmstat.c
··· 1852 1852 } 1853 1853 seq_printf(m, 1854 1854 "\n node_unreclaimable: %u" 1855 - "\n start_pfn: %lu", 1855 + "\n start_pfn: %lu" 1856 + "\n reserved_highatomic: %lu" 1857 + "\n free_highatomic: %lu", 1856 1858 atomic_read(&pgdat->kswapd_failures) >= MAX_RECLAIM_RETRIES, 1857 - zone->zone_start_pfn); 1859 + zone->zone_start_pfn, 1860 + zone->nr_reserved_highatomic, 1861 + zone->nr_free_highatomic); 1858 1862 seq_putc(m, '\n'); 1859 1863 } 1860 1864