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

[Xen-devel] Re: [PATCH] mem_sharing: fix race condition of nominate and unshare


  • To: MaoXiaoyun <tinnycloud@xxxxxxxxxxx>
  • From: Jui-Hao Chiang <juihaochiang@xxxxxxxxx>
  • Date: Mon, 17 Jan 2011 17:02:02 +0800
  • Cc: xen devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, tim.deegan@xxxxxxxxxx
  • Delivery-date: Mon, 17 Jan 2011 01:02:42 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=t0PJMbiyJswN9sY/5H4phG31aN+cqZAZVJtTg2zm4B466EA5DNXxYzug0eMMq0xeZn xcERqFBVmPON6ZFe9u//sOIqiHLwHS3cp6ukzaATm3lBR2IFTx9X36e8QsAdIkKK2kg4 VnfJUy9Ka9XPI72W8+ZBWwEcTM5Ly9W3YJF7I=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi, tinnycloud:

Do you have xenpaging tools running properly?
I haven't gone through that one, but it seems you have run out of memory.
When this case happens, mem_sharing will request memory to the
xenpaging daemon, which tends to page out and free some memory.
Otherwise, the allocation would fail.
Is this your scenario?

Bests,
Jui-Hao

2011/1/17 MaoXiaoyun <tinnycloud@xxxxxxxxxxx>:
> Another failure on BUG() in mem_sharing_alloc_page()
>
>  memset(&req, 0, sizeof(req));
>  if(must_succeed)
>     {
>         /* We do not support 'must_succeed' any more. External operations
> such
>          * as grant table mappings may fail with OOM condition!
>          */
>         BUG();===================>bug here
>     }
>     else
>     {
>         /* All foreign attempts to unshare pages should be handled through
>          * 'must_succeed' case. */
>         ASSERT(v->domain->domain_id == d->domain_id);
>         vcpu_pause_nosync(v);
>         req.flags |= MEM_EVENT_FLAG_VCPU_PAUSED;
>     }
>

_______________________________________________
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®.