From: Ian Jackson Subject: Re: [PATCH] xenpaging: libxl support Date: Tue, 27 Sep 2011 17:48:30 +0100 Message-ID: <20097.65118.350804.135806@mariner.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Olaf Hering Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Olaf Hering writes ("[Xen-devel] [PATCH] xenpaging: libxl support"): > The patch adds four new config options: > xenpaging= , the number of pages to page-out ... > +libxl_xenpaging_info = Struct("xenpaging_info",[ > + ("xenpaging", integer, False, "number of pages"), ... > + if (!xlu_cfg_get_long (config, "xenpaging", &l)) > + xp_info->xenpaging = l; The config file setting should be a number of megabytes, just like "memory", "maxmem", etc., not a number of pages. And at the libxl interface it should be a number of kilobytes like max_memkb et al. Also as I said at the hackathon, I think that we need a more sophisticated approach to the interaction with ballooning. I would like to see the argument to the xenpaging daemon not be a target number of pages to page out, but rather for it to be a total memory usage target. The effect of this would be that you could tell a guest to balloon down, but also tell xenpaging to page it out, and balance between ballooning and paging is then up to the guest. > +static int libxl__create_xenpaging(libxl__gc *gc, char *dom_name, uint32_t domid, libxl_xenpaging_info *xp_info) > +{ > + [a lot of stuff] Can any of this be factored out and made common with the device model creation ? Also: - what deletes the logfile, if anything ? - will the xenpaging daemon automatically exit if the domain dies ? Ian.