From: Avi Kivity <avi@qumranet.com>
To: "Tian, Kevin" <kevin.tian@intel.com>
Cc: djwong@us.ibm.com, kvm@vger.kernel.org
Subject: Re: [RFC 1/2] Simulate Intel cpufreq MSRs in kvm guests to influencenice priority
Date: Sun, 27 Jul 2008 11:27:22 +0300 [thread overview]
Message-ID: <488C316A.50402@qumranet.com> (raw)
In-Reply-To: <D470B4E54465E3469E2ABBC5AFAC390F024D957E@pdsmsx412.ccr.corp.intel.com>
Tian, Kevin wrote:
>> From: Darrick J. Wong
>> Sent: 2008年7月16日 7:18
>>
>> I envision four scenarios:
>>
>> 0. Guests that don't know about cpufreq still run at whatever
>> nice level
>> they started with.
>>
>> 1. If we have a system with a lot of idle VMs, they will all
>> run with +5
>> nice and this patch has no effect.
>>
>> 2. If we have a system with a lot of busy VMs, they all run
>> with -5 nice
>> and this patch also has no effect.
>>
>> 3. If, however, we have a lot of idle VMs and a few busy ones, then the
>> -5 nice of the busy VMs will get those VMs extra CPU time. On a really
>> crummy FPU microbenchmark I have, the score goes from about 500 to 2000
>> with the patch applied, though of course YMMV. In some respects this
>>
>
> How many VMs did you run in this test? All the VMs are idle except
> the one where your benchmark runs?
>
> How about the actual effect when several VMs are doing some stuff?
>
> There's another scenario where some VMs don't support cpufreq while
> others do. Here is it unfair to just renice the latter when the former is
> not 'nice' at all?
>
I guess the solution for such issues is not to have kvm (or qemu) play
with nice levels, but instead send notifications on virtual frequency
changes on the qemu monitor. The management application can then choose
whether to ignore the information, play with nice levels, or even
propagate the frequency change to the host (useful in client-side
virtualization).
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2008-07-27 8:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-15 23:18 [RFC 1/2] Simulate Intel cpufreq MSRs in kvm guests to influence nice priority Darrick J. Wong
2008-07-16 5:56 ` [RFC 1/2] Simulate Intel cpufreq MSRs in kvm guests to influencenice priority Tian, Kevin
2008-07-17 19:05 ` Darrick J. Wong
2008-07-18 5:44 ` [RFC 1/2] Simulate Intel cpufreq MSRs in kvm guests toinfluencenice priority Tian, Kevin
2008-07-27 8:27 ` Avi Kivity [this message]
2008-07-28 0:56 ` [RFC 1/2] Simulate Intel cpufreq MSRs in kvm guests to influencenice priority Tian, Kevin
2008-09-04 19:38 ` Darrick J. Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=488C316A.50402@qumranet.com \
--to=avi@qumranet.com \
--cc=djwong@us.ibm.com \
--cc=kevin.tian@intel.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox