i just find out swapiness for SSD is better set to 1 instead of 5 or 10
https://sites.google.com/site/guidetoop ... ring-a-ssd
i just find out swapiness for SSD is better set to 1 instead of 5 or 10
That's nonsense. SSDs don't need to be coddled. They're now more durable than spinning drives.trytip wrote: ⤴Sun Sep 13, 2020 12:04 pmi just find out swapiness for SSD is better set to 1 instead of 5 or 10
https://sites.google.com/site/guidetoop ... ring-a-ssd
As you can see in gm10's contribution on this issue, to which you refer, you see that his viewpoint on decreasing swappiness is ultimately this:pbear wrote: ⤴Sun Sep 13, 2020 12:07 pmThat's nonsense. SSDs don't need to be coddled. They're now more durable than spinning drives.trytip wrote: ⤴Sun Sep 13, 2020 12:04 pm i just find out swapiness for SSD is better set to 1 instead of 5 or 10
https://sites.google.com/site/guidetoop ... ring-a-ssd
All choking swappiness to the bare minimum does is hamstring the system if it needs to use swap.
For more on swappiness, see gm10's general discussion of the issue.
viewtopic.php?p=1699701#p1699701for the average user, I won't make any statements as to what is best for I honestly do not know what the average Linux user does on their computer.
(.....) Either way, the best advice to give is to simply add enough RAM to your device and thus avoid the question from even posing itself.
With all due respect, I ran several extended write tests to SSDs with swappiness set at default, 10, 5, and 1 for a week each with full use on SSD and monitored writes using Micron Storage Executive for Total Writes. There was no statistical difference in any setting. I'm just not convinced that swappiness or noatime make any real difference.Now, what's wrong with taking some of the wear load off an SSD, whilst at the same time increasing overall system responsiveness? A win-win situation if there ever was one, if you ask me.
Yes, well, my statement should have been more qualified.... I meant to say that I've noticed increased system responsiveness because of reduced swappiness, on computers with relatively little RAM.LanceM wrote: ⤴Sun Sep 13, 2020 2:37 pmWith all due respect, I ran several extended write tests to SSDs with swappiness set at default, 10, 5, and 1 for a week each with full use on SSD and monitored writes using Micron Storage Executive for Total Writes. There was no statistical difference in any setting. I'm just not convinced that swappiness or noatime make any real difference.Now, what's wrong with taking some of the wear load off an SSD, whilst at the same time increasing overall system responsiveness? A win-win situation if there ever was one, if you ask me.
I should of added, that I purposely used a RAM starved system with just 2GB. As soon a swap started being used the systems slowed way down.. Even the mouse quit responding. Swappiness settings seemed to make no difference to that. This test was done on Cinnamon 19.3. With the newer kernels, in 20 there have been improvements in swap use. It doesn't engage nearly as soon, nor does it impact the system as much. Certainly one system and a few tests doesn't invalidate the entire swappiness setting, but makes me skeptical of it. One could try it and see. To just blindly change swappiness, irregardless of how much RAM is in the PC and not first monitor if swap is even being used, seems foolish to me. Enough RAM positively, eliminates the issue. 8GB for most users is adequate to have swap never kick in. It can be there for emergency overload if the need arises. If it does, I think default may well be the best setting.Yes, well, my statement should have been more qualified.... I meant to say that I've noticed increased system responsiveness because of reduced swappiness, on computers with relatively little RAM.
That's peculiar, because a decreased swappiness should reduce the number of times that the swap kicks in, thus keeping your RAM starved system generally more responsive...LanceM wrote: ⤴Sun Sep 13, 2020 3:19 pmI should of added, that I purposely used a RAM starved system with just 2GB. As soon a swap started being used the systems slowed way down.. Even the mouse quit responding. Swappiness settings seemed to make no difference to that.Yes, well, my statement should have been more qualified.... I meant to say that I've noticed increased system responsiveness because of reduced swappiness, on computers with relatively little RAM.
Well, I do it on all of my computers as a matter of course. Been doing it for years: if I remember correctly, since 2009/2010 or something, around the time that I bought my first SSD. Regardless of RAM amount. Fire and forget. Never seen any negative effects because of it, in over a decade.LanceM wrote: ⤴Sun Sep 13, 2020 3:19 pm This test was done on Cinnamon 19.3. With the newer kernels, in 20 there have been improvements in swap use. It doesn't engage nearly as soon, nor does it impact the system as much. Certainly one system and a few tests doesn't invalidate the entire swappiness setting, but makes me skeptical of it. One could try it and see. To just blindly change swappiness, irregardless of how much RAM is in the PC and not first monitor if swap is even being used, seems foolish to me. Enough RAM positively, eliminates the issue. 8GB for most users is adequate to have swap never kick in. It can be there for emergency overload if the need arises. If it does, I think default may well be the best setting.
xed admin:///etc/sysctl.conf
in thy terminal and presseth [ENTER]. Then mayest thou scroll to the end of thine sysctl.conf file and add the following thereunto:# Sharply reduce the inclination to swap
vm.swappiness=5
Code: Select all
lance@LM:~$ psd p
Profile-sync-daemon v6.34 on Linux Mint 20
Systemd service is currently active.
Systemd resync-timer is currently active.
Overlayfs v23 is currently active.
Psd will manage the following per /home/lance/.config/psd/.psd.conf:
browser/psname: google-chrome/chrome
owner/group id: lance/1000
sync target: /home/lance/.config/google-chrome
tmpfs dir: /run/user/1000/lance-google-chrome
profile size: 198M
overlayfs size: 34M
recovery dirs: 1 <- delete with the c option
I'll bet it installed a swapfile. That's what does now instead of a partition.AZgl1500 wrote: ⤴Sun Sep 13, 2020 9:22 pm a couple of years ago, I had to deal with Swapiness....
I solved the problem by tripling the amount of RAM in the 1st laptop, and when I ordered this current laptop, it came with 16gB RAM.
I have never felt it slow down unless the Internet got in the way.
In fact, when I installed 19.3 Cinnamon with the Defaults, it did not create a Swap partition at all.
yup, it didLanceM wrote: ⤴Sun Sep 13, 2020 9:33 pmI'll bet it installed a swapfile. That's what does now instead of a partition.AZgl1500 wrote: ⤴Sun Sep 13, 2020 9:22 pm a couple of years ago, I had to deal with Swapiness....
I solved the problem by tripling the amount of RAM in the 1st laptop, and when I ordered this current laptop, it came with 16gB RAM.
I have never felt it slow down unless the Internet got in the way.
In fact, when I installed 19.3 Cinnamon with the Defaults, it did not create a Swap partition at all.
Now that askubuntu item has this interesting opposing view in its thread:pbear wrote: ⤴Sun Sep 13, 2020 9:02 pm Notice the recommendation to minimize swappiness is based on a single article, which has no cites and gives no credentials for the author (identified only by nom de plume). Meanwhile, my research turned up plenty of users with as much apparent expertise arguing the other way. See, e.g., askubuntu,
Note that neither of those articles is very conclusive either way.pbear wrote: ⤴Sun Sep 13, 2020 9:02 pm Linux & Unix, and Linux.com. The last quotes a kernel developer (Andrew Morton) who argues for using more swap, not less.
Maybe that's so for modern SSD's. But if you're aiming for extreme "mileage" and reliability, it makes sense to reduce wear and tear anyway, just to be on the safe side.
Then I suggest you promote the use of profile-sync daemonMaybe that's so for modern SSD's. But if you're aiming for extreme "mileage" and reliability, it makes sense to reduce wear and tear anyway, just to be on the safe side.