From: Anthony Liguori <anthony@codemonkey.ws>
To: 刘志建 <aleck_liu@163.com>
Cc: kvm@vger.kernel.org, avi@redhat.com
Subject: Re: Is guest OS oriented scheduling welcome?
Date: Thu, 23 Apr 2009 19:19:43 -0500 [thread overview]
Message-ID: <49F1059F.5000404@codemonkey.ws> (raw)
In-Reply-To: <1060494.867561240402736300.JavaMail.coremail@app167.163.com>
刘志建 wrote:
> Hello folks,
> In the past, it was said KVM would like to treat the guest OS threads differently in scheduling. However, till now, the qemu thread is regarded as a conventional user thread. Therefore, it is hard to control how much CPU slices one guest OS can utilize. I don't think a computing cloud provider likes this idea.
> And, what's more, "Xen and Co.: Communication-aware CPU Scheduling for Consolidated Xen-based Hosting Platforms"(http://www.cse.psu.edu/~sgovinda/papers/vee07.pdf) has shown that the standard thread scheduling in Linux might not fit the virtualization environment well.
By standard thread scheduling, I presume you mean scheduling that
doesn't take into account IO? That is, this paper is arguing that in a
virtualization environment, you want to provide temporary
disproportionate scheduling to favor IO bound workloads over CPU bound
workloads.
I don't think you need the credit scheduler to implement this idea in
KVM. CFS provides a number of tunables to userspace along with pretty
fine grain control ala cgroups. I think that provides you a roughly
equivalent interface to userspace that could be used to make scheduling
adjustments based on IO consumption.
What are the other motivating factors for wanting to use credit over cfs?
Regards,
Anthony Liguori
next prev parent reply other threads:[~2009-04-24 0:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1060494.867561240402736300.JavaMail.coremail@app167.163.com>
2009-04-22 12:22 ` Is guest OS oriented scheduling welcome? Avi Kivity
2009-04-22 12:34 ` Daniel P. Berrange
2009-04-24 0:19 ` Anthony Liguori [this message]
2009-04-24 2:55 ` Andrew de Andrade
2009-04-24 6:10 alex
2009-04-24 13:16 ` Anthony Liguori
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=49F1059F.5000404@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=aleck_liu@163.com \
--cc=avi@redhat.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