xen-devel
Re: [Xen-devel] RE: Ballooning up
To: |
Jeremy Fitzhardinge <jeremy@xxxxxxxx> |
Subject: |
Re: [Xen-devel] RE: Ballooning up |
From: |
Ian Campbell <Ian.Campbell@xxxxxxxxxx> |
Date: |
Wed, 15 Sep 2010 08:13:06 +0100 |
Cc: |
Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "Xen-devel@xxxxxxxxxxxxxxxxxxx" <Xen-devel@xxxxxxxxxxxxxxxxxxx>, Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>, Konrad Wilk <konrad.wilk@xxxxxxxxxx>, Stefano, Daniel Kiper <dkiper@xxxxxxxxxxxx> |
Delivery-date: |
Wed, 15 Sep 2010 00:13:46 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<4C8FF18D.4000900@xxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
Organization: |
Citrix Systems, Inc. |
References: |
<4C85F973.2030007@xxxxxxxx> <54eebb3a-f539-43be-8134-a969a4f671c4@default 4C8EAB0E.7040407@xxxxxxxx> <fff92a90-1f09-4509-9227-4060cc660fd1@default 4C8EC5CF.6000808@xxxxxxxx> <2588d06f-8b7f-4cde-9a44-90906c66315f@default> <4C8FF18D.4000900@xxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
On Tue, 2010-09-14 at 23:05 +0100, Jeremy Fitzhardinge wrote:
> On 09/14/2010 08:06 AM, Dan Magenheimer wrote:
> >> true, if you don't intend to balloon up, there's no point wasting
> >> memory on unused page structures.
> > I think this is the key. If dom0_mem is NOT specified, dom0
> > launches with (essentially) all the physical memory of the
> > machine, page tables are allocated in dom0 to map all of physical
> > memory, and auto-ballooning is necessary to launch guests.
> >
> > If dom0_mem IS specified, it is often a much smaller number
> > than size of physical memory; why waste ~1.5% of physical memory
> > on page structures that will never be used?
> >
> > If someone wants to add an option to augment dom0_mem to allow
> > memory-up-ballooning of dom0 above dom0_mem (and can justify
> > a reason why some user might ever use this functionality),
> > that's fine. But let's not change the definition of the
> > dom0_mem option just because a bug fix happens to make it
> > possible.
>
> Technically (pedantically), the meaning of dom0_mem is unchanged - it
> sets the initial number of pages given to the domain, and is
> functionally identical to the normal "memory" parameter in a domU config
> file. The difference is that we're now paying attention to the E820
> map, which is set by maxmem= in domU, but is the hardware/BIOS one in dom0.
>
> I'm not sure what I'm doing that's different to the xenolinux kernels; I
> guess they hack up the whole memory init path more aggressively. But
> the pvops behaviour is more or less the straightforward outcome of
> looking at the Xen-provided E820 and reserving the gaps between the
> actual page count and the memory described therein.
xenolinux treats the XENMEM_memory_map and XENMEM_machine_memory_map as
separate things in some wierd split-brain understanding of the physical
address space. Try looking in /proc/iomem on a xenolinux kernel -- IIRC
it has a mish-mash of both address spaces in it...
What PVops does is far more sane.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- RE: [Xen-devel] Ballooning up, (continued)
[Xen-devel] RE: Ballooning up, Dan Magenheimer
Re: [Xen-devel] RE: Ballooning up, Jan Beulich
Re: [Xen-devel] RE: Ballooning up, Jeremy Fitzhardinge
Re: [Xen-devel] RE: Ballooning up, Ian Campbell
Re: [Xen-devel] RE: Ballooning up, Jeremy Fitzhardinge
Re: [Xen-devel] RE: Ballooning up, Ian Campbell
Re: [Xen-devel] RE: Ballooning up, Jeremy Fitzhardinge
RE: [Xen-devel] RE: Ballooning up, Dan Magenheimer
Re: [Xen-devel] RE: Ballooning up, Jeremy Fitzhardinge
Re: [Xen-devel] RE: Ballooning up, Ian Campbell
|
|
|