xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: MaoXiaoyun <tinnycloud@hotmail.com>
Cc: jeremy@goop.org, xen devel <xen-devel@lists.xensource.com>
Subject: Re: RE:2Gb Memory lost in 2.6.32.36 - 50G memory, maxmem=50G, 2G used for pagetable.
Date: Thu, 19 May 2011 10:42:42 -0400	[thread overview]
Message-ID: <20110519144242.GC9854@dumpdata.com> (raw)
In-Reply-To: <BLU157-w1E33BE64D768511906790DA8E0@phx.gbl>

> 4) Compare the boot log   between kernel 10 and 36, I noticed something different, they have different last_pfn.
>  
> ===below is 36====
>  Xen: 0000000000000000 - 000000000009a000 (usable)
>  Xen: 000000000009a400 - 0000000000100000 (reserved)
>  Xen: 0000000000100000 - 00000000bf790000 (usable)
>  Xen: 00000000bf790000 - 00000000bf79e000 (ACPI data)
>  Xen: 00000000bf79e000 - 00000000bf7d0000 (ACPI NVS)
>  Xen: 00000000bf7d0000 - 00000000bf7e0000 (reserved)
>  Xen: 00000000bf7ec000 - 00000000c0000000 (reserved)
>  Xen: 00000000e0000000 - 00000000f0000000 (reserved)
>  Xen: 00000000fec00000 - 00000000fec01000 (reserved)
>  Xen: 00000000fec8a000 - 00000000fec8b000 (reserved)
>  Xen: 00000000fee00000 - 00000000fee01000 (reserved)
>  Xen: 00000000fff00000 - 0000000100000000 (reserved)
>  Xen: 0000000100000000 - 0000000c6ff09000 (usable)

Ok, C6FF09-100000 is 46GB

> DMI present.
> AMI BIOS detected: BIOS may corrupt low RAM, working around it.
> last_pfn = 0xc6ff09 max_arch_pfn = 0x400000000
> last_pfn = 0xbf790 max_arch_pfn = 0x400000000
>  
> =========below is 10
>  
>  Xen: 0000000000000000 - 000000000009a400 (usable)
>  Xen: 000000000009a400 - 0000000000100000 (reserved)
>  Xen: 0000000000100000 - 00000000bf790000 (usable)
>  Xen: 00000000bf790000 - 00000000bf79e000 (ACPI data)
>  Xen: 00000000bf79e000 - 00000000bf7d0000 (ACPI NVS)
>  Xen: 00000000bf7d0000 - 00000000bf7e0000 (reserved)
>  Xen: 00000000bf7ec000 - 00000000c0000000 (reserved)
>  Xen: 00000000e0000000 - 00000000f0000000 (reserved)
>  Xen: 00000000fec00000 - 00000000fec01000 (reserved)
>  Xen: 00000000fec8a000 - 00000000fec8b000 (reserved)
>  Xen: 00000000fee00000 - 00000000fee01000 (reserved)
>  Xen: 00000000fff00000 - 0000000100000000 (reserved)
>  Xen: 0000000100000000 - 000000015fe00000 (usable)

And, 15FE00-100000 = 392704*4K/1K/1K = 1534MB = 1.5G

> DMI present.
> AMI BIOS detected: BIOS may corrupt low RAM, working around it.
> last_pfn = 0x15fe00 max_arch_pfn = 0x400000000
> last_pfn = 0xbf790 max_arch_pfn = 0x400000000
>  

So the problem looks as the .36 is creating a pagetable for the
memory above the 5G you provided - which sounds correct as
you gave it 5G and the expectation that it can balloon up to 50G.

What happens if you provide dom0_mem=max:5G to clamp on the size?

  reply	other threads:[~2011-05-19 14:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <SNT0-MC4-F34MpzkUY6002755b8@snt0-mc4-f34.Snt0.hotmail.com>
2011-05-18 14:58 ` Memory missing in 2.6.32.36 MaoXiaoyun
2011-05-19  3:58   ` MaoXiaoyun
2011-05-19  5:30     ` MaoXiaoyun
2011-05-19 13:17       ` RE:2Gb Memory lost " MaoXiaoyun
2011-05-19 14:42         ` Konrad Rzeszutek Wilk [this message]
2011-05-19 15:31           ` RE:2Gb Memory lost in 2.6.32.36 - 50G memory, maxmem=50G, 2G used for pagetable MaoXiaoyun
2011-05-19 16:16             ` RE:2Gb Memory lost in 2.6.32.36 - 50G memory, maxmem=50G, 2G used for pagetable, clamping (max:5G) is not helping Konrad Rzeszutek Wilk
2011-05-25  9:08               ` MaoXiaoyun
2011-05-31  8:33                 ` MaoXiaoyun
2011-05-31 14:44                   ` Konrad Rzeszutek Wilk
2011-05-19 14:44         ` 2Gb Memory lost in 2.6.32.36 Konrad Rzeszutek Wilk
2011-05-19 15:32           ` MaoXiaoyun

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=20110519144242.GC9854@dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=jeremy@goop.org \
    --cc=tinnycloud@hotmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).