Actual number of writes to a MTD device
Atlant Schmidt
aschmidt at dekaresearch.com
Mon Apr 25 06:47:15 EDT 2011
Kartik:
I don't know if the UBI or MTD layers keep such
statistics directly, but over time, you can
certainly *INFER* such statistics: just watch
the erase counters. Because no flash area can
be written more than once without erasing, you
can be sure that if you see the sum of all of
the erase counters increase by "n", then you have
written approximately (n * bytes_per_LEB) bytes
of data.
This is only valid when measured over a reasonably
long time, of course. Over a short time, there's
too much "noise" in the signal because slight
variations in the LEB-to-PEB mapping can cause
big variations in exactly when erase blocks get
erased.
Atlant
-----Original Message-----
From: linux-mtd-bounces at lists.infradead.org [mailto:linux-mtd-bounces at lists.infradead.org] On Behalf Of Kartik Nagar
Sent: Saturday, April 23, 2011 08:56
To: linux-mtd at lists.infradead.org
Subject: Actual number of writes to a MTD device
Hi,
I am using UBIFS on top of UBI on top of a MTD partition and then running some
workloads on the UBIFS filesystem. I actually want to determine the write
amplification factor for the workload, for which i need the actual number of
writes going to the MTD device. Do UBIFS/MTD systems record such statistics, or
will I have to make changes to the source code to obtain the statistics?
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.
Thank you.
Please consider the environment before printing this email.
More information about the linux-mtd
mailing list