On 12/06/2019 01:49 PM, Dave Howorth wrote:
https://en.opensuse.org/SDB:SSD_performance says
"create TMPFS filesystems
"It is highly recommended to put the most volatile parts of your data on a TMPFS - this especially includes the /tmp directory. ...
Hmm, FF downloads files to /tmp initially. I just deleted 1 GB of pdf files that FF has downloaded over the past however long and not bothered deleting!
So how would one size a /tmpfs system to allow that? The largest download file has to fit in it apart from whatever really temporary files and temporary sockets etc are regularly created there.
Double-check for 15.1/TW, but for 15.0 and prior to mount tmpfs in RAM, create a link for systemd to tell it to mount in RAM, # ln -s /usr/share/systemd/tmp.mount /etc/systemd/system/ confirm: before: $ findmnt --target /tmp TARGET SOURCE FSTYPE OPTIONS / /dev/sdb2 ext4 rw,relatime,data=ordered after: $ findmnt --target /tmp TARGET SOURCE FSTYPE OPTIONS /tmp tmpfs tmpfs rw,nosuid,nodev You don't size tmpfs per-se, it is just created from your RAM. You do want to be mindful what you write to the tmpfs will reduce the amount of RAM available. So if you have 8G of RAM, you want to avoid writing a 8G video to /tmp. Also, your /tmp is no longer persistent. But LFH (https://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/Linux-Filesystem-Hi...) provides /var/tmp for longer term tmp storage on /. (I never let FF write anything to /tmp. I make sure (1) it asks every time; and (2) it goes somewhere in $HOME) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org