All of lore.kernel.org
 help / color / mirror / Atom feed
* Monitoring domU real memory usage
@ 2009-10-16  3:00 bhavani krishnan
  2009-10-16 13:08 ` Pasi Kärkkäinen
  0 siblings, 1 reply; 5+ messages in thread
From: bhavani krishnan @ 2009-10-16  3:00 UTC (permalink / raw)
  To: xen-devel

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.

Thanks,
Bhavani

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Monitoring domU real memory usage
  2009-10-16  3:00 Monitoring domU real memory usage bhavani krishnan
@ 2009-10-16 13:08 ` Pasi Kärkkäinen
  2009-10-16 13:53   ` Dan Magenheimer
  0 siblings, 1 reply; 5+ messages in thread
From: Pasi Kärkkäinen @ 2009-10-16 13:08 UTC (permalink / raw)
  To: bhavani krishnan; +Cc: xen-devel

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.
> 

Hi,

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Monitoring domU real memory usage
  2009-10-16 13:08 ` Pasi Kärkkäinen
@ 2009-10-16 13:53   ` Dan Magenheimer
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Magenheimer @ 2009-10-16 13:53 UTC (permalink / raw)
  To: "Pasi Kärkkäinen", bhavani krishnan; +Cc: xen-devel

> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Monitoring domU real memory usage
  2009-10-16 14:46 bhavani krishnan
@ 2009-10-16 16:15 ` Dan Magenheimer
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Magenheimer @ 2009-10-16 16:15 UTC (permalink / raw)
  To: bhavani krishnan, "Pasi Kärkkäinen"; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 2603 bytes --]

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:bhavi63@yahoo.com]
  Sent: Friday, October 16, 2009 8:46 AM
  To: Pasi Kärkkäinen; 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 <dan.magenheimer@oracle.com> wrote:

        > From: Dan Magenheimer <dan.magenheimer@oracle.com>
        > Subject: RE: [Xen-devel] Monitoring domU real memory usage
        > To: ""Pasi Kärkkäinen"" <pasik@iki.fi>, "bhavani krishnan" <bhavi63@yahoo.com>
        > 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,
        > > > 
        > > > 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
        >  


[-- Attachment #1.2: Type: text/html, Size: 3683 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Monitoring domU real memory usage
@ 2009-10-16 14:46 bhavani krishnan
  2009-10-16 16:15 ` Dan Magenheimer
  0 siblings, 1 reply; 5+ messages in thread
From: bhavani krishnan @ 2009-10-16 14:46 UTC (permalink / raw)
  To: Pasi Kärkkäinen, Dan Magenheimer; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1647 bytes --]

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 <dan.magenheimer@oracle.com> wrote:

> From: Dan Magenheimer <dan.magenheimer@oracle.com>
> Subject: RE: [Xen-devel] Monitoring domU real memory usage
> To: ""Pasi Kärkkäinen"" <pasik@iki.fi>, "bhavani krishnan" <bhavi63@yahoo.com>
> 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,
> > > 
> > > 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
> 


      

[-- Attachment #1.2: Type: text/html, Size: 2203 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-16 16:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-16  3:00 Monitoring domU real memory usage bhavani krishnan
2009-10-16 13:08 ` Pasi Kärkkäinen
2009-10-16 13:53   ` Dan Magenheimer
2009-10-16 14:46 bhavani krishnan
2009-10-16 16:15 ` Dan Magenheimer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.