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

Dmitry Artamonow mad_soft at inbox.ru
Sun Mar 29 10:39:58 UTC 2009


On 01:08 Mon 16 Mar     , Stanislav Brabec wrote:
> 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.

If there's no objections, can somebody apply this?
(hint: I don't have a commit rights)

I can send updated patch if needed - though changing 'packages' to
'recipes' with sed shouldn't be too hard:
 sed -i 's:a/packages/:a/recipes/:g' *.patch
 sed -i 's:b/packages/:b/recipes/:g' *.patch

> 
> 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.

Yes. I'll try too look into this.

-- 
Best regards,
Dmitry "MAD" Artamonow





More information about the Openembedded-devel mailing list