From: Keir Fraser Subject: Re: Synchronous scrubbing for alloc_domheap_pages() Date: Wed, 23 Sep 2009 16:17:52 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable 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: George Dunlap , "xen-devel@lists.xensource.com" , Tim Deegan List-Id: xen-devel@lists.xenproject.org And in fact page scrubbing *is* entirely synchronous in xen-unstable now (but not in any stable branch, as yet). -- Keir On 23/09/2009 15:40, "George Dunlap" wrote: > Cancel that... the real problem was that set_pod_target() was trying > to allocate superpages, but not falling back to 4k pages if that > failed. >=20 > -George >=20 > On Wed, Sep 23, 2009 at 3:08 PM, George Dunlap > wrote: >> I'm running into an issue where alloc_domheap_pages() fails, even >> though there is free memory, because the memory hasn't been scrubbed >> yet. =A0The context of this is when ballooning down one VM in order to >> start a second VM: the balloon driver on the first VM has reached its >> target, but creation of the second VM fails because the freed memory >> hasn't been scrubbed yet. >>=20 >> In the situation where there is no memory on the free list, but memory >> on the "to-be-srubbed" list, is there any reason why we don't do >> syncronous scrubbing? >>=20 >> The alternative would be to teach the control tools to look at >> unscrubbed vs free memory, and wait until there was enough to start >> the VM; but that seems a bit more hackish. >>=20 >> I chatted with Tim Deegan about this, and the only issue he could see >> would be making sure that hypercalls which called >> alloc_domheap_pages() yielded reasonably. >>=20 >> Thoughts? >> =A0-George >>=20