Bug #68

USEDCPU and FREECPU does not adjust for number of CPU's for kvm hosts

Added by Redmine Admin over 12 years ago. Updated over 12 years ago.

Status:ClosedStart date:
Priority:HighDue 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.

freecpu_kvm.diff Magnifier (787 Bytes) Redmine Admin, 01/28/2009 03:50 PM

Associated revisions

Revision 28d3886f
Added by Tino Vázquez over 12 years ago

Fix for ticket #68.

git-svn-id: http://svn.opennebula.org/one/trunk@408 3034c82b-c49b-4eb3-8279-a7acafdc01c0

Revision 43ef7dbb
Added by Tino Vázquez over 12 years ago

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.

Also available in: Atom PDF