Virtuozzo Virtualization SDK C API Reference
|
Determines whether memory allocation for Virtuozzo Service is performed automatically or manually.
PRL_RESULT PrlDispCfg_IsAdjustMemAuto( PRL_HANDLE hDispConfig, PRL_BOOL_PTR pbAdjustMemAuto );
PrlApiDisp.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.
PRL_ERR_SUCCESS - function completed successfully.
By default, the amount of memory allocated for Virtuozzo Service is calculated automatically based on the total RAM available on the host. You can allocate a different amount of memory if needed using the PrlDispCfg_SetReservedMemLimit function. Before you do that, you must switch memory allocation to manual mode using the PrlDispCfg_SetAdjustMemAuto function. The amount of currently allocated memory can be retrieved using the PrlDispCfg_GetReservedMemLimit function.