14.5.10. Retrieving Memory Statistics for a Running Domain
This command may return varied results depending on the hypervisor you are using.
dommemstat [domain] [--period (sec)][[--config][--live]|[--current]]displays the memory statistics for a running domain. Using the
--periodoption requires a time period in seconds. Setting this option to a value larger than 0 will allow the balloon driver to return additional statistics which will be displayed by subsequent
domemstatcommands. Setting the
--periodoption to 0, will stop the balloon driver collection but does not clear the statistics in the balloon driver. You cannot use the
--currentoptions without also setting the
--periodoption in order to also set the collection period for the balloon driver. If the
--liveoption is specified, only the running guest's collection period is affected. If the
--configoption is used, it will affect the next boot of a persistent guest. If
--currentoption is used, it will affect the current guest state
--configoptions may be used but
--currentis exclusive. If no option is specified, the behavior will be different depending on the guest's state.
virsh domemstat rhel6