Lots of fastmap writes
Zhihao Cheng
chengzhihao1 at huawei.com
Mon Jun 3 18:52:30 PDT 2024
在 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.
More information about the linux-mtd
mailing list