Skip to content

Commit 5a559ce

Browse files
ailun258lijinxia
authored andcommitted
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
1 parent f11b263 commit 5a559ce

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

devicemodel/samples/nuc/launch_uos.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ if [[ "$result" != "" ]]; then
1414
fi
1515

1616
#for memsize setting
17-
mem_size=1000M
18-
19-
# make sure there is enough 2M hugepages in the pool
20-
echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
17+
mem_size=2048M
2118

2219
acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
2320
-s 2,pci-gvt -G "$3" \
@@ -44,4 +41,4 @@ for i in `ls -d /sys/devices/system/cpu/cpu[1-99]`; do
4441
fi
4542
done
4643

47-
launch_clear 2 1 "64 448 8" 0x070F00 clear
44+
launch_clear 1 3 "64 448 8" 0x070F00 clear

0 commit comments

Comments
 (0)