[PATCH] UBI: Add volume read and write statistics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> To: Per F?rlin
> Cc: linux-mtd at lists.infradead.org; Artem Bityutskiy; Per F?rlin
> Subject: Re: [PATCH] UBI: Add volume read and write statistics
> 
> Am Dienstag, 17. Juli 2018, 12:30:19 CEST schrieb Per Forlin:
> > Simple read and write statistics.
> > * Bytes read
> > * Bytes written
> > * Number of reads
> > * Number of writes
> >
> > This is useful to find out how the storage is being utilized.
> > For block devices this already exists via /proc/diskstats.
> > The intention of this patch is to add similar stats
> > for UBI as well.
> 
> Why on UBI level and not MTD?
In my case I wanted to evaluate the performance per volume. I have one MTD
device with several UBI volumes. It would be sufficient to have it on
an MTD level to see the overall storage usage.
This would still be very helpful for me.

Having it on an MTD level is of course more general.
I wouldn't mind changing the patch to add the stats in mtdcore
for mtd_read() and mtd_write()

In case of MTD block devices the stats will be somewhat redundant with
/proc/diskstats.

Do you think I should update the patch to add MTD stats instead?



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux