Re:Tmpfs considered harmful
by ta12121 on Wednesday September 12, 2012 @03:56PM
(#4512786)
...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?
[ Parent
| on HN ]
According 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.
Re:Tmpfs considered harmful
by regularfry on Wednesday September 12, 2012 @04:07PM
(#4512853)
/tmp. If it's tmpfs, it can expand into swap space.
Swap is usually no bigger than two or three times your RAM. Disk in general is 10 to 100 times the size of your RAM.
You 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.
Re:Tmpfs considered harmful
by regularfry on Thursday September 13, 2012 @03:37AM
(#4515156)
If 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.