]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add a new command dommemstats for virDomainMemoryStats
authorAdam Litke <agl@us.ibm.com>
Sun, 20 Dec 2009 12:46:24 +0000 (13:46 +0100)
committerDaniel Veillard <veillard@redhat.com>
Sun, 20 Dec 2009 12:46:24 +0000 (13:46 +0100)
commitb6798b68cb9c6de18f33576841a336eee312e317
tree9eb22153483e98209fa70ce7375cf8ee1ec2fe38
parent841d50358fe7fdf48f822d7df5dce0fe8039864c
Add a new command dommemstats for virDomainMemoryStats

Define a new command 'dommemstats' to report domain memory statistics.  The
output format is inspired by 'domblkstat' and 'domifstat' and consists of
tag/value pairs, one per line.  The command can complete successfully and
print no output if virDomainMemoryStats is supported by the driver, but not
the guest operating system.

Sample output:
swap_in 0
swap_out 0
major_fault 54
minor_fault 58259
unused 487680
available 502472

All stats referring to a quantity of memory (eg. all above except major and
minor faults) represent the quantity in KBytes.

* tools/virsh.c: implements the new command
tools/virsh.c