Merge pull request #64 from cyplo/swapiness

Set swapiness high on fedora, as all fedora systems are SSD now
This commit is contained in:
Cyryl Płotnicki 2016-10-22 20:43:14 +02:00 committed by GitHub
commit 88ad7a45b9
2 changed files with 3 additions and 0 deletions

View file

@ -16,6 +16,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
sudo cp -v /etc/dnf/automatic.conf /etc/dnf/automatic.conf.bak sudo cp -v /etc/dnf/automatic.conf /etc/dnf/automatic.conf.bak
sudo cp -v $DIR/etc/dnf/automatic.conf /etc/dnf/automatic.conf sudo cp -v $DIR/etc/dnf/automatic.conf /etc/dnf/automatic.conf
sudo cp -v $DIR/etc/ld.so.conf.d/nextcloud.conf /etc/ld.so.conf.d/nextcloud.conf sudo cp -v $DIR/etc/ld.so.conf.d/nextcloud.conf /etc/ld.so.conf.d/nextcloud.conf
sudo cp -v $DIR/etc/sysctl.d/90_swapiness.conf /etc/sysctl.d/
sudo ldconfig sudo ldconfig
set +e set +e

View file

@ -0,0 +1,2 @@
vm.swappiness = 90