]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: export zone stats in /proc/*/mountstats
authorHans Holmberg <hans.holmberg@wdc.com>
Sat, 30 Nov 2024 04:53:49 +0000 (05:53 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Feb 2025 04:49:16 +0000 (05:49 +0100)
commitb1fc7dfd9b80328ac22587c7586c73412b4e3cfc
tree8d712ec7e20a6d0899dbe511dd61c6ec1a69e4e9
parentcb396204212a0b9921aa9d32d0e19b2c0350ea50
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]