From: "peter.lieven@gmail.com" Subject: Re: linux guests and ksm performance Date: Thu, 23 Feb 2012 20:08:27 +0100 Message-ID: <2c2e4d6e-53f0-4698-8ad0-f4708b7987c6@email.android.com> References: <1333613dbb15f2b736394d77e795223e.squirrel@ssl.dlh.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org To: Stefan Hajnoczi Return-path: Received: from ssl.dlh.net ([91.198.192.8]:39876 "EHLO ssl.dlh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753500Ab2BWTIf (ORCPT ); Thu, 23 Feb 2012 14:08:35 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Stefan Hajnoczi schrieb: >On Thu, Feb 23, 2012 at 3:40 PM, Peter Lieven wrote: >> However, in a virtual machine I have not observed the above slow down >to >> that extend >> while the benefit of zero after free in a virtualisation environment >is >> obvious: >> >> 1) zero pages can easily be merged by ksm or other technique. >> 2) zero (dup) pages are a lot faster to transfer in case of >migration. > >The other approach is a memory page "discard" mechanism - which >obviously requires more code changes than zeroing freed pages. > >The advantage is that we don't take the brute-force and CPU intensive >approach of zeroing pages. It would be like a fine-grained ballooning >feature. > I dont think that it is cpu intense. All user pages are zeroed anyway, but at allocation time it shouldnt be a big difference in terms of cpu power. >I hope someone will follow up saying this has already been done or >prototyped :). > >Stefan -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.