[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Xen memory allocation for dom0 and domU

Hi all,

This is a kind of basic question.

I have a cubietruck (armv7) board which has 2G of memory.
I'm using Xen 4.5.

I want to allocate 1.5G to domU and as much as possible to dom0.
It turned out that I only can allocate 128M of memory for dom0.
When I allocated 256M or 384M, I got an error.
Log is attached at the bottom.

I'm looking at tools/libxc/xc_dom_arm.c,
and xen/docs/misc/libxl_memory.txt
However, if there is any written guide(or rule) to allocate memory for
dom0 and domU, it'll be much helpful!!

Best Regards,

# xl -vvvv create -c domU.conf
Parsing config from domU.conf
libxl: debug: libxl_create.c:1501:do_domain_create: ao 0x3b400:
create: how=(nil) callback=(nil) poller=0x34ad0
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk
vdev=xvda spec.backend=unknown
libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk
vdev=xvda, using backend phy
libxl: debug: libxl_create.c:907:initiate_domain_create: running bootloader
libxl: debug: libxl_bootloader.c:329:libxl__bootloader_run: no
bootloader configured, using user supplied kernel
libxl: debug: libxl_event.c:629:libxl__ev_xswatch_deregister: watch
w=0x3526c: deregister unregistered
domainbuilder: detail: xc_dom_allocate: cmdline="console=hvc0
root=/dev/xvda", features="(null)"
libxl: debug: libxl_dom.c:533:libxl__build_pv: pv kernel mapped 0 path
domainbuilder: detail: xc_dom_kernel_file: filename="/boot/vmlinuz"
domainbuilder: detail: xc_dom_malloc_filemap    : 3576 kB
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.5, caps xen-3.0-armv7l
domainbuilder: detail: xc_dom_rambase_init: RAM starts at 40000
domainbuilder: detail: xc_dom_parse_image: called
domainbuilder: detail: xc_dom_find_loader: trying multiboot-binary loader ...
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying Linux zImage (ARM64)
loader ...
domainbuilder: detail: xc_dom_probe_zimage64_kernel: kernel is not an
arm64 Image
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying Linux zImage (ARM32)
loader ...
domainbuilder: detail: loader probe OK
domainbuilder: detail: xc_dom_parse_zimage32_kernel: called
domainbuilder: detail: xc_dom_parse_zimage32_kernel: xen-3.0-armv7l:
0x40008000 -> 0x40386118
libxl: debug: libxl_arm.c:537:libxl__arch_domain_init_hw_description:
configure the domain
libxl: debug: libxl_arm.c:545:libxl__arch_domain_init_hw_description:
constructing DTB for Xen version 4.5 guest
libxl: debug: libxl_arm.c:546:libxl__arch_domain_init_hw_description:
 - vGIC version: V2
libxl: debug: libxl_arm.c:303:make_memory_nodes: Creating placeholder
node /memory@40000000
libxl: debug: libxl_arm.c:303:make_memory_nodes: Creating placeholder
node /memory@200000000
libxl: debug: libxl_arm.c:620:libxl__arch_domain_init_hw_description:
fdt total size 1254
domainbuilder: detail: xc_dom_devicetree_mem: called
domainbuilder: detail: xc_dom_mem_init: mem 1536 MB, pages 0x60000
pages, 4k each
domainbuilder: detail: xc_dom_mem_init: 0x60000 pages
domainbuilder: detail: xc_dom_boot_mem_init: called
domainbuilder: detail: set_mode: guest xen-3.0-armv7l, address size 32
domainbuilder: detail: xc_dom_malloc            : 3072 kB
domainbuilder: detail: populate_guest_memory: populating RAM @
0000000040000000-00000000a0000000 (1536MB)
domainbuilder: detail: populate_one_size: populated 0x2ae/0x300
entries with shift 9
domainbuilder: detail: populate_one_size: populated 0x343/0xa400
entries with shift 0
domainbuilder: detail: populate_guest_memory: Not enough RAM
xc: error: panic: xc_dom_boot.c:154: xc_dom_boot_mem_init: can't
allocate low memory for domain: Out of memory
libxl: error: libxl_dom.c:595:libxl__build_pv: xc_dom_boot_mem_init
failed: Cannot allocate memory
domainbuilder: detail: xc_dom_release: called
libxl: error: libxl_create.c:1121:domcreate_rebuild_done: cannot
(re-)build domain: -3
libxl: debug: libxl_event.c:1765:libxl__ao_complete: ao 0x3b400: complete, rc=-3
libxl: debug: libxl_create.c:1517:do_domain_create: ao 0x3b400:
inprogress: poller=0x34ad0, flags=ic
libxl: debug: libxl_event.c:1737:libxl__ao__destroy: ao 0x3b400: destroy
xc: debug: hypercall buffer: total allocations:586 total releases:586
xc: debug: hypercall buffer: current allocations:0 maximum allocations:4
xc: debug: hypercall buffer: cache current size:4
xc: debug: hypercall buffer: cache hits:573 misses:4 toobig:9

Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.