The Hackosis blog notes a contentious conversation thread between Linux creator Linus Torvalds and a programmer who finds that disabling the atime option, which writes a last-accessed time to every single file that’s accessed by a Linux system, nets some significant performance improvements. If you don’t use any defragmenting or mail-watching apps (like mutt) that rely on atime, you can at least try out disabling atime, and switch back if something goes wrong. Read on for simple instructions on how to do that on a Linux desktop.
sudo -i, on others it’s su -.cp /etc/fstab /etc/fstab.original
gedit /etc/fstabrelatime,errors=remount-ro.noatime,nodiratime
sudo cp /etc/fstab.original /etc/fstab
I’ve tried it out on my Ubuntu 8.04 partition, and it feels like there is some kind of improvement, though with all things hard drive, it’s hard to pin down. If you’re noticing some real kick, or none at all, tell us about it in the comments.
baracuda68
January 19, 2009 at 10:45 AM
I’ve read somewhere online that changing relatime to noatime messes up journaling, and could result in data loss, should there be a crash.
Report PermalinkCan you verify this for me?
Romy Maxwell
March 5, 2009 at 5:19 PM
Just FYI, nodiratime isn’t necessary, noatime covers both files & directories. To verify, consult any Linux kernel source (specifically fs/inode.c)
Report Permalink