Virtuozzo Virtualization SDK C API Reference
|
Allows to manually set recommended memory size for an individual virtual machine.
PRL_RESULT PrlDispCfg_SetRecommendMaxVmMem( PRL_HANDLE hDispConfig, PRL_UINT32 nMemSize );
PrlApiDisp.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle.
PRL_ERR_SUCCESS - function completed successfully.
By default, the recommended memory size for a virtual machine is calculated automatically. If needed, you can set your own recommended memory size using this function. The value must be selected from the memory limit range that can be determined using the PrlDispCfg_GetMinVmMem and PrlDispCfg_GetMaxVmMem functions. The value by itself is not used as a constraint of any kind and is just a suggestion that the end user may act on or not.