Set swapiness high on fedora, as all fedora systems are SSD now

This commit is contained in:
Cyryl Płotnicki 2016-10-22 19:58:35 +02:00
parent 101a3b0aac
commit 71a9f66470
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 $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/sysctl.d/90_swapiness.conf /etc/sysctl.d/
sudo ldconfig
set +e

View file

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