[opensuse] https://en.opensuse.org/SDB:SSD_performance
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. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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
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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/12/2019 20.49, 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!
Which is one reason I don't use tmpfs for /tmp.
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.
It is not all downloads, but things you click to view, it has to download them first somewhere. Otherwise, imagine you download a few isos, it would fill up even swap. - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXerSXwAKCRC1MxgcbY1H 1d17AJ9UQrJrnUwA8wNxYWHBSO3xJ6FO0ACggFK0wjbDJBM0lyBxr71Zt4WpFwA= =Tmeq -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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
On Sat, 7 Dec 2019 01:51:18 -0600 "David C. Rankin" <drankinatty@suddenlinkmail.com> wrote:
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,
err, what's the size= option for then?
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.
Yeah, I'm interested in whether it's possible to persuade the tmpfs to use swap space for longer-lived temporary items, or only when it runs short of RAM.
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)
You do that by setting TMPDIR to something? Or is there some other way? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/12/2019 08.51, David C. Rankin wrote:
(I never let FF write anything to /tmp. I make sure (1) it asks every time; and (2) it goes somewhere in $HOME)
Click on a file to "view" instead of "download", and check where it goes really. - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXeu4OwAKCRC1MxgcbY1H 1XE1AJ9ktMCLbJoBceQh/MwHgIx0Q6GnjQCdG6RTci8ZrMiccw8AtXch1ClFPoo= =+cpa -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Adam Mizerski
-
Carlos E. R.
-
Dave Howorth
-
David C. Rankin