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
Quoted 33 lines · Dan Magenheimer
From: Dan Magenheimer <[email protected]>
Subject: RE: [Xen-devel] Monitoring domU real memory usage
To: ""Pasi Kärkkäinen"" <[email protected]>, "bhavani krishnan" <[email protected]>
Cc: [email protected]
Date: Friday, October 16, 2009, 2:53 PMQuoted 1 line
On Thu, Oct 15, 2009 at
Quoted 3 lines · bhavani krishnan
Quoted 3 lines
Hi,
xentop is only giving me the memory allocated to
the a domU
Quoted 1 line
(Static info). It does not change this info at all. Is
there
Quoted 1 line
anyway to get how much of the allocated memory is the
domU
Quoted 1 line
using? I saw few other similar posts in the archives
but no
Quoted 1 line
solution to it. Please help me out here.
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?Quoted 3 lines
I don't know if that information is tracked.
Xen doesn't do memory overcommit, so it dedicates
physical memory for
Quoted 1 line
each guest, so it's up to the guests what they do with
it.
Quoted 2 lines
-- Pasi
Quoted 9 lines
Xen CAN do memory overcommit, just not transparently (yet).
In the xen tree, see tools/xenballoond. See this link
from Xen Summit 2008 for more description:
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
This information is not available from domain0 by default but can be sent from each domU via xenstore. Look at the shell scripts in xenballoond for an 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:[email protected]]
Sent: Friday, October 16, 2009 8:46 AM
To: Pasi Kärkkäinen; Dan Magenheimer
Cc: [email protected]
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 <[email protected]> wrote:
> From: Dan Magenheimer <[email protected]>
> Subject: RE: [Xen-devel] Monitoring domU real memory usage
> To: ""Pasi Kärkkäinen"" <[email protected]>, "bhavani krishnan" <[email protected]>
> Cc: [email protected]
> Date: Friday, October 16, 2009, 2:53 PM
> > On Thu, Oct 15, 2009 at
> 08:00:07PM -0700, bhavani krishnan wrote:
> > > Hi,
> > >
> > > xentop is only giving me the memory allocated to
> the a domU
> > (Static info). It does not change this info at all. Is
> there
> > anyway to get how much of the allocated memory is the
> domU
> > using? I saw few other similar posts in the archives
> but no
> > solution to it. Please help me out here.
>
> 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?
>
> > I don't know if that information is tracked.
> >
> > 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.
> >
> > -- Pasi
>
> Xen CAN do memory overcommit, just not transparently
> (yet).
>
> In the xen tree, see tools/xenballoond. See this
> link
> from Xen Summit 2008 for more description:
>
> http://wiki.xensource.com/xenwiki/Open_Topics_For_Discussion?action=AttachFile&do=get&target=Memory+Overcommit.pdf
>
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel