libvirt / KVM
Inspect KVM guest memory statistics
virsh dommemstat <vm>
Operational command for Inspect KVM guest memory statistics. Focus fields: actual, rss, available, usable, swap-in/out and balloon statistics.
Use when working the canonical Topic virtualization--memory-virtualization-memory-troubleshooting and the matching failure boundary.
compare host memory pressure and guest balloon configuration during the same interval
Privilege Use an account/context authorized for this observation; do not broaden scope unnecessarily.State impact Read-onlyProduction Unknown
Field glossary
Important fields projected from persisted Command guidance.
actual, rss, available, usable, swap-in/out and balloon statisticsImportant persisted output field; use surrounding guidance for interpretation.
Used in these Topics
Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.
Evidence boundary
What this output can establish — and where you must not over-claim.
This command directly exposes actual, rss, available, usable, swap-in/out and balloon statistics for the selected object/context at execution time.
It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.
compare host memory pressure and guest balloon configuration during the same interval
Command guidance
Execution context
libvirt / KVM
Use when
Use when working the canonical Topic virtualization--memory-virtualization-memory-troubleshooting and the matching failure boundary.
Important fields
actual, rss, available, usable, swap-in/out and balloon statistics
Common problems
Common mistakes: wrong object, node, VRF/namespace, time window, or treating a management-plane status as workload proof.
Operational impact
Read-only observation; runtime cost still depends on platform and result size.
Runtime cautions
Capture the command, selected scope and timestamp so the result can be correlated with the original test.
Technical context
Known-good: guest memory allocation/usable state matches baseline without abnormal swap/balloon pressure. Suspicious: usable memory collapses or swap/balloon indicators align with the incident. Next discriminating check: compare host memory pressure and guest balloon configuration during the same interval.
Variants · known-good and broken output
Read the stored sample against its authored expected state and interpretation, then return to the Command evidence boundary for what the observation can and cannot prove.
Illustrative Known-good interpretationKnown-good · libvirt / KVM
Illustrative state cue only; not captured output: guest memory allocation/usable state matches baseline without abnormal swap/balloon pressurehealthy
Inspect KVM guest memory statistics — Known-good. Inspect actual, rss, available, usable, swap-in/out and balloon statistics. Observed cue: guest memory allocation/usable state matches baseline without abnormal swap/balloon pressure. This supports only the state returned by virsh dommemstat <vm> for the selected object and time window. It does not establish root cause or prove the next dependency. Next check: compare host memory pressure and guest balloon configuration during the same interval. Correlate the result with the same workload/test before declaring recovery.
This command directly exposes actual, rss, available, usable, swap-in/out and balloon statistics for the selected object/context at execution time.
Does not prove: It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.compare host memory pressure and guest balloon configuration during the same interval
Illustrative Transitional interpretationTransitional · libvirt / KVM
Illustrative state cue only; not captured output: The command returns the expected object, but one or more state/counter fields are still moving toward a terminal result.transitional
Inspect KVM guest memory statistics — Transitional. Inspect actual, rss, available, usable, swap-in/out and balloon statistics. Observed cue: The command returns the expected object, but one or more state/counter fields are still moving toward a terminal result.. This supports only the state returned by virsh dommemstat <vm> for the selected object and time window. It does not establish root cause or prove the next dependency. Next check: compare host memory pressure and guest balloon configuration during the same interval. Correlate the result with the same workload/test before declaring recovery.
This command directly exposes actual, rss, available, usable, swap-in/out and balloon statistics for the selected object/context at execution time.
Does not prove: It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.compare host memory pressure and guest balloon configuration during the same interval
Illustrative Broken interpretationBroken · libvirt / KVM
Illustrative state cue only; not captured output: usable memory collapses or swap/balloon indicators align with the incidentbroken
Inspect KVM guest memory statistics — Broken. Inspect actual, rss, available, usable, swap-in/out and balloon statistics. Observed cue: usable memory collapses or swap/balloon indicators align with the incident. This supports only the state returned by virsh dommemstat <vm> for the selected object and time window. It does not establish root cause or prove the next dependency. Next check: compare host memory pressure and guest balloon configuration during the same interval. Correlate the result with the same workload/test before declaring recovery.
This command directly exposes actual, rss, available, usable, swap-in/out and balloon statistics for the selected object/context at execution time.
Does not prove: It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.compare host memory pressure and guest balloon configuration during the same interval