From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Bareiro Subject: Re: KSM with Debian GNU/Linux Date: Mon, 9 Aug 2010 11:27:32 -0300 Message-ID: <20100809142732.GC1771@defiant.freesoftware> References: <20100809101635.GB1771@defiant.freesoftware> <4C5FD800.9000905@msgid.tls.msk.ru> Reply-To: dbareiro@gmx.net Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iFRdW5/EC4oqxDHL" To: KVM General Return-path: Received: from mailout-de.gmx.net ([213.165.64.23]:41973 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1752521Ab0HIO1j (ORCPT ); Mon, 9 Aug 2010 10:27:39 -0400 Received: from defiant (defiant.freesoftware [10.1.0.65]) by hermes.freesoftware (Postfix) with ESMTP id CA21D1B2 for ; Mon, 9 Aug 2010 11:24:55 -0300 (ART) Content-Disposition: inline In-Reply-To: <4C5FD800.9000905@msgid.tls.msk.ru> Sender: kvm-owner@vger.kernel.org List-ID: --iFRdW5/EC4oqxDHL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Monday, 09 August 2010 14:27:12 +0400, Michael Tokarev wrote: >> I have understood that in addition to support from the kernel and >> qemu-kvm, there must be support in libc. So in testing I was doing on >> Lenny, it did not work using libc from Debian repositories. Now that >> squeeze is frozen, anyone knows if it will support KSM? > KSM is working in qemu-kvm packages in bpo, for quite long > time already. It has nothing to do with libc, and now it > does not even require recent-enough kernel headers to compile. > What's needed is recent-enough kernel that actually implements > the feature. The kernel in Lenny does not KSM support, but > the one in bpo has. Also note that Lenny's kernel is too old > for kvm. I'm using Linux 2.6.32.3 compiled by myself with the kernel.org source code with support for KSM: # cat /boot/config-2.6.32.3-dgb | grep KSM CONFIG_KSM=3Dy I'm also using qemu-kvm 0.12.1.2 compiled by myself with the source code of SourceForge. These are the checks that I was doing in the VMHost: # ll /sys/kernel/mm/ksm/ total 0 -r--r--r-- 1 root root 4096 ago 9 06:28 full_scans -rw-r--r-- 1 root root 4096 ago 9 06:28 max_kernel_pages -r--r--r-- 1 root root 4096 ago 9 06:28 pages_shared -r--r--r-- 1 root root 4096 ago 9 06:28 pages_sharing -rw-r--r-- 1 root root 4096 ago 9 06:28 pages_to_scan -r--r--r-- 1 root root 4096 ago 9 06:28 pages_unshared -r--r--r-- 1 root root 4096 ago 9 06:28 pages_volatile -rw-r--r-- 1 root root 4096 ago 9 06:27 run -rw-r--r-- 1 root root 4096 ago 9 06:28 sleep_millisecs # cat /sys/kernel/mm/ksm/max_kernel_pages 253500 But KSM seems not work: # cat /sys/kernel/mm/ksm/pages_sharing 0 Should I have some additional consideration when compiling qemu-kvm? Thanks for your reply. Regards, Daniel --=20 Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Lenny - Linux user #188.598 --iFRdW5/EC4oqxDHL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkxgEFQACgkQZpa/GxTmHTcngwCeMLR9wK8ORdv0EK5ebT2sP6YY 9BcAnRJGna9nl3eLSZm+KzuyRrSIDwEl =jeGM -----END PGP SIGNATURE----- --iFRdW5/EC4oqxDHL--