Skip navigation

I understand there are quiet few articles regarding monitoring Memory status of Hyper-v. But I would still prefer to write down at least you don’t need to dig around again.

Hyper-v memory status is one of critical parameter you would always focus on.

If it was in Vmware, you would use Vmware embedded performance monitoring to see how much memory your host has and how much your VM takes.

You can do that either from vCenter or ESXi (esxtop).

With Microsoft Hyper-V, you can use following solutions.

  1. Hyper-v manager
  2. Powershell on Hyper-v Host
  3. Performance monitor on Hyper-v Host
  4. PAL analyse result of Performance Monitor
  5. SCOM
  6. SCVMM

 

Hyper-V is using Dynamic memory to allocate physical memory to VM. Instead of like Vmware which uses balloon, sharing to “work around” on optimizing memory usaging, Hyper-V simply just gives memory or take it back since it’s Microsoft Product.

Hyper-v Manager

 

image

The startup RAM is related with smartpage. If there is not enough physical memory available in host, Hyper-V will use SmartPage to use storage as memory to start machine.

Minimum RAM is guaranteed memory server assign this VM. As you know, with Dynamic memory, host does take memory back from VM when VM doesn’t need it. but host won’t take memory below minimum RAM.

Maximum RAM should be reasonable memory a VM may need.

Memory buffer is how much memory increases at time.

 

clip_image002

 

From above picture, the Assigned Memory is actually important. that’s how much memory a physical host has assigned to a VM but it doesn’t mean that’s how much VM believes it has.

For example, a VM can have 8GB memory but assigned memory could be 512MB. This case is important when host try to retrieve memory from VM. With dynamic Memory, when you increase memory on VM, you will see total physical memory from VM increase. but when host takes memory back, it won’t decrease that figure from VM.

 

Powershell on Hyper-v Host

 

image

image

image

image

 

image

 

Performance monitoring on Hyper-v

 

clip_image002[5]

 

clip_image002[7]

 

PAL analyse result of Performance Monitor

 

You can also download PAL

image

Generate Hyper-v performance monitor template

image

Import template to performance monitor and start monitoring for certain time, import result back to PAL

 

image

You will get report like this

image

 

image

 

SCOM and SCVMM is not discussed in this post.

But you can check out following reference to get more details.

 

 

 

Reference:

http://blogs.technet.com/b/haroldwong/archive/2013/03/26/server-virtualization-series-performance-management-memory.aspx

 

http://blogs.technet.com/b/haroldwong/archive/2013/03/08/hyper-v-2012-dynamic-memory-what-does-the-vm-think-it-has-versus-what-it-really-has.aspx

 

http://blogs.technet.com/b/chrisavis/archive/2013/03/06/monitoring-dynamic-memory.aspx

Advertisements

2 Comments

  1. You can also use Lakeside Software SysTrack out of the box Hyper-V roles to pick these up historically / alert and monitor on them

  2. Reblogged this on Le blog IT de Yohan COLLET and commented:
    Reblog de cet excellent article qui traite simplement d’une méthodologie pour l’analyse des performances des VM dans Hyper-V3..


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: