mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
util-linux: set default swappiness to 1 if swapfile is used
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -41,11 +41,6 @@
|
||||
for i in $SWAP; do
|
||||
swapon -p 10000 $SWAP 2>&1 > /dev/null
|
||||
done
|
||||
|
||||
if [ "$INSTALLED_MEMORY" -le "260000" ]; then
|
||||
sysctl -w vm.swappiness=100 2>&1 > /dev/null
|
||||
else
|
||||
sysctl -w vm.swappiness=60 2>&1 > /dev/null
|
||||
fi
|
||||
sysctl -w vm.swappiness=1 2>&1 > /dev/null
|
||||
fi
|
||||
)&
|
||||
)&
|
||||
|
||||
Reference in New Issue
Block a user