* xl vs. xm: memory consumption
@ 2010-11-05 16:28 Christoph Egger
2010-11-09 18:39 ` Stefano Stabellini
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2010-11-05 16:28 UTC (permalink / raw)
To: xen-devel
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
--
---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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: xl vs. xm: memory consumption
2010-11-05 16:28 xl vs. xm: memory consumption Christoph Egger
@ 2010-11-09 18:39 ` Stefano Stabellini
2010-11-10 14:38 ` Ian Jackson
0 siblings, 1 reply; 4+ messages in thread
From: Stefano Stabellini @ 2010-11-09 18:39 UTC (permalink / raw)
To: Christoph Egger; +Cc: xen-devel@lists.xensource.com
On Fri, 5 Nov 2010, Christoph Egger wrote:
>
> 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]
>
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: xl vs. xm: memory consumption
2010-11-09 18:39 ` Stefano Stabellini
@ 2010-11-10 14:38 ` Ian Jackson
2010-11-15 15:32 ` Stefano Stabellini
0 siblings, 1 reply; 4+ messages in thread
From: Ian Jackson @ 2010-11-10 14:38 UTC (permalink / raw)
To: Stefano Stabellini; +Cc: Christoph Egger, xen-devel@lists.xensource.com
Stefano Stabellini writes ("Re: [Xen-devel] xl vs. xm: memory consumption"):
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: xl vs. xm: memory consumption
2010-11-10 14:38 ` Ian Jackson
@ 2010-11-15 15:32 ` Stefano Stabellini
0 siblings, 0 replies; 4+ messages in thread
From: Stefano Stabellini @ 2010-11-15 15:32 UTC (permalink / raw)
To: Ian Jackson
Cc: Christoph Egger, xen-devel@lists.xensource.com, Jonathan Knowles,
Stefano Stabellini
On Wed, 10 Nov 2010, Ian Jackson wrote:
> Stefano Stabellini writes ("Re: [Xen-devel] xl vs. xm: memory consumption"):
> > 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?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-15 15:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-05 16:28 xl vs. xm: memory consumption Christoph Egger
2010-11-09 18:39 ` Stefano Stabellini
2010-11-10 14:38 ` Ian Jackson
2010-11-15 15:32 ` Stefano Stabellini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.