Open jodh-intel opened 7 years ago
A note: currently the difference between the mem (2G) and maxmem (3G) is used for the nvdimm mapping space for the DAX mapped OS image. We may need to add some extra sanity check/debug information in case the user sets the mem/maxmem which make this mapping fail. My guess is currently it would be an obscure failure in QEMU, and hence hard to figure out what has been 'broken'. We should check what the failure case 'looks like', and if necessary improve the QEMU error reporting or add a pre-QEMU sanity check to the runtime (possibly that could dynamically check the size of the .img file is <= the size of the mem/maxmem difference).
hypervisor.args
currently hard-codes the amount of memory given to the VM using these options:We need to move this logic into the runtime to address 2 issues:
The plan is to modify
hypervisor.args.in
so that rather than the lines above, the qemu-m
option is specified like this instead:These new variables will be expanded by the runtime to their current values. We also need to add new global CLI options
--vm-mem-size=
and--vm-mem-size-max=
to allow these default values to be modified (the user can set them by specifying their runtime using the helper scriptcc-oci-runtime.sh
rather thancc-oci-runtime
- see https://github.com/01org/cc-oci-runtime/wiki/Debugging).For discussion on this topic, see: