WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: MaoXiaoyun <tinnycloud@xxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] mem_sharing: fix race condition of nominate and unshare
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=WuvTCLxGZiOjTk59CuaeW/yG7dYck8/UP7wRIs/58TU=; b=tIMuJqa01YDKz6Kp4OAnAuahgwTtGeRmcnG6tNiaRYbW/VOAjsCZDkMg9Z8DfPbfR+ L+RqfCKOZolnnJC8xvJdocOTMzH0rwdQm5XwYY5i188Vvv6Gui81Po/E3Qi1dkQg8Kke yxl7ZwI3Vx7j9JYfrw4DSznFohLZFDBzPDCXs=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BLU157-w995512A939ADE678A6401DAF40@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <BLU157-ds1E01DEBE18840E5FBB6D1DA0E0@xxxxxxx> <AANLkTikBaB5awvRu3Sn3WfuoS3LRmeBH=pG8c7H1n4Cw@xxxxxxxxxxxxxx> <AANLkTinoXve=zBzB9qN1qXRz+iJmhiQ+-gB7MwFoY5Dg@xxxxxxxxxxxxxx> <20110112105405.GH5651@xxxxxxxxxxxxxxxxxxxxxxx> <BLU157-w59C63325262D0BE99E6C43DAF10@xxxxxxx> <20110112140223.GI5651@xxxxxxxxxxxxxxxxxxxxxxx> <BLU157-w1861EFE53CB51FC710011FDAF10@xxxxxxx> <AANLkTimOz_uauDEnu_XaPEgwD1EZJWEgOO1oiFccFNs1@xxxxxxxxxxxxxx> <20110113092427.GJ5651@xxxxxxxxxxxxxxxxxxxxxxx> <AANLkTinSga8xDkuH0BsqbhbBtvgwgbn=T0qmg9y9CeGr@xxxxxxxxxxxxxx> <20110113155344.GN5651@xxxxxxxxxxxxxxxxxxxxxxx> <BLU157-w507CBBB94539BFDB92B339DAF30@xxxxxxx> <AANLkTimC9OYTiHYaeeytH5OCN-EF2v6L=KDVMwBjtB0z@xxxxxxxxxxxxxx> <BLU157-w995512A939ADE678A6401DAF40@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>