]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: export zone stats in /proc/*/mountstats xfs-zoned-2025-01-08
authorHans Holmberg <hans.holmberg@wdc.com>
Sat, 30 Nov 2024 04:53:49 +0000 (05:53 +0100)
committerChristoph Hellwig <hch@lst.de>
Sun, 8 Dec 2024 13:28:13 +0000 (21:28 +0800)
commit4f7b384cea393b642f45aae6eae08034080ec8e4
treeb445a1167dbfc4c628b9c59cc40994a20162464c
parentdb85efe5d1c04f77e3e807accd6018ceeed335d3
xfs: export zone stats in /proc/*/mountstats

Add the per-zone life time hint and the used block distribution
for fully written zones, grouping reclaimable zones in fixed-percentage
buckets spanning 0..9%, 10..19% and full zones as 100% used as well as a
few statistics about the zone allocator and open and reclaimable zones
in /proc/*/mountstats.

This gives good insight into data fragmentation and data placement
success rate.

Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com>
Co-developed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/Makefile
fs/xfs/xfs_super.c
fs/xfs/xfs_zone_alloc.h
fs/xfs/xfs_zone_info.c [new file with mode: 0644]