Skip to contentSkip to conversation

Not enough RAM for domain 0 allocation.

DISCUSSION Luca 2 participants 5 messages Aug 12, 2008 – Aug 14, 2008

lore
Share & tools
lore

Luca

author
#0 lore raw

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
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Are you using 64-bit Xen? In that case we can fix this probably quite easily. For 32-bit Xen it is harder.

-- Keir

Quoted 22 lines · Luca

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

Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw

Replace MEMF_bit(30) with 0 and let us know how that works.

-- Keir

Quoted 9 lines · Luca

I'm using a 32-bit Xen. But I could switch to a 64-bit if fixing that problem is easier.
So, how can I fix the problem with a 64-bit Xen?

Thanks,
Luca

Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel