mcreboot: purge Linux caches before reserving IHK resources

This commit is contained in:
Balazs Gerofi
2016-10-14 21:25:56 +09:00
parent 994b9a19ac
commit 083645f203

View File

@ -131,6 +131,9 @@ if [ "`lsmod | grep ihk`" == "" ]; then
if ! insmod ${KMODDIR}/ihk.ko; then echo "error: loading ihk" >&2; exit 1; fi;
fi
# Drop Linux caches to free memory
sync && echo 3 > /proc/sys/vm/drop_caches
# Load IHK-SMP if not loaded and reserve CPUs and memory
if [ "`lsmod | grep ihk_smp_x86`" == "" ]; then
ihk_irq=""