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] [PATCH][XM-TEST] Fix for 15_create_smallmem_pos.py test - Bu

To: Ewan Mellor <ewan@xxxxxxxxxxxxx>, Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][XM-TEST] Fix for 15_create_smallmem_pos.py test - Bug 616
From: Daniel Stekloff <dsteklof@xxxxxxxxxx>
Date: Wed, 19 Apr 2006 11:35:21 -0700
Cc: Dan Smith <danms@xxxxxxxxxx>
Delivery-date: Wed, 19 Apr 2006 11:36:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

Here's the first step toward dealing with the small memory issue. The
15_create_smallmem_pos.py test was hanging because it created a 16 MB
domain and never got to the point where it could set a console limit.
The OOM messages flooded the console on creation and the select in
Console.py always had something to read. Since there was no limit and it
never timed out, the test would hang. 

This patch:

1) Adds a new cLimit arg for console limit to XmConsole, so it can be
set before the console is created. 

2) Adds a default console limit rather than setting it to None. We'd
rather hit an exception for a limit than hanging the console in the
future. Tests that need more console data can always reset the limit.

3) Changes 15_create_smallmem_pos.py's 16 MEM to 32 MBs, the default
that should work for the tools.

4) Adds a new 16_create_smallmem_neg.py test to hit the lowmem test
failure.

Thanks,

Dan

Attachment: xmtest-smallmem-fix.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>