From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH] xenpaging:close domU's event channel and free port Date: Tue, 14 Feb 2012 21:59:54 +0100 Message-ID: <20120214205954.GA21776@aepfle.de> References: <9f4640e40d4f31563885.1328777634@h00166998.china.huawei.com> <20120210164010.GA10009@aepfle.de> <002201ccea12$e83c0420$b8b40c60$@com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <002201ccea12$e83c0420$b8b40c60$@com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Hongkaixing Cc: bicky.shi@huawei.com, xiaowei.yang@huawei.com, xen-devel@lists.xensource.com, yanqiangjun@huawei.com, hanweidong@huawei.com List-Id: xen-devel@lists.xenproject.org On Mon, Feb 13, Hongkaixing wrote: > I have tested whether the kernel driver does a cleanup of all used ports once xenpaging exits. > Every domain has 1024 event channels.In xc_evtchn_unbind(),it just frees dom0's event channel's port, > and changes its state to be ECS_FREE;but the remote domain(domU)'s port is still ECS_UNBOUND. > so when each domU triggers 1024 times of xenpaging,it will fail of "Error initialising shared page > (28 = No space left on device): Internal error".Because there is no available free port for this domU. > Only the port's state is ECS_FREE,then it can be allocated by get_free_port(); Are you sure its the event channel? I just tried to run xenpaging in a loop and after a while I got this instead: xc: detail: xenpaging init xc: detail: watching '/local/domain/1/memory/target-tot_pages' xc: error: Error initialising shared page (28 = No space left on device): Internal error Is it that what you are seeing? Olaf