All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ryan Harper <ryanh@us.ibm.com>
To: Mark Williamson <mark.williamson@cl.cam.ac.uk>
Cc: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>,
	xen-devel@lists.xensource.com, Ryan Harper <ryanh@us.ibm.com>
Subject: Re: [PATCH] enforce dom0 cpus and balloon out memory
Date: Fri, 29 Jul 2005 10:43:24 -0500	[thread overview]
Message-ID: <20050729154324.GH8702@us.ibm.com> (raw)
In-Reply-To: <200507291624.53418.mark.williamson@cl.cam.ac.uk>

* Mark Williamson <mark.williamson@cl.cam.ac.uk> [2005-07-29 10:25]:
> > You could use vcpu-hotplug to drop the extra cpus from dom0 instead of
> > writing directly into sysfs.  The only stopper to that approach is the
> > fact that dom0's self.channel is not initialized when xend starts and
> > subsequently doesn't send the control message.  Channels are initialized
> > when a domain is built, but since dom0 is built by xen, the routine
> > which sets up channels isn't called for dom0.  Haven't found a good place
> > for xend to initialized the channel for dom0 yet either.
> 
> Hmmm.  Is the channel never set up then?  It'd certainly be nice if it were: 

Correct.  As mentioned above, this is only a problem for dom0 since the
xend contruct_image() code isn't called for dom0 as xen is the builder.
The fix is as simple as calling create_channel() from dom0's XendDomInfo
object.  I've not determined the appropriate location to issue the call.

> then you can use "xm balloon" to set dom0's memory footprint, which is 
> preferable to using the /proc interface directly.

Indeed.  Same goes for using vcpu_hotplug() versus sysfs

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
ryanh@us.ibm.com

  reply	other threads:[~2005-07-29 15:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-29  3:04 [PATCH] enforce dom0 cpus and balloon out memory aq
2005-07-29 15:17 ` Ryan Harper
2005-07-29 15:24   ` Mark Williamson
2005-07-29 15:43     ` Ryan Harper [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-07-29 17:26 Ian Pratt
2005-07-29 17:50 ` Keir Fraser
2005-07-29 18:26   ` Ryan Harper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050729154324.GH8702@us.ibm.com \
    --to=ryanh@us.ibm.com \
    --cc=m+Ian.Pratt@cl.cam.ac.uk \
    --cc=mark.williamson@cl.cam.ac.uk \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.