[OpenWrt-Devel] How to track IO usage of internal flash mtd partitions?

valent.turkovic at gmail.com valent.turkovic at gmail.com
Mon May 18 07:57:51 EDT 2015


Looks like iostat only tracks block devices so I can see change for
usb flash device but no change for internal flash partitions :(

# iostat
Linux 3.10.49 (Demo36_Muc (Base9)) 05/18/15 _mips_ (1 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           5.34    0.00    1.47    0.00    0.00   93.19

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
mtdblock0         0.00         0.00         0.00        208          0
mtdblock1         0.00         0.00         0.00        208          0
mtdblock2         0.00         0.00         0.00        208          0
mtdblock3         0.00         0.00         0.00        208          0
mtdblock4         0.00         0.04         0.00      12240          0
mtdblock5         0.00         0.00         0.00        208          0
mtdblock6         0.00         0.00         0.00        208          0
mmcblk0           0.02         0.03         0.21       9786      69721


Any ideas?

On 18 May 2015 at 11:45, José Vázquez <ppvazquezfer at gmail.com> wrote:
> Try iostat (selectable in busybox). Maybe is what are you looking for.
>
> 2015-05-17 0:40 GMT+02:00, valent.turkovic at gmail.com
> <valent.turkovic at gmail.com>:
>> Here is some interesting info I found using mtdinfo tool:
>>
>> # mtdinfo /dev/mtd5
>> mtd5
>> Name:                           rootfs_data
>> Type:                           nor
>> Eraseblock size:                65536 bytes, 64.0 KiB
>> Amount of eraseblocks:          104 (6815744 bytes, 6.5 MiB)
>> Minimum input/output unit size: 1 byte
>> Sub-page size:                  1 byte
>> Character device major/minor:   90:10
>> Bad blocks are allowed:         false
>> Device is writable:             true
>>
>> So I see there are 104 eraseblocks on this partition. Interesting so
>> see finaly some numbers. Now how to see how many times these
>> eraseblock were issued "erase eraseblock" command?
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list