Skip to contentSkip to conversation

pragmatically determine scheduler type

DISCUSSION Kaleb Pederson 2 participants 3 messages May 15, 2006 – May 16, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

Quoted 9 lines · Kaleb Pederson

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.

Quoted 9 lines

Thanks for the help.

--Kaleb

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

Yes, that was exactly what I meant and exactly what I needed!

Thank you.

--Kaleb

Quoted 30 lines · B Thomas

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

Quoted 16 lines · Kaleb Pederson

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
[email protected]
http://lists.xensource.com/xen-devel