[libvirt] get information about weighted instances

Daniel P. Berrange berrange at redhat.com
Mon Mar 17 16:18:30 UTC 2014


On Sun, Mar 16, 2014 at 07:23:34PM +0000, sahid wrote:
> Greetings,
> 
> There is a new field I would like to add in the return of the command
> "vcpuinfo" to get the current "cpu shares" of a domain.
> The aim is to help managing weighted instances. Avoiding to look at the domain
> xml to compare instances.
> 
> 
> VCPU:           0
> CPU:            3
> State:          running
> CPU time:       4811.3s
> CPU Affinity:   yyyy
> CPU Shares:     2048
> 
> 
> I would like to know if this solution make sens for the community? and if yes I
> could be work on it.

You can actually get the CPU shares (and other schedular tunables) from
the 'virsh schedinfo' command already avoiding the need to look at XML

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list