W dniu 06.12.2019 o 20:49, Dave Howorth pisze:
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.
Everything depends on how much memory your computer has. From "man tmpfs": The filesystem consumes only as much physical memory and swap space as is required to store the current contents of the filesystem. Option size=bytes: Specify an upper limit on the size of the filesystem. The default is size=50%. For a long time I use tmpfs on all my machines (16GB of ram or more) and have no problem with that. (I also rarely open files directly from firefox download dialog) You can enable tmpfs on /tmp using this: - comment out the relevant line from /etc/fstab - sudo ln -s /usr/share/systemd/tmp.mount /etc/systemd/system/tmp.mount - sudo systemctl daemon-reload - sudo systemctl enable tmp.mount - reboot