[Libvir] [PATCH][RFC] shows scheduler information
sakaia at jp.fujitsu.com
Fri Apr 6 09:20:08 UTC 2007
This patch intends to see and handle scheduler parameters.
This is based on ML discussion.
This patch just support Xen/Credit for Type/Parameters
Xen/SEDF for Type only.
And other scheduler is not supported
but it will be easy to add it.
===How to use (at commandline)===
virsh schedinfo 0
(to see Type/Parameters)
virsh schedinfo 0 --weight 512
(to set weight and to show changed Type/Parameters)
virsh schedinfo 0 --cap 50
(to set cap and to show changed Type/Parameters)
===Related to API===
I make API based on Dan's mail.
But I have added a little bit changes.
Add Unsigned Int and Unsigned Long Long
Add variable to return the number of parameters.
This purposes allocate virSchedParameter memory on virsh not in libvirt.
tabspace seems 2, it should be fixed.
If needed, I will post it as another patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 25790 bytes
Desc: not available
More information about the libvir-list