From: Ian Jackson Subject: Re: [PATCH v1 12/12] libxl: add device backend listener in order to launch backends Date: Fri, 8 Nov 2013 11:41:39 +0000 Message-ID: <21116.52723.868332.99501@mariner.uk.xensource.com> References: <1380705874-58491-1-git-send-email-roger.pau@citrix.com> <1380705874-58491-13-git-send-email-roger.pau@citrix.com> <21105.15127.428243.701439@mariner.uk.xensource.com> <5277D362.4040300@citrix.com> <21111.55145.501074.162529@mariner.uk.xensource.com> <21111.57474.653370.258557@mariner.uk.xensource.com> <1383819735.26213.150.camel@kazak.uk.xensource.com> <21115.49505.48339.985424@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VekRc-0003kT-Cv for xen-devel@lists.xenproject.org; Fri, 08 Nov 2013 11:41:44 +0000 In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: rshriram@cs.ubc.ca Cc: xen-devel@lists.xenproject.org, Ian Campbell , Roger Pau =?utf-8?Q?Monn=C3=A9?= List-Id: xen-devel@lists.xenproject.org Shriram Rajagopalan writes ("Re: [Xen-devel] [PATCH v1 12/12] libxl: add device backend listener in order to launch backends"): > > > /* > > > + * Short-lived sub-ao, aka "nested ao". > > > + * > > > + * Some asynchronous operations are very long-running. Generally, > > > + * since an ao has a gc, any allocations made in that ao will live > > > + * until the ao is completed. When this is not desirable, these > > > + * functions may be used to manage a "sub-ao". > > > + * > > Just to make sure I understand this whole thing fully: > > This is targeted against long running AOs that have a lot of > intermittent "events", each of which may cause more memory > allocations. By creating throwaway-ao's for these events, one can > service these events asynchronously (if they are long running by > themselves) while quickly reclaiming the memory after event > completion. Yes. > And this can be used in suspend/resume/restore code to create these > throwaway nested-aos during each iteration, so as to avoid the > possibility of accumulating memory on the main gc. Yes. Ian.