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 ?


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 ?