What is the first Linux kernel release to set
relatime as the default mount option?
I remember the change, but couldn't remember the date.
It seems that it was back in 2007.
According to the article, relatime was available in 2.6.20, and it became the default option a few versions after that
man mount /relatime says 2.6.30.
commit 0a1c01c9477602ee8b44548a9405b2c1d587b5a2 Author: Matthew Garrett <firstname.lastname@example.org> Date: Thu Mar 26 17:53:14 2009 +0000 Make relatime default Change the default behaviour of the kernel to use relatime for all filesystems. This can be overridden with the "strictatime" mount option. Signed-off-by: Matthew Garrett <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
relatime mount option is default default since RHEL/CentOS/Scientific Linux version 6 (see here).
If relatime option is used, the atime is updated when:
- old atime is <= than mtime/ctime
- at least 24 hours (hardcoded in fs/inode.c) have passed since the last atime update
- inode is dirty (or the file contents have been changed but it’s in the buffer and have not been written to the physical disk yet)