iotop like tool for mtd devices

Marc Kleine-Budde mkl at
Wed Feb 7 11:31:07 PST 2018

On 02/07/2018 07:21 PM, Marc Kleine-Budde wrote:
> On 02/07/2018 02:40 PM, Marc Kleine-Budde wrote:
>> as iotop doesn't work on (NAND) mtd devices, is there a tool, or an API
>> to query the number of read or written bytes per mtd?
> For the record: switching on all the needed kernel config options as
> stated in the iotop manpage helps a lot.


The kernel makes the information available at /proc/$$/io. However
"read_bytes" and "write_bytes" seems not to be accurate for mtd devices.

Poking around a bit in the kernel code makes me wonder if some
task_io_account_read(), task_io_account_write() at the right places
would make the accounting better?


Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  |   |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the linux-mtd mailing list