From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Pasi Kärkkäinen" <pasik@iki.fi>
Cc: Daniel Musketa <daniel.musketa@googlemail.com>,
xen-devel@lists.xensource.com
Subject: Re: Re: 2.6.32 pvops dom0 oom when creating a domU
Date: Tue, 2 Aug 2011 12:38:48 -0400 [thread overview]
Message-ID: <20110802163848.GO11133@dumpdata.com> (raw)
In-Reply-To: <20110802045903.GE32373@reaktio.net>
On Tue, Aug 02, 2011 at 07:59:03AM +0300, Pasi Kärkkäinen wrote:
> On Mon, Aug 01, 2011 at 11:19:25PM -0400, Konrad Rzeszutek Wilk wrote:
> > On Tue, Aug 02, 2011 at 01:57:53AM +0200, Daniel Musketa wrote:
> > > 2011/8/2 Daniel Musketa <daniel.musketa@googlemail.com>:
> > > > Maybe I should say more about memory usage:
> > >
> > > I got even more detailled logs for you in the attached file:
> > >
> > > line 3: dom0 memory: 2,560 M
> > > line 20: 21,637 M free
> > > line 34: dom0_mem=4000M
> > > line 47: domU memory = '2800'
> > > line 72: OOM begins
> > > line 157: key 'm' on (XEN) console
> >
> > Try the 'mem=4G' in your Linux line (along with the one in your hypervisor).
> > The problem is that Dom0 sets up pagetables for the 32GB even thought it is never
> > going to use it - the 'mem=4G' should fix that for you.
> >
>
> Hmm.. Does that explain the dom0 OOM ? Why does dom0 OOM when creating a domU ?
> In this case dom0 didn't have to be ballooned down, it shouldn't see any changes to its memory?
So Linux kernel looks at the E820 and sees 30GB of "reserved" memory (that memory is
what dom0 "thinks" it might balloon too - even thought it won't ever do). So Linux thinks
to itself: "OK, we _might_ use that in the future, so lets create the pagetables for it".
And we end up with 800MBs (or more) of pagetables that never end up using. That 800MB does not
get released or what not. So your dom0 ends up with 300MB or so (say with dom0_mem=max:1G)
and we end up with the OOM happily killing things.
The idea, now that Daniel Kipper's patches are in - to use the memory hotplug API to balloon
pages in and out. That should make this much easier.
>
> Just trying to understand it better :)
Of course. Thanks for asking!
>
> -- Pasi
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2011-08-02 16:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-01 22:10 2.6.32 pvops dom0 oom when creating a domU Daniel Musketa
2011-08-01 22:25 ` Daniel Musketa
2011-08-01 23:13 ` Daniel Musketa
2011-08-01 23:57 ` Daniel Musketa
2011-08-02 3:19 ` Konrad Rzeszutek Wilk
2011-08-02 4:59 ` Pasi Kärkkäinen
2011-08-02 16:38 ` Konrad Rzeszutek Wilk [this message]
2011-08-03 16:57 ` Pasi Kärkkäinen
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=20110802163848.GO11133@dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=daniel.musketa@googlemail.com \
--cc=pasik@iki.fi \
--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.