Tell HN: /tmp is hogging your RAM on Ubuntu 26
As a Ubuntu user, it was just brought to my attention that /tmp is now mounted on tmpfs (aka your RAM).
Coding agents, like Claude Code, use /tmp as a scratchpad for files, model weights, etc.
Therefore, if you have RAM constraints, consider setting CLAUDE_CODE_TMPDIR to e.g. ~/.claude/tmp
CKS ran into this problem, as well:
https://utcc.utoronto.ca/~cks/space/blog/linux/SystemdTmpfil...
This doesn’t sound new?
Yeah I think this was changed in Debian back in June 2024. However, Ubuntu 26.04 is the first LTS with this change. I guess I've had this problem since April but I'm not sure how well-known this is. At the very least, this should be changed in the default settings for agent harnesses.
A /tmp directory that uses up RAM is a good way to keep Sam Altman off your back.