RE: Reducing Swappiness (SOLVED)

Hi, all. I haven’t been around for awhile. However, I have acquired an old Dell laptop and happened to see the release posted on Distrowatch about a new Netrunner Rolling release. I had used this distro previously and only abandoned it because it looked to be dead with no future updates. I downloaded and installed Netrunner Rolling 17.07 on a Dell Latitude E6500 laptop w/4GB of Ram. It runs like a top! I do have one question which I haven’t been able to resolve this issue via either the Manjaro or Arch user forums:

How do I reduce swappiness?

Thanks in advance to anyone who can answer my question.

Stevo898

Just create a file under /etc/sysctl.d/ called 99-sysctl.conf as root.
Then add this in that file:

vm.swappiness=10

If you want to test the settings temporarily before committing them to the configuration file, use the following command:

sysctl vm.swappiness=10

Then just adjust the number to whatever you need it to be.

Ref: https://wiki.archlinux.org/index.php/Swap#Swappiness

Tnx, AJ! I thought I had tried that or something close to that but it didn’t seem to work. But your answer did the trick. I remember your name now, you have assisted me in the past. It’s good to be back using NRR!

Tnx, again.

Stevo898

That’s great, I’m glad I could help.

PS. Could you please mark this thread as solved in the tittle, this makes it easier for other users to find.