[virt-tools-list] Virt Manager CPU usage calculation algorithm

Maxim Sditanov feniksa at rambler.ru
Mon Apr 9 19:02:45 UTC 2012

Good day

I implementing in virsh more detailed output for domains
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


With best wishes, Maxim Sditanov

More information about the virt-tools-list mailing list