Re: 3.0.0-rc2: Xen: High amount of kernel "reserved" memory, about33% in 256MB DOMU [workaround included]
From: Tobias Diedrich
Date: Tue Jun 14 2011 - 17:37:34 EST
Konrad Rzeszutek Wilk wrote:
> On Tue, Jun 14, 2011 at 02:10:55AM +0200, Tobias Diedrich wrote:
> > Konrad Rzeszutek Wilk wrote:
> > > On Mon, Jun 13, 2011 at 10:50:03PM +0200, Tobias Diedrich wrote:
> > > > Hi,
> > > >
> > > > another issue I'm seeing with 3.0-rc2 and Xen is that there is an
> > > > unexpectedly high amount of kernel reserved memory.
> > >
> > > >
> > > > I suspect that Linux allocates page table entries and corresponding
> > > > data structures for the whole 6GB areas of the provided 'physical
> > > > RAM map' even though it has rather big unusable holes in it.
> > >
> > > Can you run it with 'memblock=debug debug loglevel=8 initcall_debug'?
> > > It should tell you where it tries (and for much space) the pagetables.
>
> Ugh. In the meantime I would suggest you do the combination of:
>
> Xen hypervisor line: "dom0_mem=max:512M" and on the Linux line: "mem=512M" to
> cut down on the extra pagetable creation..
That helps a bit on dom0, for a 256MB dom0 it brings free memory up
from 142MB
|Memory: 145576k/6028224k available (6122k kernel code, 3932612k absent, 1950036k reserved, 4761k data, 576k init)
to 173MB
|Memory: 177156k/262144k available (6122k kernel code, 452k absent, 84536k reserved, 4761k data, 576k init)
To shrink it more maybe the acpi tables would have to be moved...
--
Tobias PGP: http://8ef7ddba.uguu.de
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/