mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 23:47:49 +00: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:
parent
9e0fa457bf
commit
ec64f40777
@ -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
|
||||
)&
|
||||
)&
|
||||
|
Loading…
x
Reference in New Issue
Block a user