Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Oct 2023 10:50:30 +0100
From:      Guido Falsi <mad@madpilot.net>
To:        stable@freebsd.org
Subject:   Re: periodic daily takes a very long time to run (14-stable)
Message-ID:  <06636139-bb9c-4726-a430-3166d216517b@madpilot.net>
In-Reply-To: <ZT2SA0JaPfvWmJHQ@int21h>
References:  <1122335317.4913.1698407124469@localhost> <ZTuyXPjddEPqh-bi@int21h> <794932758.6659.1698413675475@localhost> <ZTvMODY-mcBImHZP@int21h> <8a5c1f89eb5842f20e463c7d60538e598da3bc46.camel@gromit.dlib.vt.edu> <ZTvWSoCykzPzFKuw@int21h> <767774d4-50b5-47c8-9cf1-c0c99fe33e00@madpilot.net> <ZT2MQGKLpMqDSunk@int21h> <b1b954a0-9698-4674-b8fd-02a2ab2c3e02@madpilot.net> <f683068f-33db-46cc-b55f-79647a32392c@madpilot.net> <ZT2SA0JaPfvWmJHQ@int21h>

next in thread | previous in thread | raw e-mail | index | archive | help
On 29/10/23 00:58, void wrote:
> On Sun, Oct 29, 2023 at 12:49:14AM +0200, Guido Falsi wrote:
> 
>> Correcting myaelf:
>>
>> The version we currently have in the ports tree (3.7.x) does not care 
>> for atime, as far as I can see in the source code. It checks mtime only.
>>
>> Newer versions do use it though!
> 
> Thanks for checking. I've set it to on and think I'll leave it on as
> long as there's no e.g performance penalty. One less thing to think about
> changing again when the port moves versions.

Well actually atime does have a performance penalty. The fact has been 
discussed a lot, but the net effect of atime is that every pure read 
operation causes a write operation (to update atime) to be created, so 
it does cause extra disc activity.

There was an old thread involving Linux Torvalds about this. The thread 
is about the linux kernel, but most arguments apply to any filesystem 
saving last access time [1]

That's why since a few years ago it is being disabled by default almost 
everywhere. Enabling it for all filesystems makes no sense. Enabling it 
for ccache, depends, my wild guess is that the performance penalty is 
really minor, but I have performed no testing.

[1] 
http://web.archive.org/web/20110427023154/http://kerneltrap.org/node/14148

-- 
Guido Falsi <mad@madpilot.net>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?06636139-bb9c-4726-a430-3166d216517b>