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

Stanislav Brabec utx at penguin.cz
Mon Mar 16 00:08:08 UTC 2009


Dmitry Artamonow wrote in Sun 03/15 2009 at 23:47 +0300:
> 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.

Good idea. On Zaurus it even prevents regular hard disc waking up while
executing scripts and significantly increases speed of writing of large
amount of small files.

Patching of udev mount.sh script would be useful as well.


________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus





More information about the Openembedded-devel mailing list