From: "Jan Beulich" Subject: Re: [PATCH 2/2] xen: spread page scrubbing across all idle CPU Date: Wed, 11 Jun 2014 11:22:26 +0100 Message-ID: <53984A020200007800019D8A@mail.emea.novell.com> References: <1402402717-26736-1-git-send-email-bob.liu@oracle.com> <1402402717-26736-2-git-send-email-bob.liu@oracle.com> <53972E79020000780001989C@mail.emea.novell.com> <5397C438.301@oracle.com> <53982BB00200007800019C80@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wuffq-0001wB-HR for xen-devel@lists.xenproject.org; Wed, 11 Jun 2014 10:22:30 +0000 In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Bob Liu , Keir Fraser , Ian Campbell , Andrew Cooper , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 11.06.14 at 12:13, wrote: > Would it make more sense to do something like the following: > * Have a "clean" freelist and a "dirty" freelist > * When destroying a domain, simply move pages to the dirty freelist > * Have idle vcpus scrub the dirty freelist before going to sleep > - ...and wake up idle vcpus to do some scrubbing when adding pages to > the dirty freelist > * In alloc_domheap_pages(): > - If there are pages on the "clean" freelist, allocate them > - If there are no pages on the "clean" freelist but there are on the > "dirty" freelist, scrub pages from the "dirty" freelist synchronously. Yes, that's the model I suggested weeks ago. Jan