Virt Manager CPU usage calculation algorithm

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

 



Good day

I implementing in virsh more detailed output for domains
(https://bugzilla.redhat.com/show_bug.cgi?id=595428).
And i stuck with CPU usage percentage calculation. How virt manager
calculate cpu percentage?
I tried to read virt-manager sources, but it is hard for me to
understand virt-manager (i am not familiar with python).
I found function "_sample_cpu_stats" in file src/virtManager/domain.py
and i think this function make calculations. But i may be wrong

Please, describe logic, how virt-manager calculate cpu usage

Thanks

--
With best wishes, Maxim Sditanov


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux