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: George Dunlap <dunlapg@xxxxxxxxx>
Subject: Re: [Xen-devel] Does Xen scheduler preserves 5% of its utilization to every VM?
From: walmart <vmwalmart@xxxxxxxxx>
Date: Tue, 14 Sep 2010 23:09:12 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 23 Sep 2010 05:30:07 -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:cc:content-type; bh=nPAf1W8UbLD5OwDn4laLq7UednzTnNI0UjiR0376qr4=; b=ql2+3+HmBx+zHJCJA5+EfPtRIeBHt868zwIyXxmfC3Ok5/qwsERSB9nuoBukD7/cij M+r6wN9A5y30W1u16tEqblU4VLOk3egaZflg7kBU1rVrfMZSaEe0JQ0ZSFoUkTw1qZ0j N5YtO0gKXUaiSD9xKxZJLnQua+ordCJkp50mE=
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:cc:content-type; b=N68bDFgzsZMtllSRTiv/VbwZ8AGKpGMo0pmPn44VNpwWr5iPvr/vzrdw3UGvOc3llt tJ1CAlMIon8v0fYVASkiUimejCed/vLl7F5buhGBiLRKWj05h+vsl3RUgE8kHc+L4x61 5C0sWKl++6EDHaX/Gy2yN+3dbtxz0WvmQ2Mjw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTi=7Q-o_VyCTGG5VeC0PXuTGD+NswQ=WX659xMwZ@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> <AANLkTi=7Q-o_VyCTGG5VeC0PXuTGD+NswQ=WX659xMwZ@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, George:

Thanks for your reply! I am using PV domains. Even if I am using the
default credit based scheduler, the same situation happens.

Please allow me to restate my situation:
Fedora 13, 64bit, compiled Xen 4.0.2 from source code. On a 4 core
machine, domain 0 is pinned to core 1.

I configured domain 1 to have 1 vcpu, and pinned it to core 1.

I am running a busy loop in domain 1.

The xm top in domain 0 shows domain 1 only get exactly 95% of the CPU.

I traced the data for 10 secs. (when only domain 1 was running,
occupying 95% of the cpu). using:
 xentrace -D -e 0x2f000 -S 256 -T 10 trace_credit_sched

I then traced the data for another 10 secs, with domain 1 and 2 both
running busy, occupying 50% of the cpu. using:
 xentrace -D -e 0x2f000 -S 256 -T 10 trace_credit_sched_both

But I don't know how to use xenalyze... Could you help me w/ the trace?

Thanks very much!

Best!

Sam


On Tue, Sep 14, 2010 at 4:14 AM, George Dunlap <dunlapg@xxxxxxxxx> wrote:
> 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
>>
>

Attachment: trace_credit_sched
Description: Binary data

Attachment: trace_credit_sched_both
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>