[PATCH V4 0/5] Add new public API virDomainGetCPUStats()

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

 



Previous thread title was

  [PATCH 0/5 0/1 0/1 V3] Add new public API virDomainGetPcpusUsage() and pcpuinfo command in virsh

This is new version. As suggested in previous thread, this version impelements
virDomainGetCPUStats(), which uses virTypedParameterPtr as argument.
I wonder I've already missed the deadline. If this this version is not enough,
Lai-san will post v5. Someone may think the new API is complicated.

This patch set provides new virsh command, cpu-accts. This shows guest's cpu usage.

[root@bluextal ~]# virsh cpu-accts GuestX1
Total:
        cpu_time        165.4
CPU0:
        cpu_time        0.0
CPU1:
        cpu_time        0.0
CPU2:
        cpu_time        0.0
CPU3:
        cpu_time        0.0
CPU4:
        cpu_time        78.9
CPU5:
        cpu_time        0.0
CPU6:
        cpu_time        0.0
CPU7:
        cpu_time        86.5

In this case, GuestX1 used 160sec of CPU and mainly using CPU5 and CPU7.

Changes:
 - changed API design
 - handle preset_cpu_map and max cpu id
 - dropped Python API.

Note:
 - This patch set doesn't include Python API etc..we'll prepare ones if
   C APIs are finally fixed.

Thanks,
-Kame

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]