From: "Jan Beulich" Subject: Re: [PATCH 2/2] xen: spread page scrubbing across all idle CPU Date: Wed, 11 Jun 2014 09:13:04 +0100 Message-ID: <53982BB00200007800019C80@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> 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 1Wudei-0003Fv-TU for xen-devel@lists.xenproject.org; Wed, 11 Jun 2014 08:13:13 +0000 In-Reply-To: <5397C438.301@oracle.com> 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: Bob Liu Cc: Bob Liu , keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 11.06.14 at 04:51, wrote: > On 06/10/2014 10:12 PM, Jan Beulich wrote: >>>>> On 10.06.14 at 14:18, wrote: >>> + if( is_tasklet ) >>> + tasklet_schedule_on_cpu(&global_scrub_tasklet, cpu); >> >> So you re-schedule this tasklet immediately - while this may be >> acceptable inside the hypervisor, did you consider the effect this >> will have on the guest (normally Dom0)? Its respective vCPU won't >> get run _at all_ until you're done scrubbing. >> > > Yes, that's a problem. I don't have any better idea right now. > > What I'm trying is doing the scrubbing on current CPU as well as on all > idle vcpus in parallel. > I also considered your suggestion about doing the scrubbing in the > background as well as on the allocation path. But I think it's more > unacceptable for users to get blocked randomly for a uncertain time when > allocating a large mount of memory. > That's why I still chose the sync way that once 'xl destroy' return all > memory are scrubbed. But I hope you realize that in the current shape, with the shortcomings pointed out un-addressed, there's no way for this to go in. Jan