Article 4YZPA How to configure swappiness in Slackware ?

How to configure swappiness in Slackware ?

by
igor_ubuntu
from LinuxQuestions.org on (#4YZPA)
There are a few ways in Linux

1. As root user, edit or create the file /etc/sysctl.conf .
1a sudo bash -c "echo 'vm.swappiness = **' >> /etc/sysctl.conf"

2. As root user, create the file /etc/sysctl.d/swappiness.conf
2a sudo bash -c "echo 'vm.swappiness = **' >> /etc/sysctl.d/swappiness.conf"

3. Edit /etc/sysctl.d/60-swappiness.conf
...

Slackware 14.2 does not have the file /etc/sysctl.conf (there is only the directory /etc/sysctl.d/ here)

Which way is correct for Slackware ?latest?d=yIl2AUoC8zA latest?i=rx01IkeJVMM:pwfpuSvdwH0:F7zBnMy latest?i=rx01IkeJVMM:pwfpuSvdwH0:V_sGLiP latest?d=qj6IDK7rITs latest?i=rx01IkeJVMM:pwfpuSvdwH0:gIN9vFwrx01IkeJVMM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments