Re: Lots of fastmap writes

Rickard X Andersson
2024-06-14T11:46:15Z

On 6/4/24 08:47, Richard Weinberger wrote:
> ----- Ursprüngliche Mail -----
>> Von: "chengzhihao1" <chengzhihao1@huawei.com>
>> An: "Rickard x Andersson" <rickaran@axis.com>, "richard" <richard@nod.at>, "linux-mtd" <linux-mtd@lists.infradead.org>
>> CC: "rickard314 andersson" <rickard314.andersson@gmail.com>
>> Gesendet: Dienstag, 4. Juni 2024 03:41:21
>> Betreff: Re: Lots of fastmap writes
>
>> 在 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
>
> Are all of the first 64 LEBs worn out that badly or just one?

All of the first 64 PEBs have approximately the same erase counters, i.e
29600.

Best regards,
Rickard