xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* xl list vs xm list: backwards compatibility vs forward progress?
@ 2010-07-27 20:43 Dan Magenheimer
  2010-07-28 13:55 ` Ian Jackson
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Magenheimer @ 2010-07-27 20:43 UTC (permalink / raw)
  To: Xen-Devel (xen-devel@lists.xensource.com)

I was pleased to find out that "xl list" shows the
current amount of physical memory in use by a domain
rather than the start amount.  This is very useful
for monitoring self-ballooning!  I like it!

But... it is not backwards compatible with "xm list".
Does this matter?  Probably not, but I've heard there
are tools that screen-scrape output from the core
xen tools... and I wonder if the other xend interface
(xapi?) gets one rather the other (or maybe both).

Just thought it should be noted, especially if
(IIRC) there are plans to symlink /usr/bin/xm
to /usr/bin/xl.

Dan

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

* Re: xl list vs xm list: backwards compatibility vs forward progress?
  2010-07-27 20:43 xl list vs xm list: backwards compatibility vs forward progress? Dan Magenheimer
@ 2010-07-28 13:55 ` Ian Jackson
  2010-07-28 15:07   ` Dan Magenheimer
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Jackson @ 2010-07-28 13:55 UTC (permalink / raw)
  To: Dan Magenheimer; +Cc: Xen-Devel (xen-devel@lists.xensource.com)

Dan Magenheimer writes ("[Xen-devel] xl list vs xm list: backwards compatibility vs forward progress?"):
> I was pleased to find out that "xl list" shows the
> current amount of physical memory in use by a domain
> rather than the start amount.  This is very useful
> for monitoring self-ballooning!  I like it!
> 
> But... it is not backwards compatible with "xm list".

Isn't it ?

I'm pretty sure I've written a program which does "xm mem-set" and
then polls the output from "xm list" to wait for the target domain to
balloon down.

Ian.

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

* RE: xl list vs xm list: backwards compatibility vs forward progress?
  2010-07-28 13:55 ` Ian Jackson
@ 2010-07-28 15:07   ` Dan Magenheimer
  2010-07-29 15:29     ` Stefano Stabellini
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Magenheimer @ 2010-07-28 15:07 UTC (permalink / raw)
  To: Ian Jackson; +Cc: Xen-Devel (xen-devel@lists.xensource.com)

> From: Ian Jackson [mailto:Ian.Jackson@eu.citrix.com]
> Sent: Wednesday, July 28, 2010 7:56 AM
> To: Dan Magenheimer
> Cc: Xen-Devel (xen-devel@lists.xensource.com)
> Subject: Re: [Xen-devel] xl list vs xm list: backwards compatibility vs
> forward progress?
> 
> Dan Magenheimer writes ("[Xen-devel] xl list vs xm list: backwards
> compatibility vs forward progress?"):
> > I was pleased to find out that "xl list" shows the
> > current amount of physical memory in use by a domain
> > rather than the start amount.  This is very useful
> > for monitoring self-ballooning!  I like it!
> >
> > But... it is not backwards compatible with "xm list".
> 
> Isn't it ?
> 
> I'm pretty sure I've written a program which does "xm mem-set" and
> then polls the output from "xm list" to wait for the target domain to
> balloon down.

Hmmm... perhaps xm keeps track of xm mem-set commands... but a
domain can do ballooning without involvement of the toolchain.
Self-ballooning (see xen.hg/tools/xenballoon, in tree for about
two years now) does that in-guest-userland and I have kernel rpms
for EL5u5 and RHEL6b2 that do it in-guest-kernel.  (The latter
will be the preferred guest deployment method for Xen systems
running tmem to optimize memory utilization.)

With self-ballooning in a guest, xl list and xm list
very definitely show different values for memory.

Dan

P.S. Frankly, I think the xm list behavior is a bug, but
backwards compatibility -- plus my poor parseltongue --
stopped me from trying to fix it.

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

* RE: xl list vs xm list: backwards compatibility vs forward progress?
  2010-07-28 15:07   ` Dan Magenheimer
@ 2010-07-29 15:29     ` Stefano Stabellini
  0 siblings, 0 replies; 4+ messages in thread
From: Stefano Stabellini @ 2010-07-29 15:29 UTC (permalink / raw)
  To: Dan Magenheimer; +Cc: Xen-Devel (xen-devel@lists.xensource.com), Ian Jackson

On Wed, 28 Jul 2010, Dan Magenheimer wrote:
> > From: Ian Jackson [mailto:Ian.Jackson@eu.citrix.com]
> > Sent: Wednesday, July 28, 2010 7:56 AM
> > To: Dan Magenheimer
> > Cc: Xen-Devel (xen-devel@lists.xensource.com)
> > Subject: Re: [Xen-devel] xl list vs xm list: backwards compatibility vs
> > forward progress?
> > 
> > Dan Magenheimer writes ("[Xen-devel] xl list vs xm list: backwards
> > compatibility vs forward progress?"):
> > > I was pleased to find out that "xl list" shows the
> > > current amount of physical memory in use by a domain
> > > rather than the start amount.  This is very useful
> > > for monitoring self-ballooning!  I like it!
> > >
> > > But... it is not backwards compatible with "xm list".
> > 
> > Isn't it ?
> > 
> > I'm pretty sure I've written a program which does "xm mem-set" and
> > then polls the output from "xm list" to wait for the target domain to
> > balloon down.
> 
> Hmmm... perhaps xm keeps track of xm mem-set commands... but a
> domain can do ballooning without involvement of the toolchain.
> Self-ballooning (see xen.hg/tools/xenballoon, in tree for about
> two years now) does that in-guest-userland and I have kernel rpms
> for EL5u5 and RHEL6b2 that do it in-guest-kernel.  (The latter
> will be the preferred guest deployment method for Xen systems
> running tmem to optimize memory utilization.)
> 
> With self-ballooning in a guest, xl list and xm list
> very definitely show different values for memory.
> 
> Dan
> 
> P.S. Frankly, I think the xm list behavior is a bug, but
> backwards compatibility -- plus my poor parseltongue --
> stopped me from trying to fix it.
> 

I agree, xm list should be the one to be fixed.

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

end of thread, other threads:[~2010-07-29 15:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-27 20:43 xl list vs xm list: backwards compatibility vs forward progress? Dan Magenheimer
2010-07-28 13:55 ` Ian Jackson
2010-07-28 15:07   ` Dan Magenheimer
2010-07-29 15:29     ` Stefano Stabellini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).