(06-29-2020, 04:38 PM)Moltke link Wrote:[quote author=johnausten13 link=topic=7474.msg52704#msg52704 date=1593328690]
I am still wondering why the swappiness is still set at 60 for Linux Lite 5x. I was expecting that it has been reduced to at least 10 for old HDD and SSD for this upgrade. When I was stil in LL 4.8 with an old HDD, I already reduced my swappiness from 60 to 10. Now in my new SSD, I have reduced mine to 5 for faster performance. High swappiness is IMHO, only fit for servers, and low swappiness will immunize the computer to memory shortages caused by temporary big files.
Code:
cat /proc/sys/vm/swappiness
I see that in your profile says your system has 6GB of RAM, with that amount a swappiness of 10 seems resonable, however, other users with less RAM available on their systems; 1 or 2GB, a value of 60 might be a better choice since it'll help if and when system needs it. The more the RAM the less swappiness value should be, the less the RAM the more swappiness is better. For instance, a system with 32GB of RAM may not even need swappiness at all. My Desktop pc has 4GB and it barely uses swappiness so I made it 10 logn time ago.
[/quote]
Thanks Moltke. I used to have 2 GB in my previous 32-bit laptops where I installed LL 4 Series. I was thankful to be able to revive those computers so others can use them especially those transitioning from Windows to Linux. I even changed the styles and icons closer to the 'Windows look' using the Boomerang Project. Searching online to optimize my old PCs lead me to swappiness with respect to RAM with the following recommendations:
1 GB RAM or less - use ZRam
2 GB RAM or less - reduce swappiness to 10
4 GB RAM or more - tame the inode cache / cache management to 50 (Done!)
8 GB RAM or more - put tmp to tmpfs
For SSD - reduce swappiness to 5 for lesser write actions (Done!)
I like Linux Lite a lot because it is highly customizable. I upgraded to LL 5 because I read somewhere online that upgrading to LL 5 will make my scanner work. And it did work.