5 ms·
On most Linux distros, /tmp is a ramdisk.
by Retr0spectrum 9y ago
On most Linux distros, /tmp is a ramdisk.
- JetSpiegel 9y agoBut with only 1 GB capacity
- glandium 9y agoIt depends on your setup. The default when no size is given is to use half the RAM.
- colejohnson66 9y agoHalf? That seems kind of excessive. Are you sure that’s right?
- Sidnicious 9y agoI would guess that it’s given that capacity, but the memory is allocated lazily.
- yjftsjthsd-h 9y agoCorrect; tmpfs only uses as much memory as as is used by the files it contains.
- mcpherrinm 9y agoI don't think this is nearly universal - certainly none of the systems I use have /tmp as tmpfs. /dev/shm, on the other hand, is almost always guaranteed to be a tmpfs on glibc systems.
- Twirrim 9y agoNo.... some, sure. Not most. RHEL7, and all it's derivatives (CentOS, Oracle Linux etc.) don't use tmpfs for /tmp by default, and they are arguably the most used linux distros in the world.