From 5a559ce6f5a29db0033843991e6d693b7b8b2be2 Mon Sep 17 00:00:00 2001 From: "ailin,yang" Date: Sun, 12 Aug 2018 14:07:50 +0800 Subject: [PATCH] fixed cpu info incorrect and remove 2M hugepages with original script, user can not get 3 CPU cores info with cat/proc/cpuinfo in UOS. it just show 1 only. with this patch, default, user can see 1 cpu info in SOS and 3 cores info in UOS. and remove 2M hugepages settings because it is not using any more. # make sure there is enough 2M hugepages in the pool echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages also, this patch is setting default UOS memory to 2G --- devicemodel/samples/nuc/launch_uos.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/devicemodel/samples/nuc/launch_uos.sh b/devicemodel/samples/nuc/launch_uos.sh index ec7b7bb08..4efe8070f 100755 --- a/devicemodel/samples/nuc/launch_uos.sh +++ b/devicemodel/samples/nuc/launch_uos.sh @@ -14,10 +14,7 @@ if [[ "$result" != "" ]]; then fi #for memsize setting -mem_size=1000M - -# make sure there is enough 2M hugepages in the pool -echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages +mem_size=2048M acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ -s 2,pci-gvt -G "$3" \ @@ -44,4 +41,4 @@ for i in `ls -d /sys/devices/system/cpu/cpu[1-99]`; do fi done -launch_clear 2 1 "64 448 8" 0x070F00 clear +launch_clear 1 3 "64 448 8" 0x070F00 clear