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][TOOLS] libxc: make error path more verbose

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][TOOLS] libxc: make error path more verbose
From: "Christoph Egger" <Christoph.Egger@xxxxxxx>
Date: Tue, 13 Nov 2007 14:50:15 +0100
Delivery-date: Tue, 13 Nov 2007 05:51:17 -0800
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
User-agent: KMail/1.9.6
Hi!

Attached patch makes qemu's output more verbose on failures.

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>

The qemu process seems to leak memory by performing more mmap() calls than 
munmap()'s. When a HVM guest with a 12GB image runs fsck, then the guest 
window disappears when the qemu process dies.

Then /var/log/qemu-dm-<domid>.log shows this:

I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
xc_map_foreign_batch error 12

With the attached patch you see this:

I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
xc_map_foreign_batch: mmap failed: Cannot allocate memory
xc_map_foreign_batch error 12

For short: The patch makes it easier to figure out
when you triggered the resource exhausting bug.



-- 
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy

Attachment: tools_libxc.diff
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][TOOLS] libxc: make error path more verbose, Christoph Egger <=