[RFC] UBI statistics and bitrot interface

Richard Weinberger richard at nod.at
Fri Feb 14 11:19:09 PST 2025


Ashley,

----- Ursprüngliche Mail -----
> Von: "Ashley Herron" <herroash at amazon.com>
>> What kind of metrics are you looking for?
>> Maybe some eBPF/tracing magic will already serve you enough data points?
> 
> The goal is to capture similar data as eMMC and UFS devices report regarding
> total bytes written to the block device. So I want to capture total (payload)
> bytes written by callers to the UBI layer, not including UBI overhead (headers,
> wear leveling). This is for the purpose of monitoring and identifying any
> pattern of excessive writing on devices in operation that may effect its
> lifetime. We may want to monitor total writes to a UBI device over a 24 hour
> periods or less, so only using erase counter monitoring doesn't give us the
> level of monitoring we require. We write to some UBI volumes using UBIFS
> and others using UBI IO directly. I was planning to add (or request you add) a
> wc (write count) variable to the current struct with ec and rc in this patchset.

Maybe this stale patch helps:
https://patchwork.ozlabs.org/project/linux-mtd/patch/1532360342-52055-1-git-send-email-perfn@axis.com/

As far as I remember, the submitter never answered nor block layer folks spoke up.
Hope this helps!

Thanks,
//richard



More information about the linux-mtd mailing list