Bug #68
USEDCPU and FREECPU does not adjust for number of CPU's for kvm hosts
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | Javi Fontan | % Done: | 0% | |
Category: | Drivers - Auth | |||
Target version: | Release 1.2.1 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: |
Description
USEDCPU and FREECPU are calculated based on output from top, but top runs in Solaris mode by default, so the amount of idle cpu is divided by the number of CPU's. The attached patch counters this.
I happened to discover this because a VM with "CPU = 2" never got scheduled for deployment, becuase no host ever reported a FREECPU value of more than 100.
Associated revisions
Fix for ticket #68.
git-svn-id: http://svn.opennebula.org/one/trunk@408 3034c82b-c49b-4eb3-8279-a7acafdc01c0
Backported Fix in [408] for ticket #68 to the 1.2 branch.
git-svn-id: http://svn.opennebula.org/one/branches/one-1.2@409 3034c82b-c49b-4eb3-8279-a7acafdc01c0
History
#1 Updated by Ruben S. Montero over 12 years ago
Moving this to 1.2.1 release
#2 Updated by Tino Vázquez over 12 years ago
- Status changed from New to Closed
- Resolution set to fixed
Fixed in r408.