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

10 points by boldi 3 days ago

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

akerl_ 3 days ago

This doesn’t sound new?

  • boldi 3 days ago

    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 2 days ago

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