WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] RE:2Gb Memory lost in 2.6.32.36 - 50G memory, maxmem=50G

To: MaoXiaoyun <tinnycloud@xxxxxxxxxxx>
Subject: Re: [Xen-devel] RE:2Gb Memory lost in 2.6.32.36 - 50G memory, maxmem=50G, 2G used for pagetable.
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Thu, 19 May 2011 10:42:42 -0400
Cc: jeremy@xxxxxxxx, xen devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 19 May 2011 07:43:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BLU157-w1E33BE64D768511906790DA8E0@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <SNT0-MC4-F34MpzkUY6002755b8@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <BLU157-w147E2A05A8AC5335C0A85BDA8F0@xxxxxxx> <BLU157-w44D25547BD8C553EF8D6B8DA8E0@xxxxxxx> <BLU157-w46754A04E8A3A21400AA1BDA8E0@xxxxxxx> <BLU157-w1E33BE64D768511906790DA8E0@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
> 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?


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel