mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-27 17:45:05 +00:00
DM: increase UOS memory size for MRB
on MRB, if memory >= 8GB, will allocate 6GB to UOS; for MRB now just runs one UOS with more workload. Tracked-On: #1369 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Binbin Wu <binbin.wu@intel.com>
This commit is contained in:
parent
39d54c8765
commit
390861a04c
@ -89,7 +89,9 @@ echo "0000:00:1b.0" > /sys/bus/pci/drivers/pci-stub/bind
|
||||
|
||||
#for memsize setting
|
||||
memsize=`cat /proc/meminfo|head -n 1|awk '{print $2}'`
|
||||
if [ $memsize -gt 4000000 ];then
|
||||
if [ $memsize -gt 8000000 ];then
|
||||
mem_size=6G
|
||||
elif [ $memsize -gt 4000000 ];then
|
||||
mem_size=2048M
|
||||
else
|
||||
mem_size=1750M
|
||||
@ -249,7 +251,9 @@ fi
|
||||
|
||||
#for memsize setting
|
||||
memsize=`cat /proc/meminfo|head -n 1|awk '{print $2}'`
|
||||
if [ $memsize -gt 4000000 ];then
|
||||
if [ $memsize -gt 8000000 ];then
|
||||
mem_size=6G
|
||||
elif [ $memsize -gt 4000000 ];then
|
||||
mem_size=2048M
|
||||
else
|
||||
mem_size=1750M
|
||||
|
Loading…
Reference in New Issue
Block a user