acrn-hypervisor/misc/config_tools/static_allocators
Kunhui-Li 019ae24c94 config_tools: update the hugepage algorithm
update the hugepages algorithm as the following steps.
1. calculate the total hugepages of service vm using the formula.
   "total memory - the memory consumed by pre-launched VMs - 3G
   -1G(memory need by service vm supporting virtio gpu)
   -300M*num(number of virtio gpu instance)"
2. calculate hugepage 2M/1G based post-launched vm memory setting.
3. correct the 2M/1G hugepages with the total hugepages in step 1.
   "correct_mb, correct_gb= math.modf(total hugepages - the memory
    consumed by Post_launched vm)
    hugepages_1gb = hugepages_1gb + correct_gb
    hugepages_2mb = hugepages_2mb + math.ceil(correct_mb*1024/2)"

Tracked-On: #7301
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2022-05-07 10:51:10 +08:00
..
lib Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
bdf.py misc: refine vuart connection 2022-03-08 17:07:48 +08:00
board_capability.py config-tools: generate ACFG_MAX_PCI_BUS_NUM based on board.xml 2021-12-13 11:06:10 +08:00
clos.py misc: fix the issue of create hv node 2022-04-28 13:42:54 +08:00
cpu_affinity.py config_tools: track whether each vCPU is used for real-time or not 2022-04-21 10:08:53 +08:00
gpa.py config-tools: extract the SSRAM area size 2022-04-18 16:47:23 +08:00
guest_flags.py misc: set PMU_PT flag for pre-launched RTVM 2022-03-29 09:34:17 +08:00
intx.py Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
main.py misc: fix the issue of create hv node 2022-04-28 13:42:54 +08:00
memory_allocator.py config_tools: update the hugepage algorithm 2022-05-07 10:51:10 +08:00
pio.py Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00