From 4d62c56b2dc74ec73255bdae4f787594a4798a7d Mon Sep 17 00:00:00 2001 From: Jason Chen CJ Date: Sun, 10 Jun 2018 19:59:47 +0800 Subject: [PATCH] nuc-samples: use huge page as default launch_uos cmdline we should use hugetlb as default uos memory allocation solution Signed-off-by: Jason Chen CJ --- devicemodel/samples/nuc/launch_uos.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/devicemodel/samples/nuc/launch_uos.sh b/devicemodel/samples/nuc/launch_uos.sh index 5c9d599a6..04249ba55 100755 --- a/devicemodel/samples/nuc/launch_uos.sh +++ b/devicemodel/samples/nuc/launch_uos.sh @@ -16,7 +16,10 @@ fi #for memsize setting mem_size=1000M -acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ +# make sure there is enough 2M hugepages in the pool +echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages + +acrn-dm -T -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ -s 5,virtio-console,@pty:pty_port \ -s 6,virtio-hyper_dmabuf \ -s 3,virtio-blk,/root/clear-21260-kvm.img \