You are Here:
Linux Lite 5.0 Final is now available for download and installation



Swappiness is still set at 60 in LL5

Author (Read 517 times)

0 Members and 3 Guests are viewing this topic.

Swappiness is still set at 60 in LL5
« on: June 28, 2020, 03:18:10 AM »
 

johnausten13

  • New to Forums
  • *
  • 27
    Posts
  • Country: ph
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: E7500 @ 2.93Ghz

  • MEMORY: 6Gb

  • VIDEO CARD: Integrated

  • Kernel: 5.x
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: [Select]
cat /proc/sys/vm/swappiness
Last Edit: June 28, 2020, 03:27:25 AM by johnausten13
 


Re: Swappiness is still set at 60 in LL5
« Reply #1 on: June 28, 2020, 04:54:17 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7652
    Posts
  • Country: nz
  • Reputation: 722
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.0 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
What's your understanding of swappiness as it pertains to the vast range of hardware configurations out in the wild?

Sent from my mobile phone using Tapatalk

 

Re: Swappiness is still set at 60 in LL5
« Reply #2 on: June 28, 2020, 06:48:36 AM »
 

johnausten13

  • New to Forums
  • *
  • 27
    Posts
  • Country: ph
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: E7500 @ 2.93Ghz

  • MEMORY: 6Gb

  • VIDEO CARD: Integrated

  • Kernel: 5.x
What's your understanding of swappiness as it pertains to the vast range of hardware configurations out in the wild?

Sent from my mobile phone using Tapatalk

My understanding is that swappiness is more like the equivalent in Windows as 'paging file'. Swappiness value sets a preference for the type of memory pages that will be scanned for potential reclamation. For ageing, mechanical hard drives which are mostly used in Linux like I used to have in laptops, reducing the swappiness value improves anonymous page reclamation and reduce swap partition churn.

 

Re: Swappiness is still set at 60 in LL5
« Reply #3 on: June 28, 2020, 07:17:04 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7652
    Posts
  • Country: nz
  • Reputation: 722
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.0 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
That isn't what I call an understanding, more akin to some rearranged plagiarism from howtogeek. There is no one size fits as all unfortunately. The same article asks, 'What should Swappiness be set to'? For me, swappiness should remain an individualized, fine tweak setting arrived at by a combination of hardware considered factors.

Sent from my mobile phone using Tapatalk

 

Re: Swappiness is still set at 60 in LL5
« Reply #4 on: June 28, 2020, 06:37:43 PM »
 

johnausten13

  • New to Forums
  • *
  • 27
    Posts
  • Country: ph
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: E7500 @ 2.93Ghz

  • MEMORY: 6Gb

  • VIDEO CARD: Integrated

  • Kernel: 5.x
That isn't what I call an understanding, more akin to some rearranged plagiarism from howtogeek. There is no one size fits as all unfortunately. The same article asks, 'What should Swappiness be set to'? For me, swappiness should remain an individualized, fine tweak setting arrived at by a combination of hardware considered factors.

Sent from my mobile phone using Tapatalk

Well, paging file was more straight forward than swappiness but yeah, there is no one size fits all. I'm just reminded that Linux is much more accomodating with old hardware compared to Windows, and one of the recommendations out there is to reduce swappiness for faster performance.
 

Re: Swappiness is still set at 60 in LL5
« Reply #5 on: June 28, 2020, 06:48:32 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7652
    Posts
  • Country: nz
  • Reputation: 722
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.0 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
I am sure threads like this will help other people. Thank you for your contribution.
 

Re: Swappiness is still set at 60 in LL5
« Reply #6 on: June 29, 2020, 07:03:01 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1146
    Posts
  • Country: us
  • Reputation: 187
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 5.0 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D

  • Kernel: 5.x
"low swappiness will immunize the computer to memory shortages caused by temporary big files"    Wrong. Good lord. Immunize it right into an OOM state.

https://wiki.archlinux.org/index.php/swap

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: Swappiness is still set at 60 in LL5
« Reply #7 on: June 29, 2020, 12:38:37 PM »
 

Moltke

  • Gold Level Poster
  • *******
  • 692
    Posts
  • Country: ve
  • Reputation: 81
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 4.x
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: [Select]
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.
Without each others help there ain't no hope for us :)
 

Re: Swappiness is still set at 60 in LL5
« Reply #8 on: June 29, 2020, 08:11:13 PM »
 

johnausten13

  • New to Forums
  • *
  • 27
    Posts
  • Country: ph
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: E7500 @ 2.93Ghz

  • MEMORY: 6Gb

  • VIDEO CARD: Integrated

  • Kernel: 5.x
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: [Select]
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.

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.
 


Tags: swappiness ll5 
 


Linux Lite 5.0 Final is now available for download and installation