This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] Re: Does Xen scheduler preserves 5% of its utilization to ev

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: Does Xen scheduler preserves 5% of its utilization to every VM?
From: walmart <vmwalmart@xxxxxxxxx>
Date: Tue, 14 Sep 2010 01:23:19 -0500
Delivery-date: Mon, 13 Sep 2010 23:24:31 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=5DYc33JRwsHSV1erVoEwaneaGpkc6CIlED9aE0CWIHY=; b=fS8eLJrfF7e6RWiVI5JR/ej5womxCdblxlN7BPjKLEltlLqY6eOWm4KCDtsxH+w0VV 6+byXcNWNllJAOt2xrAcAo8SJDir8w/crUtSYCn1r0CZUYkU2rl6yxQKnS4bMzKxatn9 09+03n9++F89/Dcrq1rtsTrYm1X+aFQZmdTnY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=Uy8FiOkNN3L/7tY1aQku8KkmfD7Eq3vJe94MdaLBPNVMgSieoHCTHD2pnB+RPDwmuS m0+SbrY++jagm3dSHnPm5qprnfgsh+51Vmvsiih9rQ9YCKDmGWr1inqlJ1iR+EY+/Mb/ 4e1LgpDoy/8mgqiOcTKkZdqUzyy2PhvxWRupA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTin1HcycfB6vW6JfGKuxvFaHN9Zq+=CPY=ndsee7@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTin1HcycfB6vW6JfGKuxvFaHN9Zq+=CPY=ndsee7@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, all:

I just noticed credit based scheduler have the same behavior. Except
when I set two domains both busy, the utilization for them is both

Can anyone tell me why a single VCPU can only get 95% of the core,
while two VCPUs can get 100% of it?

I am really confused by this...

Thanks very much!



On Tue, Sep 14, 2010 at 1:16 AM, walmart <vmwalmart@xxxxxxxxx> wrote:
> Hi, all
> I was trying to write a Xen scheduler, it is a fixed priority one and
> would give domain 1 higher priority than domain 2. (which means
> whenever domain 1 is runnable, it got the cpu to run).
> I got two domains running. It is on Fedora 13, 64 bit, Xen 4.0.1.
> domain 1 and doman 2 both only have one vcpu, and are pinned to the same core.
> The strange thing is:
> domain 1 is busy, domain 2 is idle, domain 1 got 95% of the cpu;
> domain 1 is idle, domain 2 is busy, domain 2 got 95% of the cpu;
> domain 1 is busy, domain 2 is busy, domain 1 got 95% of the cpu, while
> domain 2 got the remaining 5%.
> I checked the schedule() function again and again, still couldn't
> figure out why would this happen.
> Could anyone give me some hint?
> thanks very much!
> Best!
> Sam

Xen-devel mailing list