From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jayaraman, Bhaskar" Subject: RE: Xen runs out of memory! Date: Thu, 12 Mar 2009 16:31:58 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Keir, I'm using a 64 bit unstable version of Xen. 4 Core single socket CPU = with 8GB memory and Dom0 is using around 2.5GB. What do I do to lift heap s= ize restrictions?=20 The only other domain that comes up is my HVM which squeezes Xen out of mem= ory. Do you think I can increase contiguous pages by increasing the value of MAX= _ORDER, which is right now defined as=20 #define MAX_ORDER 20 /* 2^20 contiguous pages */ Which is a hell of a lot of pages and all I'm asking for are 1536 contiguou= s ones. However when I checked in xen/common/page_alloc.c I see the following: - typedef struct list_head heap_by_zone_and_order_t[NR_ZONES][MAX_ORDER+1] Should this have been: - typedef struct list_head heap_by_zone_and_order_t[NR_ZONES][(int)pow(2,MAX_= ORDER * +1)] ?? Bhaskar. -----Original Message----- From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]=20 Sent: Thursday, March 12, 2009 4:03 PM To: Jayaraman, Bhaskar; xen-devel@lists.xensource.com Subject: Re: [Xen-devel] Xen runs out of memory! Are you running a 64-bit hypervisor? You want to do that, and with latest xen-unstable, to lift Xen-heap size restrictions. Beyond that, make sure that other domains (especially dom0) are not using all the memory. Restrict dom0=B9s memory usage by using the dom0_mem=3D option on Xen=B9s command li= ne, for example. -- Keir On 12/03/2009 10:20, "Jayaraman, Bhaskar" wrote= : > Hi all, I=B9m trying to increase max grant table frames from the current = 32 > pages to a user defined value. I=B9m basically trying to map an entire do= main > into another so I have say a Linux HVM with 3GB memory and I=B9m trying t= o map > the whole domain into another domain with 4GB memory. > =20 > So I set the max grant frames to 1536 (needed to map 3GB of memory into a= ny > domain), but when I setup the grant table for that many frames Xen is onl= y > able to setup 1427 grant table frames at the most and Xen fails after thi= s in > alloc_heap_pages. > =20 > I=B9m also not able to bring up any other HVM after this, i.e. xen has no= memory > for any other domains, which makes me wonder if anyone has tested the max= imum > domUs that can be brought up on Xen (255 right?). > =20 > Is there anyway I can make this memory allocation succeed? i.e. by increa= sing > Xen memory or some other means? (Xen in HVM uses 64MB) > =20