←back to thread

150 points shaunpud | 2 comments | | HN request time: 0s | source
Show context
nrdvana ◴[] No.45060203[source]
The third mitigating feature the article forgot to mention is that tmpfs can get paged out to the swap partition. If you drop a large file there and forget it, it will all end up in the swap partition if applications are demanding more memory.
replies(3): >>45060224 #>>45060756 #>>45061403 #
guappa ◴[] No.45061403[source]
Fedora did this long before debian. I remember doing wget of an .iso file on /tmp and my entire wayland session being killed by the OOM killer.

I still think it's a terrible idea.

replies(1): >>45061462 #
nolist_policy ◴[] No.45061462[source]
Use `/var/tmp` of you want a disk backed tmp.
replies(1): >>45061925 #
1718627440 ◴[] No.45061925[source]
I thought /var/tmp is for applications while /tmp is for the user.
replies(3): >>45062090 #>>45062856 #>>45062943 #
1. Hendrikto ◴[] No.45062090{3}[source]
> /tmp/

> The place for small temporary files. This directory is usually mounted as a tmpfs instance, and should hence not be used for larger files. (Use /var/tmp/ for larger files.) This directory is usually flushed at boot-up. Also, files that are not accessed within a certain time may be automatically deleted.

Source: https://uapi-group.org/specifications/specs/linux_file_syste...

replies(1): >>45062912 #
2. guappa ◴[] No.45062912[source]
But that was written after the change was made :D