Difference between revisions of "Virsh domstats"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
<code>[[virsh]] domstats</code>  
+
<code>[[virsh]] domstats VM_NAME</code>  
 +
 
 +
Domain: 'VM_NAME'
 +
  state.state=5
 +
  state.reason=1
 +
  [[balloon]].maximum=524288
 +
  [[vcpu.current]]=4
 +
  [[vcpu.maximum]]=4
 +
  block.count=2
 +
  block.0.name=hda
 +
  block.0.path=/srv/libvirt/DOMAIN_NAME.qcow2
 +
  block.0.allocation=5964578816
 +
  block.0.capacity=21474836480
 +
  block.0.physical=21478375424
 +
  block.1.name=hdb
 +
  block.1.path=/var/lib/libvirt/images/ubuntu-18.04-netboot-amd64-unattended.iso
 +
  block.1.allocation=61865984
 +
  block.1.capacity=61865984
 +
  block.1.physical=61865984
 +
 
 +
<code>virsh domstats --vcpu VM_NAME</code>
 +
 
 
<pre>
 
<pre>
Domain: 'DOMAIN_NAME'
+
virsh domstats --vcpu VM_NAME
  state.state=5
+
Domain: 'VM_NAME'
  state.reason=1
 
  balloon.maximum=524288
 
 
   vcpu.current=4
 
   vcpu.current=4
 
   vcpu.maximum=4
 
   vcpu.maximum=4
   block.count=2
+
   vcpu.0.state=1
   block.0.name=hda
+
   vcpu.0.time=109050000000
   block.0.path=/srv/libvirt/DOMAIN_NAME.qcow2
+
   vcpu.0.wait=0
   block.0.allocation=5964578816
+
  vcpu.0.halted=yes
   block.0.capacity=21474836480
+
   vcpu.1.state=1
   block.0.physical=21478375424
+
   vcpu.1.time=91740000000
   block.1.name=hdb
+
   vcpu.1.wait=0
   block.1.path=/var/lib/libvirt/images/ubuntu-18.04-netboot-amd64-unattended.iso
+
  vcpu.1.halted=yes
   block.1.allocation=61865984
+
   vcpu.2.state=1
   block.1.capacity=61865984
+
  vcpu.2.time=95740000000
   block.1.physical=61865984
+
   vcpu.2.wait=0
 +
  vcpu.2.halted=yes
 +
   vcpu.3.state=1
 +
  vcpu.3.time=91520000000
 +
   vcpu.3.wait=0
 +
   vcpu.3.halted=no
 
</pre>
 
</pre>
 +
 +
[[virsh domstats --memory]] ([[Libvirt release notes|Added in v6.0.0 (2020-01-15)]])
 +
  
 
== Activities ==
 
== Activities ==
 
# Review and understand <code>virsh domstats</code> output.
 
# Review and understand <code>virsh domstats</code> output.
 +
 +
== Related commands ==
 +
* <code>[[virsh dommemstat]] YOUR_VM</code>
  
 
== See also ==
 
== See also ==
 
* {{virsh}}
 
* {{virsh}}
 
* {{virsh information}}
 
* {{virsh information}}
 +
* {{libvirtd}}
  
  
 
[[Category:Linux]]
 
[[Category:Linux]]
 
[[Category:KVM]]
 
[[Category:KVM]]

Latest revision as of 04:39, 27 April 2021

virsh domstats VM_NAME

Domain: 'VM_NAME'
  state.state=5
  state.reason=1
 balloon.maximum=524288
  vcpu.current=4
  vcpu.maximum=4
  block.count=2
  block.0.name=hda
  block.0.path=/srv/libvirt/DOMAIN_NAME.qcow2
  block.0.allocation=5964578816
  block.0.capacity=21474836480
  block.0.physical=21478375424
  block.1.name=hdb
  block.1.path=/var/lib/libvirt/images/ubuntu-18.04-netboot-amd64-unattended.iso
  block.1.allocation=61865984
  block.1.capacity=61865984
  block.1.physical=61865984

virsh domstats --vcpu VM_NAME

virsh domstats --vcpu VM_NAME
Domain: 'VM_NAME'
  vcpu.current=4
  vcpu.maximum=4
  vcpu.0.state=1
  vcpu.0.time=109050000000
  vcpu.0.wait=0
  vcpu.0.halted=yes
  vcpu.1.state=1
  vcpu.1.time=91740000000
  vcpu.1.wait=0
  vcpu.1.halted=yes
  vcpu.2.state=1
  vcpu.2.time=95740000000
  vcpu.2.wait=0
  vcpu.2.halted=yes
  vcpu.3.state=1
  vcpu.3.time=91520000000
  vcpu.3.wait=0
  vcpu.3.halted=no
virsh domstats --memory (Added in v6.0.0 (2020-01-15))


Activities[edit]

  1. Review and understand virsh domstats output.

Related commands[edit]

See also[edit]

Advertising: