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] pragmatically determine scheduler type

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] pragmatically determine scheduler type
From: Kaleb Pederson <kibab@xxxxxxxxxxxx>
Date: Mon, 15 May 2006 17:27:45 -0700
Cc: B Thomas <bjthomas3@xxxxxxxxx>
Delivery-date: Mon, 15 May 2006 17:28:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <a8a6bd980605151719u15e8a300sbd7a1e3bfdbe1d23@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20060515195815.GB29721@kibab> <a8a6bd980605151719u15e8a300sbd7a1e3bfdbe1d23@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.1
Yes, that was exactly what I meant and exactly what I needed!

Thank you.

--Kaleb

On Monday 15 May 2006 5:19 pm, B Thomas wrote:
> Assuming that you meant programatically, you can use the xc_sched_id call
> from libxenctrl to get this information:
>
> from xenctrl.h:  int xc_sched_id(int xc_handle, int *sched_id);
>
> use the SCHED_BVT and SCHED_SEDF symbols
>
> use xc_interface_open() to get the xc_handle used above,
> xc_interface_close(handle) to close it
>
>
> -b
>
> On 5/15/06, Kaleb Pederson <kibab@xxxxxxxxxxxx> wrote:
> > Assuming both the BVT and SEDF schedulers are going to be supported, how
> > do I pragmatically determine which scheduler is in use?
> >
> > I guess this assumes 3.0.2 at the moment, but I would hope to have
> > something that could run on any version of 3.0.X.  I could parse the
> > kernel command line arguments in combination with known information
> > about the running version... but that's fairly ugly.
> >
> > Thanks for the help.
> >
> > --Kaleb
> >
> > _______________________________________________
> > 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

<Prev in Thread] Current Thread [Next in Thread>