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: Thursday, December 2, 2010 - 8:23 am

On 12/02/2010 08:39 AM, lidong chen wrote:

If you run 4 guests on a CPU, and they're all trying to consume 100% 
CPU, all things being equal, you'll get ~25% CPU for each guest.

However, if one guest is idle, you'll get something like 1% 32% 33% 
32%.  This characteristic is usually desirable because it increase 
aggregate throughput but in some circumstances, determinism is more 
desirable than aggregate throughput.

This patch essentially makes guest execution non-work conserving by 
making it appear to the scheduler that each guest wants 100% CPU even 
though they may be idling.

That means that regardless of what each guest is doing, if you have four 
guests on one CPU, each will get ~25% CPU[1].

[1] there are corner cases around things like forced sleep due to PFs 
and the like.  The goal is not for 100% determinism but more to at least 
obtain more significantly more determinism than we have now.

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 ..., Anthony Liguori, (Thu Dec 2, 8:23 am)
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)