From: Olaf Hering Subject: Re: libxl/xl memory paging/sharing/ballooning/etc proposal. Date: Thu, 15 Mar 2012 16:26:51 +0100 Message-ID: <20120315152651.GB7421@aepfle.de> References: <1331805673.26979.59.camel@zakaz.uk.xensource.com> <1ea7d063267dc01aa8a0c669ec229f8f.squirrel@webmail.lagarcavilla.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1ea7d063267dc01aa8a0c669ec229f8f.squirrel@webmail.lagarcavilla.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andres Lagar-Cavilla Cc: George Dunlap , Ian Jackson , Ian Campbell , xen-devel List-Id: xen-devel@lists.xenproject.org On Thu, Mar 15, Andres Lagar-Cavilla wrote: > > libxl_domain_(set|get)_paging_target(ctx, domid, target_memkb, relative) > > > > Read/write whichever XS path controls the xenpaging daemon's > > target. (Olaf?). I think this path should not be > > under /local/domain since it should not be guest visible > > (probably it already isn't). > It is /local/domain/X/memory/target-tot_pages. I agree it should not be > guest visible, and we're still in time to change it. Is it guest visible? I think the entry point for a guest is /vm//, I'm almost sure it can not get to /local/domain/X/memory/ > /libxl/X/memory-policy/paging-target? Is there a non-libxl > non-/local/domain path xenpaging could look into, should it be launched > autonomously? Olaf, do you care about xenpaging in non-libxl environments? xenpaging needs to read its target from somewhere, I dont think this has anything todo with libxl or not. > > XXX libxl_domain_paging_enable here or on domain build / policy > > set? libxl_domain_paging_enable is idempotent so calling it here > > is always safe? > > You can enable the pager on build, unless the actor settings preclude it. > Then all you need to do to get the pager to work is write its xenstore > key. > > But generally speaking, the pager might have been disabled ex xl-machina, > so you really want to be able to test_and_set the pager here. > > Olaf, does xenpaging have standard daemonize behavior of locking a > /var/foo/pid file? It writes its pid to xenstore and announces its state in xenpaging/state, like qemu-dm does. Thats in my libxl support patch at least. Olaf