From ec64f4077763cef6351c8a63a52a8edc1900eed6 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 26 Apr 2012 16:17:36 +0200 Subject: [PATCH] util-linux: set default swappiness to 1 if swapfile is used Signed-off-by: Stephan Raue --- packages/sysutils/util-linux/init.d/32_swapfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/sysutils/util-linux/init.d/32_swapfile b/packages/sysutils/util-linux/init.d/32_swapfile index 3e2b69338e..8a9d18c6d7 100644 --- a/packages/sysutils/util-linux/init.d/32_swapfile +++ b/packages/sysutils/util-linux/init.d/32_swapfile @@ -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 -)& \ No newline at end of file +)&