Hacker News new | ask | show | jobs
by mattl 3250 days ago
I have exactly the same drive in my new System76 system.

    /dev/sda1       2048   1050623   1048576   512M EFI System
    
    /dev/sda2    1050624 968382463 967331840 461.3G Linux filesystem

    /dev/sda3  968382464 976771071   8388608     4G Linux swap
1 comments

Hi Mattl,

Thanks a bunch for taking the time to read and respond to my questions, much appreciated.

Cheers.

A good way to minimize swapping is to adjust the swappiness setting and set it to something low. I have it set to 10 so it won't start swapping out until RAM reaches 90% utilization. Edit or add (if it's not there):

vm.swappiness = 10

...to /etc/sysctl.conf. You can change "10" to whatever works for you. The number is the percentage of free RAM before it starts swapping. You can also change it on the fly with:

sysctl vm.swappiness=10

...but you have to add it to the sysctl-conf file to make it permanent.

Hi Microwavecamera, thanks for the information, appreciated. Cheers