WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: walmart <vmwalmart@xxxxxxxxx>
Subject: Re: [Xen-devel] Does Xen scheduler preserves 5% of its utilization to every VM?
From: George Dunlap <dunlapg@xxxxxxxxx>
Date: Tue, 14 Sep 2010 10:14:03 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 14 Sep 2010 02:14:39 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=ItV9MZ3+aMKrYPdTEQM3D+5d1Pl9OpGVYwjgJPv9cL0=; b=lsSraFEeYOSO/6ZwfSkLeA4MG3cVFUxeydVVzzstW+0dadu75SzFN8LThxRjYdi8z7 dmM976PRFdefSLsQiuztHqg9BTbCuZAOUu+PQ+MspGQevXHBqNEeHT+oH1fXBGKFGcqZ UBoSkwEYDhoXf5nyOM6Bzy/CL90PljNR8knvw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=f+FXfi4Lt2afVu1ByvvNtL3BpU+YD5f/UDMSZpDuoPQ+1S/Vu5nejffAtxK3pUVxtr fszLl/rylE0odGnM+gmXZHTiDmBx1HpIIk4C69QfldgBni2hLL4PlSzJvFYpJ54MogEf HVVgYeDYwZyTKVa9WDuVgrHftkT6/rekvMUtE=
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
Are these PV domains, or HVM domains?

If they're HVM domains, by necessity they will be doing QEMU
operations.  When doing qemu operations, they block and dom0 is
scheduled.  This blocking would allow the lower-priority VM space to
run.

Your best bet is to use xentrace + xenalyze to see what's going on
with scheduling.  You can find xenalyze here:
 http://xenbits.xensource.com/ext/xenalyze.hg

 -George

On Tue, Sep 14, 2010 at 7: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
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel