On Fri, 6 Dec 2019 21:19:48 +0100 Adam Mizerski <adam@mizerski.pl> wrote:
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.
It has 8 GB.
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.
Ah, interesting. I didn't realize a tmpfs could use swap. How can I tell it to use so much RAM and put the rest in swap? If swap is on rotating rust, I don't care how much is full of mozilla's junk :)
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)
I use tmpfs heavily on a pi running raspbian but not so far except by default on my openSUSE box. I open files using FF all the time.
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
Ah, reboot implies wait several months :( Although maybe less since I should probably upgrade soon. And I have to say I think a line in /etc/fstab is much better documentation than some symlinks in the filesystem. :( Genenerally I have no problem with systemd but its predilection for replacing static documentation in files with filesystem cross-links is one of my pet hates. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org