From: Keir Fraser Subject: Re: Not enough RAM for domain 0 allocation. Date: Tue, 12 Aug 2008 21:33:16 +0100 Message-ID: References: <3d87aabd0808121237q3670c8abqbedb50debc41f8c4@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0240932550==" Return-path: In-Reply-To: <3d87aabd0808121237q3670c8abqbedb50debc41f8c4@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Luca , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0240932550== Content-type: multipart/alternative; boundary="B_3301421599_5616004" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3301421599_5616004 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Are you using 64-bit Xen? In that case we can fix this probably quite easily. For 32-bit Xen it is harder. -- Keir On 12/8/08 20:37, "Luca" wrote: > Hi all, > I have been trying to use Xen with a diskless workstation. > My system has 3G of RAM. I have built a ramdisk (whose size is 450M) and I'm > trying to load everything in memory (Xen,Dom0 and the ramdisk). > > In the file arch/x86/domain_build.c the function alloc_domheap_pages > is invoked page=alloc_domheap_pages(d,order,MEMF_bit(30); // in my case order > =17 > > This function returns a NULL pointer, which generates the error "Not enough > RAM for domain 0 allocation" > It seems that if the total size of hypervisor+dom0+ramdisk is less than 256M > everything works, if it is bigger than that I got that problem. > Is there anything I have to set? I have tried playing with dom0_mem but > nothing worked. > Any hint on how to proceed would really help me a lot. > > Thanks, > Luca > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel --B_3301421599_5616004 Content-type: text/html; charset="US-ASCII" Content-transfer-encoding: quoted-printable Re: [Xen-devel] Not enough RAM for domain 0 allocation. Are y= ou using 64-bit Xen? In that case we can fix this probably quite easily. For= 32-bit Xen it is harder.

 -- Keir

On 12/8/08 20:37, "Luca" <lucarx76@gmail.com> wrote:

Hi all,
 I have been trying to use Xen with a diskless workstation.
My system has 3G of RAM. I have built a ramdisk (whose size is 450M)  = and I'm trying to load everything in memory (Xen,Dom0 and the ramdisk).

In the file arch/x86/domain_build.c the function alloc_domheap_pages
is invoked page=3Dalloc_domheap_pages(d,order,MEMF_bit(30);  // in my ca= se order =3D17

This function returns a NULL pointer, which generates the error "Not e= nough RAM for domain 0 allocation"
It seems that if the total size of hypervisor+dom0+ramdisk is less than 256= M everything works, if it is bigger than that I got that  problem.
Is there anything I have to set? I have tried playing with dom0_mem but not= hing worked.
Any hint on how to proceed would really help me a lot.

Thanks,
  Luca



____________________= ___________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/x= en-devel

--B_3301421599_5616004-- --===============0240932550== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0240932550==--