From: Dan Magenheimer Subject: RE: linux kernel 2.6.37 Date: Tue, 25 Jan 2011 13:03:00 -0800 (PST) Message-ID: References: <4D384204020000260001866B@hibbing.edu> <1295554269.22720.6.camel@mobile> <20110120201937.GR2754@reaktio.net> <1295563321.22720.17.camel@mobile> <20110121153056.GA4698@dumpdata.com> <1295626578.32475.2.camel@mobile> <1295900343.2349.6.camel@mobile> <20110125144523.GB7238@dumpdata.com 1295976929.2269.26.camel@mobile> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1295976929.2269.26.camel@mobile> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: v.tolstov@selfip.ru, Konrad Wilk , Jeremy Fitzhardinge Cc: Don Brearley , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > From: Vasiliy G Tolstov [mailto:v.tolstov@selfip.ru] > Sent: Tuesday, January 25, 2011 10:35 AM > To: Konrad Rzeszutek Wilk > Cc: Don Brearley; xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] linux kernel 2.6.37 >=20 > On Tue, 2011-01-25 at 09:45 -0500, Konrad Rzeszutek Wilk wrote: > > I think I know why this is happening =3D the > > kernel allocates pagetables as if you have 4GB of memory and that > eats much of low memory. > > If you decrease the 'maxmem' you should see a smaller amount being > used. > > >=20 > And why xenlinux kernel from centos (2.6.18-194.26.1.el5xen) displays > all memory as available: >=20 > cat /proc/meminfo under 2.6.37 (iommu=3Doff acpi=3Doff): > MemTotal: 447220 kB >=20 > cat /proc/meminfo under 2.6.18-194.26.1.el5xen: > MemTotal: 524288 kB >=20 > ? FYI, I've seen a similar problem with 2.6.37 but noticed it when manually ballooning a PV guest. For example: # echo $((256*1024)) > /sys/devices/system/xen_memory/xen_memory0/target_kb should reduce memory to 256M (or at least somewhere close) but instead /proc/meminfo shows 217812 kB, or about 15% lower than expected. This looks like approximately the same percentage of memory loss that Vasiliy is reporting on boot. /me wonders if it might be related to this thread: http://lists.xensource.com/archives/html/xen-devel/2010-09/msg00987.html=20 assuming the related patch got upstream. Jeremy cc'ed just in case. I do NOT see this issue with 2.6.35.4. In fact, I now see a MemTotal boot-time difference when I boot both with mem=3D512 (in vm.cfg): 2.6.35.4 kernel shows 506864, 2.6.37 shows 495456. Not as much as Vasiliy reports, but still a big mystery. If this problem is real and widespread, I hope nobody is comparing KVM vs Xen (or Xen vs native) on 2.6.37 as that much memory loss could result in a significant performance loss for a Xen guest. Dan