Defrag memory in mcreboot.sh

Merge free physical pages to create large, physically contiguous
blocks with the following command.

    echo 1 > /proc/sys/vm/compact_memory
This commit is contained in:
Masamichi Takagi
2016-10-25 16:35:43 +09:00
parent 5f973ab51e
commit f284a80656

View File

@ -144,6 +144,9 @@ fi
# Drop Linux caches to free memory
sync && echo 3 > /proc/sys/vm/drop_caches
# Merge free memory areas into large, physically contigous ones
echo 1 > /proc/sys/vm/compact_memory 2>/dev/null
# Load IHK-SMP if not loaded and reserve CPUs and memory
if [ "`lsmod | grep ihk_smp_x86`" == "" ]; then
ihk_irq=""