mcreboot/mcstop: adjust swappiness

This commit is contained in:
Balazs Gerofi
2017-01-03 09:01:47 +09:00
parent c40e7105e6
commit a776464a7e
2 changed files with 5 additions and 0 deletions

View File

@ -267,6 +267,9 @@ if [ "`lsmod | grep ihk`" == "" ]; then
fi
fi
# Increase swappiness so that we have better chance to allocate memory for IHK
echo 100 > /proc/sys/vm/swappiness
# Drop Linux caches to free memory
sync && echo 3 > /proc/sys/vm/drop_caches

View File

@ -113,3 +113,5 @@ if [ "`systemctl status irqbalance_mck.service 2> /dev/null |grep -E 'Active: ac
fi
fi
# Set back default swappiness
echo 60 > /proc/sys/vm/swappiness