Settings

Theme

Tell HN: /tmp is hogging your RAM on Ubuntu 26

10 points by boldi · 5 comments · 1 min read


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

3 threads
dapperdrake

CKS ran into this problem, as well:

https://utcc.utoronto.ca/~cks/space/blog/linux/SystemdTmpfil...

akerl_

This doesn’t sound new?

  • boldiOP

    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.

brokegrammer

A /tmp directory that uses up RAM is a good way to keep Sam Altman off your back.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection