Re: [PATCH] kvm-vmx: add module parameter to avoid trapping HLT instructions (v2)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Anthony Liguori
Date: Friday, December 3, 2010 - 11:55 am

On 12/03/2010 12:20 PM, Chris Wright wrote:

Right.  I'm not familiar with any models that are actually based on 
CPU-consumption based accounting.  In general, the feedback I've 
received is that predictable accounting is pretty critical so I don't 
anticipate something as volatile as CPU-consumption ever being something 
that's explicitly charged for in a granular fashion.


The question is, why would something care about host CPU utilization?  
The answer I can think of is, something wants to measure host CPU 
utilization to identify an underutilized node.  One the underutilized 
node is identified, more work can be given to it.

Adding more work to an underutilized node doesn't change the amount of 
work that can be done.  More concretely, one PCPU, four independent 
VCPUs.  They are consuming, 25%, 25%, 25%, 12% respectively.  My 
management software says, ah hah, I can stick a fifth VCPU on this box 
that's only using 5%.  The other VCPUs are unaffected.

However, in a no-yield-on-hlt model, if I have four VCPUs, they each get 
25%, 25%, 25%, 25% on the host.  Three of the VCPUs are running 100% in 
the guest and one is running 50%.

If I add a fifth VCPU, even if it's only using 5%, each VCPU drops to 
20%.  That means the three VCPUS that are consuming 100% now see a 25% 
drop in their performance even though you've added an idle guest.

Basically, the traditional view of density simply doesn't apply in this 
model.

Regards,

Anthony Liguori


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] kvm-vmx: add module parameter to avoid trappin ..., Srivatsa Vaddagiri, (Fri Dec 3, 4:12 am)
Re: [PATCH] kvm-vmx: add module parameter to avoid trappin ..., Srivatsa Vaddagiri, (Fri Dec 3, 4:21 am)
Re: [PATCH] kvm-vmx: add module parameter to avoid trappin ..., Srivatsa Vaddagiri, (Fri Dec 3, 4:57 am)
Re: [PATCH] kvm-vmx: add module parameter to avoid trappin ..., Srivatsa Vaddagiri, (Fri Dec 3, 9:27 am)
Re: [PATCH] kvm-vmx: add module parameter to avoid trappin ..., Srivatsa Vaddagiri, (Fri Dec 3, 10:33 am)
Re: [PATCH] kvm-vmx: add module parameter to avoid trappin ..., Srivatsa Vaddagiri, (Fri Dec 3, 10:36 am)
Re: [PATCH] kvm-vmx: add module parameter to avoid trappin ..., Srivatsa Vaddagiri, (Fri Dec 3, 10:43 am)
Re: [PATCH] kvm-vmx: add module parameter to avoid trappin ..., Srivatsa Vaddagiri, (Fri Dec 3, 10:57 am)
Re: [PATCH] kvm-vmx: add module parameter to avoid trappin ..., Srivatsa Vaddagiri, (Fri Dec 3, 11:12 am)
Re: [PATCH] kvm-vmx: add module parameter to avoid trappin ..., Anthony Liguori, (Fri Dec 3, 11:55 am)