In the light of emmc wearout monitoring I'm wondering about the size as displayed inside a running Linux OS. An emmc chip has an internal manager which keeps track of the usage intensity of all the different byte registers. In theory, a flash device like SSD, USB stick or emmc chip should shrink in capacity when the end of live limits are being reached.
$ lsblk -b
.. returns the blocksizes in bytes like this:
If the capacity and therefore the size of the whole emmc image goes down, does this figure update itself automatically?
Are there any other tools which can achieve a real time representation of the actual available blocksize?
Edit: After the comments from @Marcus and @Artem
An emmc driver has this virtual file system entry where an "End Of Life" indication has been implemented. If I'm not mistaken 0x02 stands for 80% loss of capacity size, 0x03 stands for 90% loss of capacity size. This is kind of late to realize your emmc is gone, so I'm searching for a way to indicate this crucial information at an earlier stage.
look at : cat /sys/class/block/mmcblk1/device/pre_eol_info
