From 1f5d9134f84ca7636b83a1668dd2a355685cfc47 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Mon, 2 Jul 2012 20:39:05 +0200 Subject: [PATCH] feature #1202: Moved hypervisor memory consumption to scheduler, removed from IM probe for vmware --- src/im_mad/remotes/vmware.d/vmware.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/im_mad/remotes/vmware.d/vmware.rb b/src/im_mad/remotes/vmware.d/vmware.rb index 99e831b66d..661f7c304e 100755 --- a/src/im_mad/remotes/vmware.d/vmware.rb +++ b/src/im_mad/remotes/vmware.d/vmware.rb @@ -148,8 +148,8 @@ if vm_ids_array end end -# 80% of the total free calculated memory to take hypervisor into account -free_memory = ($total_memory.to_i - used_memory) * 0.8 +# Scheduler will take hypervisor memory usage into account +free_memory = ($total_memory.to_i - used_memory) # assume all the host's CPU is devoted to running Virtual Machines free_cpu = ($total_cpu.to_f - used_cpu)