<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.2">
</HEAD>
<BODY>
Hi dan,<BR>
<BR>
 I got confused with your answer, virDomainInfo memory,<BR>
<BR>
Does it mean that all allocated memory is utilized by the guest OS?<BR>
 Their is good chance that Guest OS may not be utilizing all memory.<BR>
<BR>
How to find out the Currently running Guest Domains memory utilization level?<BR>
<BR>
On Wed, 2008-04-30 at 13:18 +0100, Daniel P. Berrange wrote:<B><TT><FONT SIZE="4">y</FONT></TT></B>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">On Wed, Apr 30, 2008 at 05:45:55PM +0530, Pranay Prasoon wrote:</FONT>
<FONT COLOR="#000000">> Hi,</FONT>
<FONT COLOR="#000000">> It appears to be no API available to provide the memory used by a guest</FONT>
<FONT COLOR="#000000">> domin.</FONT>
<FONT COLOR="#000000">> I looked at the availble libvirt api called "virNodeGetCellsFreeMemory"</FONT>
<FONT COLOR="#000000">> using which it is possible to get the free mem. But looking further I found</FONT>
<FONT COLOR="#000000">> that this is free memory of the "whole box" rather than based upon the guest</FONT>
<FONT COLOR="#000000">> domain.</FONT>
<FONT COLOR="#000000">> How can I get the memory used by a guest domin.</FONT>

<FONT COLOR="#000000">    virDomainGetInfo()</FONT>

<FONT COLOR="#000000">It fills in a virDomainInfo  struct with </FONT>

<FONT COLOR="#000000">    unsigned long maxMem;       /* the maximum memory in KBytes allowed */</FONT>
<FONT COLOR="#000000">    unsigned long memory;       /* the memory in KBytes used by the domain */</FONT>

<FONT COLOR="#000000">Dan.</FONT>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Thanks & Regards<BR>
--Ajish
</TD>
</TR>
</TABLE>
</BODY>
</HTML>