Virtuozzo Virtualization SDK C API Reference
|
Allows to manually set the upper limit of the memory size that can be reserved for Virtuozzo Service operation.
PRL_RESULT PrlDispCfg_SetMaxReservMemLimit( 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, memory limits are calculated automatically based on the host machine RAM size. If needed, you can use this function to modify the default value of the maximum reserved memory size. Please note that modifying default memory limits must be done with extreme caution. Unjustified memory limits may result in too much or too little memory reserved for Virtuozzo Service, which in turn may lead to an unstable or inefficient system. While this and other functions allow you to experiment with Virtuozzo Service memory limits, the default values are the ones that should be used in most situations.