USEDCPU and FREECPU does not adjust for number of CPU's for kvm hosts
|Assignee:||Javi Fontan||% Done:|
|Category:||Drivers - Auth|
|Target version:||Release 1.2.1|
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.
Backported Fix in  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