6 ms·
/tmp is simply RAM that has the API of a file ...which used to behave, physically, as disk, and now behaves as RAM. If I'm doing large file manipulations that
by ta12121 14y ago
/tmp is simply RAM that has the API of a file
...which used to behave, physically, as disk, and now behaves as RAM. If I'm doing large file manipulations that require temporary files larger than RAM where should I put them?
- regularfry 14y ago/tmp. If it's tmpfs, it can expand into swap space.
- ta12121 14y agoSwap is usually no bigger than two or three times your RAM. Disk in general is 10 to 100 times the size of your RAM.
- saurik 14y agoYou should take all of the space you previously felt acceptable to provide /tmp and allocate it to swap space. The history and semantics of that folder and how it relates to RAM, especially on systems that could not implement swap space, actually make this make sense: if you upgrade to tmpfs from "periodic deletion of /tmp" and are not increasing the size of your swap partition accordingly, you are doing something wrong.
- regularfry 14y agoIf you know you're going to need more space, you can just create a transient swapfile for the duration. Or use /var/cache, if you suspect you know better than tmpfs and the swap allocator.
- luser001 14y agoAccording to the comments on the original article, that location is /var/tmp. Apparently it's some sort of convention/standard. First time I've heard about /var/tmp.