<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Am 14.03.2012 20:26, schrieb Eric Blake:
<blockquote cite="mid:4F60F0F0.1070909@redhat.com" type="cite">
  <div class="moz-text-plain" lang="x-western" style="font-family: -moz-fixed; font-size: 14px;" wrap="true"><pre wrap="">On 03/14/2012 01:21 PM, <a class="moz-txt-link-abbreviated" href="mailto:inge85@web.de" moz-do-not-send="true">inge85@web.de</a> wrote:
</pre><blockquote style="color: #000000;" type="cite"><pre wrap=""><span class="moz-txt-citetags">> </span>Hello,
<span class="moz-txt-citetags">> </span>
<span class="moz-txt-citetags">> </span>I have a question about memory statistics in libvirt for domU. I want to get 
<span class="moz-txt-citetags">> </span>read and written bytes of RAM of a domain in the same way as blockstats for read 
<span class="moz-txt-citetags">> </span>and written bytes on disk. I already read the API, but I didn't get it. I want 
<span class="moz-txt-citetags">> </span>to graph the RAM utilization of certain virtual machines. Can anybody help me?
</pre></blockquote><pre wrap="">virt-manager can graph RAM utilization of guests, so it may be worth
seeing what APIs it used.  The virDomainMemoryStats() is probably the
key API to be using, although I'm not sure whether it is wired up in the
xen implementation.

<div class="moz-txt-sig">-- 
Eric Blake   <a class="moz-txt-link-abbreviated" href="mailto:eblake@redhat.com" moz-do-not-send="true">eblake@redhat.com</a>    +1-919-301-3266
Libvirt virtualization library <a class="moz-txt-link-freetext" href="http://libvirt.org/" moz-do-not-send="true">http://libvirt.org</a>
<br/></div></pre></div>
</blockquote>
</div><div>Good idea with the virt-manager. I will take a look.<br/></div><div><br/></div><div>virDomainMemoryStats() I already focused, but there's not directly the data I need (read and written bytes of RAM).<br/></div><div><br/></div><div>I don't understand, why it's so hard to track those data. I read something about "xentrace", a tool to read out some CPU counters, which can be used to approximate RAM accesse by using LLC-miss counter. Is there no easy way to get the data?<br/></div><div><br/></div><div>Greetings,<br/></div><div>inge85<br/></div><div><br/></div></div>  <br><br><table cellpadding="0" cellspacing="0" border="0"><tr><td style="font-family:verdana; font-size:12px; line-height:17px;border-top:1px solid #000000">Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für iPhone und Android.   <br><a href="https://produkte.web.de/freemail_mobile_startseite/"><b>https://produkte.web.de/freemail_mobile_startseite/</
 b></a></td></tr></table>
</body></html>