ext4 defaults and access time

Rick Stevens ricks at nerd.com
Wed Feb 3 01:10:43 UTC 2010


On 02/02/2010 02:08 PM, Roberto Ragusa wrote:
> Andras Simon wrote:
>> On 2/2/10, Roberto Ragusa<mail at robertoragusa.it>  wrote:
>>> Andras Simon wrote:
>>>> All my partitions are ext4 and mounted with ext4 defaults from fstab.
>>>> Still, sometimes it's as if noatime was used:
>>> Defaults are sometimes surprising.
>>> Let's have a look at
>>>    cat /proc/mount
>>
>> I think you're onto something...
>>
>> /dev/sda5 /home ext4 rw,seclabel,relatime,barrier=1,data=ordered 0 0
>>
>> I definitely don't want relatime there. Would something like
>>
>> .... ext4    defaults,atime ....
>>
>> in fstab get rid of this?
>
> There is a norelatime option, but it could be not enough.
>
> I had this kind of problem some time ago and Kevin Fenzi told me
> how to do it:
>
> http://marc.info/?l=fedora-devel-list&m=121542196521553&w=2
> http://marc.info/?l=fedora-devel-list&m=121545811619620&w=2

Try adding "strictatime" to the fstab options.  This permits overriding
any kernel defaults (e.g. ext4 defaulting to "relatime").
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer                      ricks at nerd.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
- Real Time, adj.: Here and now, as opposed to fake time, which only -
-                        occurs there and then                       -
----------------------------------------------------------------------


More information about the users mailing list