mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tobias Diedrich <ranma+xen@tdiedrich.de>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: xen-users@lists.xensource.com, linux-kernel@vger.kernel.org
Subject: Re: 3.0.0-rc2: Xen: High amount of kernel "reserved" memory, about 33% in 256MB DOMU [workaround included]
Date: Tue, 14 Jun 2011 23:37:27 +0200	[thread overview]
Message-ID: <20110614213727.GA23379@yumi.tdiedrich.de> (raw)
In-Reply-To: <20110614194810.GA26728@dumpdata.com>

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

  reply	other threads:[~2011-06-14 21:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-13 20:50 [Xen-users] 3.0.0-rc2: Xen: High amount of kernel "reserved" memory, about 33% in 256MB DOMU Tobias Diedrich
2011-06-13 21:59 ` Konrad Rzeszutek Wilk
2011-06-14  0:10   ` Tobias Diedrich
2011-06-14 19:48     ` 3.0.0-rc2: Xen: High amount of kernel "reserved" memory, about 33% in 256MB DOMU [workaround included] Konrad Rzeszutek Wilk
2011-06-14 21:37       ` Tobias Diedrich [this message]
2011-06-14 21:14   ` [Xen-users] 3.0.0-rc2: Xen: High amount of kernel "reserved" memory, about 33% in 256MB DOMU Tobias Diedrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110614213727.GA23379@yumi.tdiedrich.de \
    --to=ranma+xen@tdiedrich.de \
    --cc=konrad.wilk@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xen-users@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®