Evaluating host available memory when starting virtual machines #12277
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@havengit This behavior is actually by design. CloudStack looks at allocated capacity rather than used to ensure a VM always has access to its full RAM when it needs it. For example, if VM1 is allocated 8GB but is currently only using 1GB, and CloudStack were to ignore that allocation and assign the 'unused' 7GB to VM2, you’d run into a major conflict the moment VM1 actually tries to use its full 8GB. If you're concerned about OOM (Out of Memory) issues, there are a few things you can do:
|
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your reply. I now understand the process of allocating memory. I have no further questions. |
Beta Was this translation helpful? Give feedback.


@havengit This behavior is actually by design. CloudStack looks at allocated capacity rather than used to ensure a VM always has access to its full RAM when it needs it. For example, if VM1 is allocated 8GB but is currently only using 1GB, and CloudStack were to ignore that allocation and assign the 'unused' 7GB to VM2, you’d run into a major conflict the moment VM1 actually tries to use its full 8GB.
If you're concerned about OOM (Out of Memory) issues, there are a few things you can do:
Make sure your mem.overprovisioning.factor is set to 1.0. This ensures you aren't 'selling' more RAM than the hardware physically has.
As you mentioned, setting a value for host.reserved.mem.mb is a …