mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 16:07:51 +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
|
for i in $SWAP; do
|
||||||
swapon -p 10000 $SWAP 2>&1 > /dev/null
|
swapon -p 10000 $SWAP 2>&1 > /dev/null
|
||||||
done
|
done
|
||||||
|
sysctl -w vm.swappiness=1 2>&1 > /dev/null
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
)&
|
)&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user