Hi, everyone.
I wrote new API called virNodeGetMemoryStats().
It returns total/free/buffer/cached memory of the node from /proc/meminfo.
The user I/F is like virNodeGetCPUStats().
Previous discussion is here.
(See about virNodeGetFreeMemory() part.)
http://www.mail-archive.com/libvir-list@redhat.com/msg32553.html
This patch series based on latest git tree.
If my virNodeGetCPUStats() patch series applied, I'll rebase on it.
Minoru Usui (6):
virNodeGetMemoryStats: Expose new API
virNodeGetMemoryStats: Define internal driver API
virNodeGetMemoryStats: Implement public API
virNodeGetMemoryStats: Implement remote protocol
virNodeGetMemoryStats: Implement virsh support
virNodeGetMemoryStats: Implement linux support
daemon/remote.c | 76 +++++++++++++++++++++++++++++++++
include/libvirt/libvirt.h.in | 65 +++++++++++++++++++++++++++-
src/driver.h | 8 +++
src/libvirt.c | 81 +++++++++++++++++++++++++++++++++++
src/libvirt_private.syms | 1 +
src/libvirt_public.syms | 1 +
src/lxc/lxc_driver.c | 1 +
src/nodeinfo.c | 97 ++++++++++++++++++++++++++++++++++++++++++
src/nodeinfo.h | 4 ++
src/qemu/qemu_driver.c | 1 +
src/remote/remote_driver.c | 63 +++++++++++++++++++++++++++
src/remote/remote_protocol.x | 21 +++++++++-
src/uml/uml_driver.c | 1 +
tools/virsh.c | 51 ++++++++++++++++++++++
tools/virsh.pod | 4 ++
15 files changed, 473 insertions(+), 2 deletions(-)
--
Minoru Usui <usui(a)mxm.nes.nec.co.jp>