Question

How the AHV allocate memory to VM

  • 29 June 2020
  • 6 replies
  • 691 views

Badge

Hi all

I just want to know how nutanix AHV allocate resource(cpu or memory) to VMs?

Like VMware resource share or limit, and memory overcommit?


6 replies

Userlevel 5
Badge +16

You need to set CPU and memory to VM idividually. If you over assign(more then) your cluster can handle. Error will be thrown.

Userlevel 2
Badge +2

There is no memory oversubscription in AHV in the current versions.

Badge

There is no memory oversubscription in AHV in the current versions.

So how much CPU and memory are set, how much will the host consume? Not the actual usage of VM?

Userlevel 2
Badge +2

The VM will be consuming the actual current usage of CPU and memory. 

For example, if you create a VM with 16Gb of memory and at this point of time, the usage is 4Gb, it is consuming 4Gb from the host. But you will not be able to provision more than the host’s maximum of memory.

Badge

@Sergei Ivanov

Thank you for your reply

I have a node with 187.49GB of memory on it, there are three VMs , which use memory resources individually:

VM_A: assign 16GB, use 17%,

VM_B: assign  96GB, use 42.64%

CVM:  assign 32GB , use 79.83%

That node show it consumed 78.08% of memory, according to the above usage, if you look at the actual usage, it would not consume more than half of the node, the consumption data displayed by this node is similar to the memory setting value of the virtual machine?

Userlevel 2
Badge +2

Hi @Wei Cheng 

The value displayed for the host is similar to the sum of values of memory settings of the VMs that are running on that host. It is because memory overprovisioning doesn’t work on AHV and you can’t allocate more memory to your VMs than the host has.

Reply