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


Re: [Xen-devel] pragmatically determine scheduler type

To: "Kaleb Pederson" <kibab@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] pragmatically determine scheduler type
From: "B Thomas" <bjthomas3@xxxxxxxxx>
Date: Mon, 15 May 2006 20:19:28 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 15 May 2006 17:19:50 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=SarR3VTYDSpxq2bdv+NZ5aAZDptJKY8vHWyRCePIQVp4U/IdJieWpzqR82W3pwQVyRUWtt0aGkutey0yBhRUTF1aMbVRcZZPrh6YKua1HXW+ykv1g7Jx+c68zEK4mu+b1+tkD+jZVytHuw9tT1l5gJeaX1KDambe8JGA4zhQ93w=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060515195815.GB29721@kibab>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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


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.


Xen-devel mailing list

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>