Virtuozzo Virtualization SDK C API Reference
|
Allows to set the amount of memory that will be allocated for Virtuozzo Service operation.
PRL_RESULT PrlDispCfg_SetReservedMemLimit( PRL_HANDLE hDispConfig, PRL_UINT32 nMemSize );
PrlApiDisp.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle.
PRL_ERR_SUCCESS - function completed successfully.
The memory size must fall within the memory limits that can be determined using the PrlDispCfg_GetMaxReservMemLimit and the PrlDispCfg_GetMinReservMemLimit functions. By default, the memory size is calculated automatically based on the total RAM available on the host. If you are changing the default value, you must also switch the Virtuozzo Service memory allocation to manual mode using the PrlDispCfg_SetAdjustMemAuto function.