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

Re: [Xen-devel] [PATCH][XM-TEST] Test for bug #533

To: Dan Smith <danms@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][XM-TEST] Test for bug #533
From: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxx>
Date: Tue, 14 Feb 2006 17:10:56 +0100
Cc: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 14 Feb 2006 16:23:03 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <87slqmt0n3.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <87slqmt0n3.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Tue, Feb 14, 2006 at 07:34:24AM -0800, Dan Smith wrote:
> This patch adds a test that attempts to create and destroy a domain
> 1025 times.  Currently, this causes xm to crash after the 1014th cycle
> with the following stack trace:

The test is bogus and so if the bug.
seem you don't close the console fd by calling closeConsole at each loop.

> > shared object file: Too many open files

that it is basic ulimit behavior (usually 1024 is default configuration)

> +# Copyright (C) International Business Machines Corp., 2005
> +# Author: Dan Smith <danms@xxxxxxxxxx>
> +
> +from XmTestLib import *
> +
> +COUNT=1025
> +
> +for i in range(0,COUNT):
> +     print "Creating %i of %i..." % (i, COUNT)
> +     try:
> +             dom = XmTestDomain(name="massive-%i" % i)
> +             dom.start()
> +             console = XmConsole(dom.getName())
> +     except DomainError, e1:
> +             FAIL("Failed to start domain %i" % i)
> +     except ConsoleError, e2:
> +             FAIL("Failed to attach console to domain %i" % i)
try to add here:
  +     console.closeConsole()
> +     dom.destroy()

and report back if it doesn't fix the problem.

[resent: forgot to CC xen-devel]
-- 
Vincent Hanquez

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

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