CLOUDSTACK-4863: Count CPU hyper-threading as logical CPU core for allocation

This commit is contained in:
Kelven Yang 2013-10-14 17:32:50 -07:00
parent 68952514ce
commit 7d89cecfff
1 changed files with 1 additions and 1 deletions

View File

@ -910,7 +910,7 @@ public class HostMO extends BaseMO implements VmwareHypervisorHost {
HostHardwareSummary hardwareSummary = getHostHardwareSummary();
// TODO: not sure how hyper-thread is counted in VMware resource pool
summary.setCpuCount(hardwareSummary.getNumCpuCores());
summary.setCpuCount(hardwareSummary.getNumCpuThreads());
summary.setMemoryBytes(hardwareSummary.getMemorySize());
summary.setCpuSpeed(hardwareSummary.getCpuMhz());