From: Nikola Ciprich Subject: Re: problems getting KSM running on newer 2.6.32.x kernels Date: Wed, 10 Feb 2010 13:28:47 +0100 Message-ID: <20100210122846.GA27681@develbox.linuxbox.cz> References: <20100201103740.GA4647@develbox.linuxbox.cz> <4B713E43.7000205@redhat.com> <20100209150217.51336c6f@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , KVM list , nikola.ciprich@linuxbox.cz To: Izik Eidus Return-path: Received: from gwu.lbox.cz ([62.245.111.132]:46814 "EHLO gwu.lbox.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755700Ab0BJM2w (ORCPT ); Wed, 10 Feb 2010 07:28:52 -0500 Content-Disposition: inline In-Reply-To: <20100209150217.51336c6f@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi Avi, Izik, today I spent some time investigating the problem and I've found the culprit: RHEL5 glibc doesn't define MADV_MERGEABLE, so qemu-kvm didn't compile with KSM support. After I added -DMADV_MERGEABLE=12 -DMADV_UNMERGEABLE=13 CFLAGS, things started to work. Strange it worked for me before - I don't remember using that kind of hack before, but nevermind, it works now! thanks and sorry for my fault. have a nice day nik On Tue, Feb 09, 2010 at 03:02:17PM +0200, Izik Eidus wrote: > On Tue, 09 Feb 2010 12:51:47 +0200 > Avi Kivity wrote: > > > On 02/01/2010 12:37 PM, Nikola Ciprich wrote: > > > Hello, > > > it seems to me that after upgrading to some 2.6.32.x release, KSM stopped working > > > for me. I'm not exactly sure which update did this, but enabling KSM doesn't > > > seem to do anything, ksmd process just sleeps and doesn't merge any memory. > > > Early 2.6.32 versions worked correctly for me, now I'm using 2.6.32.7 and qemu-kvm-0.12.2. > > > > > > I'm enabling it using: > > > > > > echo 262144> /sys/kernel/mm/ksm/pages_to_scan > > > echo 100> /sys/kernel/mm/ksm/sleep_millisecs > > > echo 1> /sys/kernel/mm/ksm/run > > Is it happen to you just in 2.6.32.x? what happen with 2.6.33.x? > > I have tested it on 2.6.33.x and it seems to work... > > > > > > > > > > > Izik? > > > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- ------------------------------------- Ing. Nikola CIPRICH LinuxBox.cz, s.r.o. 28. rijna 168, 709 01 Ostrava tel.: +420 596 603 142 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: servis@linuxbox.cz -------------------------------------