I've spent the past several hours (not few, several!) reading different pages and questions on how to setup a tmpfs/RAMDisk. They all say different things and say what filesystems I should and shouldn't be including, so I would really appreciate a conclusive, updated answer on this.
I have 16GB of RAM and I want to dedicate maybe 6-8GB to a RAM disk.
1) I plan on adding /tmp
, /var/cache
, and ~/.cache
to the RAM Disk (and Firefox through profile-sync-daemon
). Any other suggestions on what to add? I read on moving /var/lock
and /var/run
too, but since it's from /var
is that advisable?
2) I run LaTeX a lot (LuaLaTeX specifically) so I was thinking maybe I could install that in the RAM instead of on the actual SSD and see if that runs faster? Or I could move /var/lib/texmf
and ~/.texmf-var
to RAM? I don't know, so I'd appreciate the advice!
fstab
and then rebooted. So themkdir
andmount
lines do need to be entered then? – airatin Jan 04 '15 at 22:59/media/ramdisk
(for example) and want to add/tmp
and other filesystems to ramdisk, don't you have to mount/tmp
(and others) to/media/ramdisk
? So in the second answer from this question you would do the first two lines (mkdir
andmount
theramdisk
) and then add/media/ramdisk /tmp tmpfs noatime,nodev,mode=1777 0 0
tofstab
? That's why I got confused about mounting or simply editingfstab
; onceramdisk
is created where does/tmp
go get mounted?? – airatin Jan 05 '15 at 03:58