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:
@ -144,6 +144,9 @@ fi
|
|||||||
# Drop Linux caches to free memory
|
# Drop Linux caches to free memory
|
||||||
sync && echo 3 > /proc/sys/vm/drop_caches
|
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
|
# Load IHK-SMP if not loaded and reserve CPUs and memory
|
||||||
if [ "`lsmod | grep ihk_smp_x86`" == "" ]; then
|
if [ "`lsmod | grep ihk_smp_x86`" == "" ]; then
|
||||||
ihk_irq=""
|
ihk_irq=""
|
||||||
|
|||||||
Reference in New Issue
Block a user