←back to thread

150 points shaunpud | 3 comments | | HN request time: 0.695s | source
1. rwmj ◴[] No.45061087[source]
'systemctl mask tmp.mount' - the most important command to run in these situations.

It's a really bad idea to put /tmp into memory. Filesystems already use memory when necessary and spill to the filesystem when memory is under pressure. If they don't do this correctly (which they do) then fix your filesystem! That will benefit everything.

replies(1): >>45061129 #
2. nolist_policy ◴[] No.45061129[source]
You'd think that, but in ext4 the first write to a new file will hit the disk (the code mentions it is a workaround for something). Btrfs does it correctly.
replies(1): >>45061185 #
3. rwmj ◴[] No.45061185[source]
Sounds like fixing that ext4 problem could make a lot of things go faster.