Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlDispCfg_SetAdjustMemAuto Function
PHT_DISP_CONFIG  See Also

Allows to choose the Virtuozzo Service memory allocation mode from automatic or manual.

Syntax
PRL_RESULT PrlDispCfg_SetAdjustMemAuto(
    PRL_HANDLE hDispConfig, 
    PRL_BOOL bAdjustMemAuto
);
File

PrlApiDisp.h

Parameters

hDispConfig
A handle of type PHT_DISP_CONFIG.
bAdjustMemAuto
To set the size automatically, set this parameter to PRL_TRUE. To set the size manually, set this parameter to PRL_FALSE and then use the PrlDispCfg_SetReservedMemLimit function to set the size.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

By default, the amount of memory allocated for Virtuozzo Service operations 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 using this function. The current memory allocation method can be determined using the PrlDispCfg_IsAdjustMemAuto function. The amount of currently allocated memory can be retrieved using the PrlDispCfg_GetReservedMemLimit function.

See Also
Links
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.