From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: RE:2Gb Memory lost in 2.6.32.36 - 50G memory, maxmem=50G, 2G used for pagetable, clamping (max:5G) is not helping. Date: Tue, 31 May 2011 10:44:21 -0400 Message-ID: <20110531144420.GL14641@dumpdata.com> References: <20110519144242.GC9854@dumpdata.com> <20110519161656.GA12889@dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: MaoXiaoyun Cc: jeremy@goop.org, xen devel List-Id: xen-devel@lists.xenproject.org On Tue, May 31, 2011 at 04:33:52PM +0800, MaoXiaoyun wrote: > > Hi Konrad; > > I realized that in 32.36 kernel dom0 can balloon up to use whole memory address, in my case it is 48G. But it consumes 845M memory > for sparse memory to manage them, Well, my dom0 doesn't need so big flexable, and I learnt that use "mem=" option in grub can limit > dom0 memory, I think it works for me now. HA! That does it too. > > Any comments? > > title Red Hat Enterprise Linux Server (2.6.32.36xen) > root (hd0,0) > kernel /xen-4.0.1.gz iommu=off x2apic=off console=com1,vga com1=115200,8n1 noreboot dom0_mem=6144M dom0_max_vcpus=4 dom0_vcpus_pin cpuidle=0 cpufreq=none > module /vmlinuz-2.6.32.36xen ro root=LABEL=/ hda=noprobe console=hvc0 mem=8192M > module /initrd-2.6.32.36xen.img That is a good work-around. Still need to fix the bug in the E820 setup code to take dom0_mem=max: parameter under advisment.