<div dir="ltr"><div>Hi all,</div><div><br></div><div>I am trying to use virsh to get the memory and storage usage for KVM domain.</div><div><br></div><div>Right now we can get domain memory statistics through the following virsh cmds:</div>
<div>1.      dumpxml: this returns “memory” and “currentMemory”</div><div><br></div><div>2.      dominfo: this returns “Max memory” and “Used memory”</div><div><br></div><div>3.      dommemstat: this returns “actual” and “rss”</div>
<div><br></div><div>We think “memory” (from dumpxml) = “Max memory” (from dominfo) and “currentMemory” (from dumpxml) = “Used memory” (from dominfo). Can anyone please help us to confirm this?</div><div><br></div><div>We don't understand what does "actual" stand for in dommemstat. Can anyone please explain us about that?</div>
<div><br></div><div>Finally, we want to get the memory utilization of the domain on VM level in percentage. And we derive it as:</div><div>Utilization = rss / Used memory</div><div>Can anyone please provide any comment on this?</div>
<div><br></div><div>In terms of disk usage, it seems virsh / libvirt does not support any domain disk information right now. If not, can anyone please give us any idea how to get the domain disk information (size, used space and so on)?</div>
<div><br></div><div>Thanks a lot,</div><div>Bruce</div></div>