From 083645f20388e2b6f075f49209a66c068f64f825 Mon Sep 17 00:00:00 2001 From: Balazs Gerofi Date: Fri, 14 Oct 2016 21:25:56 +0900 Subject: [PATCH] mcreboot: purge Linux caches before reserving IHK resources --- arch/x86/tools/mcreboot-smp-x86.sh.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/tools/mcreboot-smp-x86.sh.in b/arch/x86/tools/mcreboot-smp-x86.sh.in index 9b8783a6..8645f123 100644 --- a/arch/x86/tools/mcreboot-smp-x86.sh.in +++ b/arch/x86/tools/mcreboot-smp-x86.sh.in @@ -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=""