[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Synchronous scrubbing for alloc_domheap_pages()


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Tim Deegan <tim.deegan@xxxxxxxxxxxxx>
  • From: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
  • Date: Wed, 23 Sep 2009 15:08:05 +0100
  • Cc:
  • Delivery-date: Wed, 23 Sep 2009 07:08:30 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=MN2v83dwpNmfd+YZmHP1kf1u83j6nl10GZA9C1/hoTOzXfdkeZS5gL9RUwUicvxbIh SwpSCv8efBmwh9k9lHaP+jBNA0eIJY2JC/Qbzsi+YeLKhR3u5IDfwQgh0V8gMRa8p4SZ 67d4vhgt79mtWIJ2Maklm1k9pjoqdlBxLnT78=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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.  The 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.

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?

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.

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.

Thoughts?
 -George

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.