A lot of Linux distros do this by default. Alternatively you can use /dev/shm which is guaranteed to always be a RAM disk.
Comment on This Early SSD Was WILD
cmnybo@discuss.tchncs.de 4 weeks agoJust put tmpfs /tmp tmpfs defaults,size=4G 0 0 in /etc/fstab then reboot and /tmp will be a RAM drive. Set size to whatever you want the maximum size to be.
dan@upvote.au 4 weeks ago
pastermil@sh.itjust.works 4 weeks ago
This is what I do. But the thing is, I can only have so much RAM on my motherboard.
Alternatively, I’ve been using zram to better utilize the space, but the original issue remains.