[oe] [PATCH/RFC] base-files: add noatime to rootfs mount options

Dmitry Artamonow mad_soft at inbox.ru
Sat Apr 4 09:09:46 UTC 2009


On 13:48 Sun 29 Mar     , Koen Kooi wrote:
> On 15-03-09 21:47, Dmitry Artamonow wrote:
>> In most machines' fstabs rootfs mounted with 'defaults' option.
>> This implies that atime logging is on - i.e. on every read from
>> filesystem kernel writes atime stamp to files' metadata.
>> Here in embedded world, where rootfs is usually stored on some
>> kind of flash (internal NAND/NOR, or external SD/MMC/CF card)
>> it is a real problem, because higher number of writes causes
>> flash wearing, higher system load and higher chance of filesystem
>> corruption.
>>
>> Fix it by adding noatime to rootfs mount options in fstab.
>
> Isn't 'relatime' a better option?

Maybe yes, but we need more care in this case, because relatime has
been introduced in 2.6.20 [1], and there's still can be machines using
older kernels (judging solely by looking at the recipes in recipes/linux).
I fear that we may break booting on these machines by passing
unsupported option to mount.

[1] http://kernelnewbies.org/Linux_2_6_20#head-6804816ab4f07548635032afbedd3e1f4eb3d1d7

> regards,
>
> Koen
>

-- 
Best regards,
Dmitry "MAD" Artamonow





More information about the Openembedded-devel mailing list