All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Sven Köhler" <sven.koehler@gmail.com>, david.vrabel@citrix.com
Cc: xen-devel@lists.xensource.com
Subject: Re: dom0 not seeing all of the assigned memory
Date: Thu, 15 Mar 2012 14:33:30 -0400	[thread overview]
Message-ID: <20120315183330.GB3034@phenom.dumpdata.com> (raw)
In-Reply-To: <jjj8bj$r19$1@dough.gmane.org>

On Sun, Mar 11, 2012 at 11:20:02PM +0100, Sven Köhler wrote:
> Am 27.02.2012 20:04, schrieb Roderick Colenbrander:
> > On Mon, Feb 27, 2012 at 5:34 PM, Henrik Olsson <henrik@fixme.se> wrote:
> >> On Thu, Feb 23, 2012 at 19:55, David Vrabel <dvrabel@cantab.net> wrote:
> >>> On 22/02/12 22:19, Henrik Olsson wrote:
> >>>> Hi, i'm having some trouble with assigning memory to my dom0.
> >>>>
> >>>> I've added "dom0_mem=8192M" to the xen command line yet "free -m"
> >>>> reports only 5686MB total.
> >>>
> >>> [    0.000000] Freeing  6f000-100000 pfn range: 593920 pages freed
> >>> [    0.000000] 1-1 mapping on 6f000->100000
> >>> [    0.000000] Released 595312 pages of unused memory
> >>>
> >>> This accounts for most of your "missing" memory.  To get it back you
> >>> need to adjust the balloon driver's target to the amount of memory you want.
> >>>
> >>> David
> >>
> >> Hi, i'm not sure i understand..
> >>
> >> I've configured /etc/xen/xend-config.sxp with:
> >> (dom0-min-mem 8192)
> >> (enable-dom0-ballooning no)
> >>
> >> Shouldn't this disable ballooning? Or do i need to pass some parameter
> >> somewhere?
> 
> I have the same problem. I believe this also happens even if the
> ballooning driver is disabled in dom0 kernel.
> 
> >> Regards,
> >> Henrik
> > 
> > Make sure you have added the following patch to your Xen if you are
> > using a recent >=3.1 kernel. Unfortunately it isn't in Xen 4.1.x, but
> > I guess it should be added to there:
> > http://xenbits.xen.org/hg/staging/xen-unstable.hg/rev/c56dd5eb0fa2
> > 
> > See if it helps.
> 
> I recompiled the hypervisor (this was a patch for the hypervisor,
> right?) and dom0 only has around 413MB inspite of dom0_mem=512M
> hypervisor parameter.
> 
> free shows 413MB straight after booting into dom0 (no xend, xenstored or
> anything xen related stuff has started yet).

<sigh> So it sounds like that the kernel should balloon up the released
amount of memory. David, did we discuss this at some point and agreed that
was the proper way?

  reply	other threads:[~2012-03-15 18:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-22 22:19 dom0 not seeing all of the assigned memory Henrik Olsson
2012-02-22 22:40 ` Henrik Olsson
2012-02-23 18:55 ` David Vrabel
2012-02-27 17:34   ` Henrik Olsson
2012-02-27 19:04     ` Roderick Colenbrander
2012-03-11 22:20       ` Sven Köhler
2012-03-15 18:33         ` Konrad Rzeszutek Wilk [this message]
2012-03-15 18:54           ` David Vrabel
2012-03-15 20:07             ` Sven Köhler
2012-03-15 20:13               ` Ian Campbell
2012-03-15 20:29                 ` Sven Köhler
2012-03-15 21:55                   ` Ian Campbell
2012-03-15 22:09                     ` Sven Köhler
2012-03-19 11:09               ` David Vrabel
2012-03-19 12:25                 ` Sven Köhler
2012-03-19 12:30                   ` Fantu
2012-04-17  4:33                     ` Brian Szymanski
2012-04-17  4:46                       ` Brian Szymanski
2012-04-17 21:30                         ` Dan Magenheimer

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=20120315183330.GB3034@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=david.vrabel@citrix.com \
    --cc=sven.koehler@gmail.com \
    --cc=xen-devel@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 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.