Re: [PATCH v1] ext4: add mb_stats_clear for mballoc statistics
From: liubaolin
Date: Thu Apr 16 2026 - 03:09:16 EST
Dear ojaswin,
Alright, thank you for your review. I will revise the patch according to Andreas's comments and submit a second version. When submitting the second version, I will also update the relevant files under the Documentation directory according to your suggestions to add explanations.
Regards,
Baolin
在 2026/4/16 3:26, Ojaswin Mujoo 写道:
On Tue, Apr 14, 2026 at 06:02:11PM +0800, Baolin Liu wrote:
From: Baolin Liu <liubaolin@xxxxxxxxxx>
Add a write-only mb_stats_clear sysfs knob to reset ext4 mballoc
runtime statistics.This makes it easier to inspect allocator
activity for a specific workload instead of using counters
accumulated since mount.
Signed-off-by: Baolin Liu <liubaolin@xxxxxxxxxx>
The patch looks good to me Baolin. We just need to add documentation of
this to the Documentation/ABI/testing/sysfs-fs-ext4 file so that the
users know what it is and the fact that the only value we allow to write
is 1.
Regards,
ojaswin