From: George Dunlap <George.Dunlap@eu.citrix.com>
To: Yuehai Xu <yuehaixu@gmail.com>
Cc: "xen-tools@lists.xensource.com" <xen-tools@lists.xensource.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"yhxu@wayne.edu" <yhxu@wayne.edu>
Subject: Re: CPU usage for credit2
Date: Fri, 24 Sep 2010 12:38:21 +0100 [thread overview]
Message-ID: <4C9C8DAD.90500@eu.citrix.com> (raw)
In-Reply-To: <AANLkTikJHSaFn4+7W3G+B8YgRYh-dx5WgdQTMQ1UL3F0@mail.gmail.com>
I assume that your system has more than 1 PCPU, and that you're using
pinning to try to limit the VM to 1 PCPU?
At the moment, the credit2 scheduler doesn't implement pinning -- cpu
affinity is entirely ignored. (It is an experimental scheduler, after
all.) I think theoretically making pinning function shouldn't be too
hard; but making the credit algorithm work with an arbitrary combination
of affinities would require some careful thinking, and might not even be
possible.
If you want, you can try to use cpu pools to isolate the two VMs to a
single PCPU. I haven't tried credit2 with pools yet, but in theory it
should work.
-George
On 23/09/10 14:48, Yuehai Xu wrote:
> Hi,
>
> Suppose 2 VMs both of which just has a single VCPU share a single
> PCPU, if I run CPU intensive program in both of the VMs, the
> percentage of CPU usage from xentop is almost 100% for both of the
> VMs. I got confusing because since 2 VCPU shares a single PCPU, the
> percentage for each one should be around 50%, which is the result if I
> change the scheduler from credit2 to credit.
>
> Does it because credit2 change something or is this a bug for xentop or credit2?
>
> Thanks,
> Yuehai
next prev parent reply other threads:[~2010-09-24 11:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-23 13:48 CPU usage for credit2 Yuehai Xu
2010-09-24 11:38 ` George Dunlap [this message]
2010-09-24 14:14 ` Yuehai Xu
2010-09-24 16:24 ` George Dunlap
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=4C9C8DAD.90500@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
--cc=xen-tools@lists.xensource.com \
--cc=yhxu@wayne.edu \
--cc=yuehaixu@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.