Re: f2fs: set *_data_age_threshold according to user_block_count

From: qixiaoyu
Date: Sun Jan 29 2023 - 06:47:28 EST


On Tue, Jan 17, 2023 at 09:38:14PM +0800, Yangtao Li wrote:
> Hi qixiaoyu,
>
> > The block age here refers to total data blocks allocated of filesystem between two consecutive updates.
>
> Yes, you are right.
>
> > So, it has nothing to do with storage size.
>
> But I think that the total data blocks allocated of filesystem between two consecutive updates
> has something to do with the storage size. For example, for a 60M f2fs image, the lifetime_write_kbytes
> will hardly reach 10G, or even 1G.
>
> Thx,
> Yangtao

Hi Yangtao,

Block update frequency may related to applications and usage patterns,
not storage size. A 1G f2fs image may have a similar block age to a
10G f2fs image when running the same program.

So, it might not be a good idea to decide the *_data_age_threshold
based on user_block_count.

Thanks,