problem when get the vm cpu stat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

 

I try to get vm cpu stat by function “virDomainGetCPUStats”,  when the vm

 

Cpu usage is 100%, I can see from the vm shell by “top”,  when the info

 

Get by the “virDomainGetCPUStats” show only the “cpu_time” increased,

 

“user_time” and “system_time” was not changed at all.

 

Is that correct ? How can I get the vm cpu usage?

 

nparams = virDomainGetCPUStats(domain, NULL, 0, -1, 1, 0);

virDomainGetCPUStats(domain, params, nparams, -1, 1, 0);

 

Thanks,

Kevin.

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux