1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #1202: Moved hypervisor memory consumption to scheduler, removed from IM probe for vmware

This commit is contained in:
Ruben S. Montero 2012-07-02 20:39:05 +02:00
parent fcae47a843
commit 1f5d9134f8

View File

@ -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)