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/
Home Products Support Community News


[Xen-devel] Memory leak associated with xc_map_foreign_batch?

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Memory leak associated with xc_map_foreign_batch?
From: "Byrne, John (HP Labs)" <john.l.byrne@xxxxxx>
Date: Mon, 20 Jul 2009 05:54:13 +0000
Accept-language: en-US
Acceptlanguage: en-US
Delivery-date: Sun, 19 Jul 2009 22:56:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcoI/oJRu+nI1pVZSVGdQ8qXrO0aBg==
Thread-topic: Memory leak associated with xc_map_foreign_batch?
I running a modified Xen x86_64 based on xen-unstable changeset f80cf52a4fb6, 
linux-2.6.18-xen changset 271d9b9bee40. (Roughly 3.4.0-rc4-pre)

I'm running a process that loops using xc_map_foreign_batch() to map bunch of 
pages from a couple of domains, compares some of them, and then calls munmap() 
on the regions. /proc/meminfo shows a few extra K turning up as Pagetables 
every 10 seconds or so and the machine eventually runs out of memory and the 
OOM killer fires.

I was wondering if anyone knew of a memory leak in the 
xc_map_foreign_batch()/munmap() path that might have been fixed or where I 
might look? (Or possibly what silly thing I'm doing wrong.)


John Byrne

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Memory leak associated with xc_map_foreign_batch?, Byrne, John (HP Labs) <=