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

[libvirt] [PATCH 0/4] Add new public API virDomainGetPcpusUsage and pcpuinfo command in virsh



"virt-top -1" can call virDomainGetPcpusUsage() periodically and get
the CPU activities per CPU. (still require virt-top site patch).

virsh is also added a pcpuinfo command which calls virDomainGetPcpusUsage(),
it gets information about the physic CPUs, such as the usage of
CPUs, the current attached vCPUs.

# virsh pcpuinfo rhel6
CPU:            0
Curr VCPU:      -
Usage:          47.3

CPU:            1
Curr VCPU:      1
Usage:          46.8

CPU:            2
Curr VCPU:      0
Usage:          52.7

CPU:            3
Curr VCPU:      -
Usage:          44.1

Lai Jiangshan (4):
  Add new public API virDomainGetPcpusUsage
  remote: support new API virDomainGetPcpusUsage for remote driver
  qemu: implemnt new API virDomainGetPcpusUsage for qemu driver
  Enable the pcpuinfo command in virsh

 daemon/remote.c              |   68 ++++++++++++++++++++++++++++++
 include/libvirt/libvirt.h.in |    5 ++
 python/generator.py          |    1 +
 src/driver.h                 |    7 +++
 src/libvirt.c                |   51 +++++++++++++++++++++++
 src/libvirt_public.syms      |    5 ++
 src/qemu/qemu.conf           |    5 +-
 src/qemu/qemu_conf.c         |    3 +-
 src/qemu/qemu_driver.c       |   74 +++++++++++++++++++++++++++++++++
 src/remote/remote_driver.c   |   51 +++++++++++++++++++++++
 src/remote/remote_protocol.x |   17 +++++++-
 src/remote_protocol-structs  |   13 ++++++
 src/util/cgroup.c            |    7 +++
 src/util/cgroup.h            |    1 +
 tools/virsh.c                |   93 ++++++++++++++++++++++++++++++++++++++++++
 tools/virsh.pod              |    5 ++
 16 files changed, 402 insertions(+), 4 deletions(-)

-- 
1.7.4.4


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