From: Dan Magenheimer Subject: RE: Monitoring domU real memory usage Date: Fri, 16 Oct 2009 09:15:41 -0700 (PDT) Message-ID: <7d1a2d40-2c6e-4878-9c98-4fd6d7db1264@default> References: <650441.93312.qm@web53008.mail.re2.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2085176631==" Return-path: In-Reply-To: <650441.93312.qm@web53008.mail.re2.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: bhavani krishnan , =?UTF-8?B?IlBhc2kgS8Okcmtrw6RpbmVuIg==?= Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============2085176631== Content-Type: multipart/alternative; boundary="__125570975468757941abhmt004.oracle.com" --__125570975468757941abhmt004.oracle.com Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable This information is not available from domain0 by default but can be sent f= rom each domU via xenstore. Look at the shell scripts in xenballoond for a= n example of how to do that. Basically, you need a shell script running in= each domU to put the information (e.g. /proc/meminfo) into xenstore and a = shell script in dom0 to read it and print it. -----Original Message----- From: bhavani krishnan [mailto:bhavi63@yahoo.com] Sent: Friday, October 16, 2009 8:46 AM To: Pasi K=E4rkk=E4inen; Dan Magenheimer Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Monitoring domU real memory usage Precisely I want to know how much of the memory is free and active,= like we get the mem usage % for apps from top in linux. Thanks, Bhavani --- On Fri, 10/16/09, Dan Magenheimer = wrote: > From: Dan Magenheimer > Subject: RE: [Xen-devel] Monitoring domU real memory usage > To: ""Pasi K=E4rkk=E4inen"" , "bhavani krishnan" > Cc: xen-devel@lists.xensource.com > Date: Friday, October 16, 2009, 2:53 PM > > On Thu, Oct 15, 2009 at > 08:00:07PM -0700, bhavani krishnan wrote: > > > Hi, > > >=20 > > > xentop is only giving me the memory allocated to > the a domU=20 > > (Static info). It does not change this info at all. Is > there=20 > > anyway to get how much of the allocated memory is the > domU=20 > > using? I saw few other similar posts in the archives > but no=20 > > solution to it. Please help me out here. >=20 > You'll have to define more precisely what "using" means > since an OS "uses" (nearly) all the memory given to it for > one > thing or another. Are you referring to ballooning? >=20 > > I don't know if that information is tracked. > >=20 > > Xen doesn't do memory overcommit, so it dedicates > physical memory for > > each guest, so it's up to the guests what they do with > it. > >=20 > > -- Pasi >=20 > Xen CAN do memory overcommit, just not transparently > (yet). >=20 > In the xen tree, see tools/xenballoond. See this > link > from Xen Summit 2008 for more description: >=20 > http://wiki.xensource.com/xenwiki/Open_Topics_For_Discussion?acti= on=3DAttachFile&do=3Dget&target=3DMemory+Overcommit.pdf > =20 --__125570975468757941abhmt004.oracle.com Content-Type: text/html; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable
This=20 information is not available from domain0 by default but can be sent from= each=20 domU via xenstore.  Look at the shell scripts in xenballoond for an = example=20 of how to do that.  Basically, you need a shell script running in ea= ch domU=20 to put the information (e.g. /proc/meminfo) into xenstore and a shell scr= ipt in=20 dom0 to read it and print it.
-----Original Message-----
From: bhavani krishnan=20 [mailto:bhavi63@yahoo.com]
Sent: Friday, October 16, 2009 8:4= 6=20 AM
To: Pasi K=E4rkk=E4inen; Dan Magenheimer
Cc:=20 xen-devel@lists.xensource.com
Subject: RE: [Xen-devel] Monito= ring=20 domU real memory usage

Precisely=20 I want to know how much of the memory is free and active, like we= get=20 the mem usage % for apps from top in linux. Thanks,=20 Bhavani

--- On Fri, 10/16/09, Dan Magenheimer=20 <dan.magenheimer@oracle.com> wrote:

> From: Dan=20 Magenheimer <dan.magenheimer@oracle.com>
> Subject: R= E:=20 [Xen-devel] Monitoring domU real memory usage
> To: ""Pasi=20 K=E4rkk=E4inen"" <pasik@iki.fi>, "bhavani krishnan"=20 <bhavi63@yahoo.com>
> Cc:=20 xen-devel@lists.xensource.com
> Date: Friday, October 16, 2= 009,=20 2:53 PM
> > On Thu, Oct 15, 2009 at
> 08:00:07PM -= 0700,=20 bhavani krishnan wrote:
> > > Hi,
> > > <= BR>>=20 > > xentop is only giving me the memory allocated to
>= ; the a=20 domU
> > (Static info). It does not change this info at= all.=20 Is
> there
> > anyway to get how much of the allo= cated=20 memory is the
> domU
> > using? I saw few other s= imilar=20 posts in the archives
> but no
> > solution to it= .=20 Please help me out here.
>
> You'll have to define m= ore=20 precisely what "using" means
> since an OS "uses" (nearly) = all the=20 memory given to it for
> one
> thing or another. = ; Are=20 you referring to ballooning?
>
> > I don't know i= f that=20 information is tracked.
> >
> > Xen doesn't do= memory=20 overcommit, so it dedicates
> physical memory for
> &= gt;=20 each guest, so it's up to the guests what they do with
>=20 it.
> >
> > -- Pasi
>
> Xen CAN d= o=20 memory overcommit, just not transparently
> (yet).
>=20
> In the xen tree, see tools/xenballoond.  See this>=20 link
> from Xen Summit 2008 for more description:
> <= BR>>=20 http://wiki.xensource.com/xenwiki/Open_Topics_For_Discussion?acti= on=3DAttachFile&do=3Dget&target=3DMemory+Overcommit.pdf
>=20

--__125570975468757941abhmt004.oracle.com-- --===============2085176631== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2085176631==--