Returns the maximum amount of guest memory which will fit, together with overheads, in the supplied amount of physical memory. If 'exact' is true then an exact calculation is performed using the VM's current settings. If 'exact' is false then a more conservative approximation is used
| Return value | ||
| type | description | |
| int | The maximum possible static-max | |
| Parameters | ||
| name | type | description |
| session_id | session | valid session reference |
| self | VM | The VM |
| total | int | Total amount of physical RAM to fit within |
| approximate | bool | If false the limit is calculated with the guest's current exact configuration. Otherwise a more approximate calculation is performed |
| Errors | ||
| name | arguments | description |
- Message has both a synchronous and asynchronous version
- This is a custom message