Hi,all
I want to get a relatively accurate cpu usage of a domain. I have a few questions about virDomainGetInfo:
If a domain is assigned to 4 vcpus and my machine has 6 physical cores, then the cpuTime in virDomainInfo should be the sum of cpu time of the 4 vcpus. When I want to calculate the cpu usage, which of the following is more accurate? 1/4 * cpu time / total time or 4/6 * cpu time / total time or just cpu time / total time regards zhangzhang |
_______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users