Skip to contentSkip to conversation

xl vs. xm: memory consumption

DISCUSSION Christoph Egger 3 participants 4 messages Nov 5, 2010 – Nov 15, 2010

lore
Share & tools
lore
#0 lore raw

Hi!

Is it possible that xl needs more memory than xm?
Does xl log somewhere how much memory is free and how much it does want?

xl create -c <guest.conf>
Parsing config file <guest.conf>
failed to free memory for the domain

xm create -c <guest.conf>
[guest boot messages]

Christoph

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
#1 lore raw
Quoted 6 lines · Christoph Egger

Hi!

Is it possible that xl needs more memory than xm?
Does xl log somewhere how much memory is free and how much it does want?

Quoted 7 lines

xl create -c <guest.conf>
Parsing config file <guest.conf>
failed to free memory for the domain

xm create -c <guest.conf>
[guest boot messages]

That's because of freemem-slack: a basic amount of memory left free on the system otherwise memory allocation for new VMs fails. It is calculated using the amount of free memory at boot time, assuming that dom0 was booted using all the memory in the system.
If you boot dom0 passing dom0_mem to xen, then you have to disable autoballooning (autoballoon=0 in /etc/xen/xl.conf).
Given the other bug you reported on libxl__fill_dom0_memory_info, I suspect that the freemem-slack value might be wrong on your system. On the other hand if your configuration is correct, we might have to lower the maximum value of freemem-slack that currently is 15% of the total memory in the system.

#2 lore raw

Stefano Stabellini writes ("Re: [Xen-devel] xl vs. xm: memory consumption"):

Quoted 2 lines

It is calculated using the amount of free memory at boot time, assuming that dom0 was booted using all the memory in the system.

Perhaps it would be worth spotting if freemem_slack is very large and issuing a warning ? That would help spot this particular configuration error which I suspect may become common.

Ian.

#3 lore raw
Quoted 7 lines · Ian Jackson

Stefano Stabellini writes ("Re: [Xen-devel] xl vs. xm: memory consumption"):

Quoted 2 lines

It is calculated using the amount of free memory at boot time, assuming that dom0 was booted using all the memory in the system.

Perhaps it would be worth spotting if freemem_slack is very large and issuing a warning ? That would help spot this particular configuration error which I suspect may become common.

I agree. Currently we limit freemem_slack to 15% of the system memory, maybe we should lower that limit?