All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincent Hanquez <vincent.hanquez@cl.cam.ac.uk>
To: Dan Smith <danms@us.ibm.com>
Cc: Xen Developers <xen-devel@lists.xensource.com>
Subject: Re: [PATCH][XM-TEST] Test for bug #533
Date: Tue, 14 Feb 2006 17:10:56 +0100	[thread overview]
Message-ID: <20060214161056.GA19324@snarc.org> (raw)
In-Reply-To: <87slqmt0n3.fsf@caffeine.beaverton.ibm.com>

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@us.ibm.com>
> +
> +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

  reply	other threads:[~2006-02-14 16:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-14 15:34 [PATCH][XM-TEST] Test for bug #533 Dan Smith
2006-02-14 16:10 ` Vincent Hanquez [this message]
2006-02-14 16:31   ` Dan Smith
2006-02-14 16:16 ` Ewan Mellor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060214161056.GA19324@snarc.org \
    --to=vincent.hanquez@cl.cam.ac.uk \
    --cc=danms@us.ibm.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.