relatime何时设为默认设置?


Answers:


13

我记得更改,但不记得日期。这似乎是又回到2007年根据这篇文章,relatime 2.6.20中是可用的,并且它之后的几个版本成为默认选项(2.6.24)可能。

编辑: man mount / relatime说2.6.30。

ChangeLog-2.6.30

commit 0a1c01c9477602ee8b44548a9405b2c1d587b5a2
Author: Matthew Garrett <mjg@redhat.com>
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 <mjg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

嗯,我使用2.6.21的CentOS 5服务器似乎没有Relatime。奇怪。
Monica Cellio的抵制SE

1

从RHEL / CentOS / Scientific Linux版本6开始,relatime mount选项是默认默认选项(请参阅此处)。

如果使用relatime选项,则在以下情况下更新atime:

  1. 旧时间小于mtime / ctime
  2. 自上次一次更新以来已过去至少24小时(在fs / inode.c中进行硬编码)
  3. 索引节点脏了(或文件内容已更改,但是它在缓冲区中,尚未写入物理磁盘)
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.