Debian's /tmpest in a teapot
Debian’s /tmp-on-tmpfs and cleanup policy
- Debian is switching the default
/tmptotmpfsand enabling timed cleanup of/tmpand/var/tmpviasystemd-tmpfiles. - Some see this as overdue alignment with other distros and a net win: fewer disk writes, automatic cleanup, consistency across installs.
- Others stress it breaks long-standing expectations:
/tmpas large, disk-backed scratch space;/var/tmpas “temporary but persistent across reboots,” per FHS and historical Unix practice.
Performance, RAM, SSD wear
- Proponents: RAM is fast, SSD wear is finite, and temp data is ideal to keep off SSDs. For many desktops with ample RAM,
/tmpin RAM is beneficial. - Critics: RAM is “precious,” especially on smaller/cheaper laptops and servers. Large temps in
tmpfsforce swapping and can destabilize systems; for big builds or ISOs, disk is faster than swap-thrashing tmpfs. - Some argue modern filesystems and cache already keep hot
/tmpdata in RAM, so explicit tmpfs brings little speed benefit.
Usage patterns and breakage concerns
- Many users and tools already rely on
/var/tmpor even/tmpas semi-persistent storage (long simulations, browser profiles, caches, tmux/ssh-agent sockets). - Automatically reaping files while the system is running (based on last access time) is seen as risky; fear of partially deleted app state and subtle failures.
- Others counter that using temp dirs for important or long-lived data was always fragile; affected users should move to proper cache/data paths or site-specific dirs.
XDG directories and ~/.cache on tmpfs
- XDG base dir spec is widely discussed: half-adoption leads to cluttered
$HOMEand inconsistent behavior. - Some put
~/.cacheon tmpfs to save SSD wear; others say this breaks workflows that rely on persistent caches or large ML models stored there.
Swap, memory policy, and tuning
- Extensive side discussion on swap size, zswap/zram, swappiness, and early OOM killers.
- Opinions split between preferring slowdown with swap vs. aggressive killing to avoid thrashing.
Backwards compatibility, configurability, and systemd’s role
- Some argue changing long-standing semantics violates user expectations; defaults should favor compatibility, with new behavior opt-in.
- Others emphasize Debian’s configurability:
/etc/fstab, maskingtmp.mount, andtmpfiles.dallow reverting behavior, and admins are expected to adapt. - There is unease about systemd owning more policy knobs (mounts, tmp handling), but also acknowledgment that its tmpfiles mechanism is powerful and central to this change.