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] Xen 4.0.1 "xc_map_foreign_batch: mmap failed: Cannot all

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] Xen 4.0.1 "xc_map_foreign_batch: mmap failed: Cannot allocate memory"
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Fri, 7 Jan 2011 11:18:31 +0000
Cc: Charles Arnold <CARNOLD@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Fri, 07 Jan 2011 03:17:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4D26EC59020000780002AF40@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/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>
References: <4D26EC59020000780002AF40@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Fri, 7 Jan 2011, Jan Beulich wrote:
> >>> On 06.01.11 at 21:49, Charles Arnold wrote:
> > >>> On 1/6/2011 at 10:14 AM, in message <4D25C782.5B74.0091.0@xxxxxxxxxx>, 
> > >>> Charles Arnold wrote: 
> > Attached is the messages file with the printk output.
> 
> Hmm, a failure due to may_expand_vm() is really odd. Something
> must be explicitly setting a non-infinite RLIMIT_AS on qemu-dm (or
> one of its parents), as the default is "infinite" (as reaching "infinity"
> - being ~0UL - is simply impossible, and unduly large lengths should
> be caught by get_unmapped_area() already).
> 
> /proc/<pid>/limits would at least tell us what the limit is.
> 

Knowing this would be very interesting.


> And certainly qemu-dm needs to be prepared to have a
> non-infinite address space limit set on it.
> 

Currently the number of buckets and the bucket size in the mapcache are
statically defined depending on x86_32/x86_64.
It shouldn't be difficult to make them dynamic depending on RLIMIT_AS.

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