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] Scheduler problem in XEN 3.4.0

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Scheduler problem in XEN 3.4.0
From: Pankaj Parakh <me.pankajparakh@xxxxxxxxx>
Date: Fri, 23 Oct 2009 21:08:25 +0530
Cc: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
Delivery-date: Fri, 23 Oct 2009 08:38:54 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=7GaJmVeduhmAbIg00XHh0FSZNHv7iIVj/UOngBfN8t8=; b=W2oSt3XXn9ae8F2oD6Xeavl+7TXsf6fdIjpL7audsYWqL/JF/fjGa1zvFCq0YoRBv6 hQGV/A9Q8mlHoxQwjF9KovkcWRLA+8/qEOJ8vT14+kLO/mbD9a/R14USL7u2Gl3AFPJ5 KyjOnWHpOI7CfojqjdIXnNOtERMmogXEJlD20=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=h1CmD1Ays9Ba2S9PzeJX9xCYxNqnU+7DsBh6D+gSAyz/gEnLnYNcNXpuvNQnHhjMQE FHVzdl7Xb5Rno4N+NO/ogGZTzCve1LgH7mgSlvvNSV3/r3+1PjUhyf/2Z/PVKEe4nwJV GunXZOWgwkOdfKTGD2aV0Mvo/8FM6I7uV+yvM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <de76405a0910130447j4691a4f8mb3e5294896374dfd@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: <27a8ee1b0910121015j1b15c8c0u85bbc932dfad64ac@xxxxxxxxxxxxxx> <de76405a0910130447j4691a4f8mb3e5294896374dfd@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi George,

Thanks for showing interest, First of all I'll try to setup debugging
environment for Xen, I also checked the mailing list of Ananth also I
know him personally, he has left it some where in middle.

I tried printk's and locking method to find out which function is
being called in schedule.c, I found the following sequence:-

schedule_init()
schedule_domain_init()
schedule_vcpu_init()
schedule_domain_init()
schedule_vcpu_init()
(from here no function is called from schedule.c, but system hangs)

I cant say what the problem is, I am only changing the sched_priv data
of vcpu struct, also my rr sched has only three functions viz
init_vcpu, destroy_vcpu, do_schedule.

I have attached the code as well.

Following are my doubts:

1. Is the above function sequence is right ? Why two times init_domain
is called during the boot.

2. Do a scheduler policy need to manipulate other part of vcpu struct
(other than sched_priv)

3. Is it necessary to maintain domain information inside scheduler policy

On Tue, Oct 13, 2009 at 5:17 PM, George Dunlap
<George.Dunlap@xxxxxxxxxxxxx> wrote:
>
> Pankaj,
>
> I haven't used the round-robin scheduler code in that book, but
> another guy named Ananth tried to use it unsuccessfully as well.  You
> can see some of that thread here (not sure why I can't find the
> original post):
>  http://lists.xensource.com/archives/html/xen-devel/2009-05/msg00004.html
>
> Most of us are not so interested in finding the bug in the books'
> code, but we are interested in helping *you* find it.  If you continue
> to do hypervisor work (and especially if you do anything with the
> scheduler), you're going to have to learn how to debug a hypervisor,
> which is often rather a pain in the neck.
>
> There is some advice in the thread linked to above about setting up a
> serial console.  You can add printk()'s around to find out what the
> sched_rr code is doing and where it's going wrong, and ask more
> questions on the list if you get stuck.  (Feel free to cc me to bring
> it to my attention, but always send it to the whole list.)
>
> Good luck,
>  -George
>
>
> On Mon, Oct 12, 2009 at 6:15 PM, Pankaj Parakh
> <me.pankajparakh@xxxxxxxxx> wrote:
> > Hi All,
> >
> > I am trying to learn about schedulers of XEN, so for a start I am
> > using XEN 3.4.0 and using book - The Definitive Guide to the Xen
> > Hypervisor - by David Chisnall, I have followed its steps to add
> > scheduler which is there in Chap. 12
> > But I dont know what is the problem, I am unable to boot with that
> > scheduler selected, I have been trying to debug this problem, but
> > kinda stuck in it.
> > The scheduler given in that book is a trivial round robin scheduler.
> >
> > Is the problem is with the code or with the procedure, I dont know that 
> > also.
> >
> > Plzz help me out of this.
> >
> > Thanks
> > Pankaj Parakh
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-devel
> >



--
Pankaj Parakh

Attachment: sched_trivial.c
Description: Text Data

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