I am trying to optimize my new fs layout, and I wondered, where is it safe to use noatime
? I understand that e.g. mutt uses the access/creation/modify time, and whatever else may be using that, in whichever dir.
Following a ton of guides, I have partitioned my dirs according to different use-cases, but I don't really know, where is it safe to put noatime?
dirs / flags:
/ defaults
(/bin
/sbin
/lib*
/etc
/root
/dev ...)
/boot defaults
/boot/EFI defaults
/usr defaults,ro,nodev
NOTE: dpkg needs rw
/usr/share defaults,ro,nodev,nosuid
/var defaults,nodev
NOTE: /var/lib/dpkg/info -> exec
/var/tmp defaults,nodev,nosuid,noexec
/var/log defaults,nodev,nosuid,noexec
/opt defaults,nodev
/tmp defaults,nodev,nosuid,noexec
NOTE: some installer may need exec
/home defaults,nodev,nosuid
AFAIK it's the very rare program indeed that relies on atime, and using
noatime
is safe virtually everywhere.The serverfault question Turning off atime on a filesystem says it's basically only mutt (when using an mbox mailbox) and there's an easy workaround anyway, or the very occasional program like tmpwatch or temporary file cleaners:
And using
noatime
could improve performance, perhaps by a lot over the old strictatime (but should still help a little over even today's standardrelatime
, saving every write on a flash/SSD is good):There is an answer on serverfault (Drawbacks of mounting a filesystem with noatime?) saying that for the last 10 years or so, mounting with noatime apparently has no problems: