From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Bareiro Subject: Re: KSM with Debian GNU/Linux Date: Sun, 15 Aug 2010 21:49:28 -0300 Message-ID: <20100816004928.GH30120@defiant.freesoftware> References: <20100809101635.GB1771@defiant.freesoftware> <4C5FD800.9000905@msgid.tls.msk.ru> <20100809142732.GC1771@defiant.freesoftware> <4C601E97.3080102@msgid.tls.msk.ru> <20100813010534.GA24332@defiant.freesoftware> Reply-To: dbareiro@gmx.net Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="76DTJ5CE0DCVQemd" Cc: dbareiro@gmx.net To: KVM General Return-path: Received: from mailout-de.gmx.net ([213.165.64.23]:50566 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1751775Ab0HPAte (ORCPT ); Sun, 15 Aug 2010 20:49:34 -0400 Content-Disposition: inline In-Reply-To: <20100813010534.GA24332@defiant.freesoftware> Sender: kvm-owner@vger.kernel.org List-ID: --76DTJ5CE0DCVQemd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, all! On Thursday, 12 August 2010 22:05:34 -0300, Daniel Bareiro wrote: > Keeping the kernel I had compiled and installing the qemu-kvm package > in Backports, now KSM is working: >=20 > # cat /sys/kernel/mm/ksm/pages_sharing > 181406 Looking at the statistics of the values obtained running 15 virtual machines totaling 10.7 GB on a 4 GB VMHost, I get the following, which is a very interesting memory savings: # for ii in /sys/kernel/mm/ksm/* ; do echo -n "$ii: " ; cat $ii ; done /sys/kernel/mm/ksm/full_scans: 4114 /sys/kernel/mm/ksm/max_kernel_pages: 253500 /sys/kernel/mm/ksm/pages_shared: 67064 /sys/kernel/mm/ksm/pages_sharing: 510990 /sys/kernel/mm/ksm/pages_to_scan: 100 /sys/kernel/mm/ksm/pages_unshared: 448079 /sys/kernel/mm/ksm/pages_volatile: 13595 /sys/kernel/mm/ksm/run: 1 /sys/kernel/mm/ksm/sleep_millisecs: 20 # free total used free shared buffers cached Mem: 4056468 2578728 1477740 0 3736 62156 -/+ buffers/cache: 2512836 1543632 Swap: 497848 25972 471876 Some recommendation about tunning of KSM? I've no very clear about the difference between page_shared and page_sharing. Somebody could clarify it? 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 --76DTJ5CE0DCVQemd 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) iEYEARECAAYFAkxoixgACgkQZpa/GxTmHTd94ACeI6qIJ2mQFdLk/kJ/yeCopZFo nZQAn0XyUVfXdCaY/sOjjj30LdhFhlwU =WTlT -----END PGP SIGNATURE----- --76DTJ5CE0DCVQemd--