rc: sysctl-mikaela: decrease vm.swappiness to 1

Performance is better with swap being used only when it's needed and Pi
OSes use it too and it's not so much better on external HDDs than on SD
cards...
This commit is contained in:
Aminda Suomalainen 2015-04-21 15:07:32 +03:00
parent bb8d854150
commit 789ad89c01
2 changed files with 2 additions and 2 deletions

View File

@ -852,7 +852,7 @@ function sysctl-mikaela-run() {
set -x
mkdir -p /etc/sysctl.d/
echo kernel.core_pattern = %e-%p-%h.core > /etc/sysctl.d/60-mikaela.conf
echo vm.swappiness = 10 >> /etc/sysctl.d/60-mikaela.conf
echo vm.swappiness = 1 >> /etc/sysctl.d/60-mikaela.conf
echo net.ipv6.bindv6only=1 >> /etc/sysctl.d/60-mikaela.conf
echo net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.d/60-mikaela.conf
echo net.ipv6.conf.wlan0.use_tempaddr=2 >> /etc/sysctl.d/60-mikaela.conf

View File

@ -835,7 +835,7 @@ function sysctl-mikaela-run() {
set -x
mkdir -p /etc/sysctl.d/
echo kernel.core_pattern = %e-%p-%h.core > /etc/sysctl.d/60-mikaela.conf
echo vm.swappiness = 10 >> /etc/sysctl.d/60-mikaela.conf
echo vm.swappiness = 1 >> /etc/sysctl.d/60-mikaela.conf
echo net.ipv6.bindv6only=1 >> /etc/sysctl.d/60-mikaela.conf
echo net.ipv6.conf.eth0.use_tempaddr=2 >> /etc/sysctl.d/60-mikaela.conf
echo net.ipv6.conf.wlan0.use_tempaddr=2 >> /etc/sysctl.d/60-mikaela.conf