Re: Make /tmp/ a tmpfs and cleanup /var/tmp/ on a timer by default [was: Re: systemd: tmpfiles.d not cleaning /var/tmp by default]
Matthew Garrett <mjg59@srcf.ucam.org> writes:
> On Mon, May 06, 2024 at 07:42:11AM -0700, Russ Allbery wrote:
>> Historically, deleting anything in /var/tmp that hadn't been accessed
>> in over seven days was a perfectly reasonable and typical
>> configuration. These days, we have the complication that it's fairly
>> common to turn off atime updates for performance reasons, which makes
>> it a bit harder to implement that policy when /var/tmp isn't its own
>> partition and thus inherits that setting from the rest of the system.
> Apologies for being a bit late to this, but is this true? relatime-type
> setups will still update atime if the time between the previous update
> and the access is larger than some threshold, so you lose some degree of
> granularity but the rough policy should still apply.
You are correct and I completely forgot about that.
--
Russ Allbery (rra@debian.org) <https://www.eyrie.org/~eagle/>
Reply to: