Lots of fastmap writes

Rickard X Andersson rickaran at axis.com
Fri Jun 14 04:42:36 PDT 2024


On 6/4/24 03:52, Zhihao Cheng wrote:
> 在 2024/6/4 9:41, Zhihao Cheng 写道:
>> 在 2024/6/3 16:55, Rickard x Andersson 写道:
>>> Hi,
>>>
>>> I have a system running Linux 5.10 which logs quite a lot to a 
>>> database. The system has been running OK since before Christmas but 
>>> now it usually fails after a few hours with errors like these:
>>>
>>> May  6 22:29:58 172.26.203.90   warning ubi2 warning: ubi_io_read: 
>>> error -74 (ECC error) while reading 58 bytes from PEB 1:230872, read 
>>> only 58 bytes, retry
>>> May  7 00:11:08 172.26.203.90   warning ubi2 warning: ubi_io_read: 
>>> error -74 (ECC error) while reading 58 bytes from PEB 40:239752, read 
>>> only 58 bytes, retry
>>> May  7 00:11:08 172.26.203.90   err     ubi2 error: ubi_io_read: 
>>> error -74 (ECC error) while reading 58 bytes from PEB 40:239752, read 
>>> 58 bytes
>>>
>>> Fastmap is used on this system. The ECC errors are usually in the 
>>> fastmap area, erase blocks 0- 63.
>>>
>>> When looking more closely at the erase counters they look something 
>>> like this:
>>>
>>> 0 - 63: 29600
>>> 64 - 2043: 2200
>>
>> Try this series of patches 
>> https://lore.kernel.org/linux-mtd/20230812080005.3162125-2-chengzhihao1@huawei.com/T/
> 
> BTW, after applying the patches, the kernel should run on a new flash, 
> the improved wear-leveling algorithm cannot rescue the worn out image.
> 

Thanks for the patches!

I have backported the patches to Linux kernel 6.1. Do you think the 
patches are safe to apply to Linux kernel 6.1?

Another thing, would it not be possible to rescue that particular worn 
out device by simply turning fastmap off on that device?

Best regards,
Rickard



More information about the linux-mtd mailing list