3 ms·
You can create a ramdisk in Linux by using "tmpfs" as the file system. https://en.wikipedia.org/wiki/Tmpfs https://en.wikipedia.org/wiki/Tmpfs Sometimes you c
by 29athrowaway 6y ago
You can create a ramdisk in Linux by using "tmpfs" as the file system.
https://en.wikipedia.org/wiki/Tmpfs https://en.wikipedia.org/wiki/Tmpfs
Sometimes you can mount /tmp as tmpfs to have an extremely fast /tmp partition. You can make the change permanent via /etc/fstab
- mixmastamyk 6y agoIn the old days this was a big performance boost. Now with nvme ssds barely noticeable. Still most distros set up a few by default.
- timbit42 6y agoCan you create a RAD: device and reboot instantly from it, like the Amiga could?
- LeoPanthera 6y agoOnly by cheating, you can save the contents of a tmpfs to disk on shutdown, and then restore it on boot. This can be done with a systemd unit or an init script.
- josteink 6y agoBut then it’s not a RAD disk but just a HDD boot which preloads things into RAM.
- floatboth 6y agoUsually it's not really about speed, you usually want tmpfs on /tmp /var/tmp /var/run etc. to just specifically avoid persistence.