From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdGTY-0001aI-Uw for qemu-devel@nongnu.org; Mon, 04 Nov 2013 04:29:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdGTT-0006PE-8U for qemu-devel@nongnu.org; Mon, 04 Nov 2013 04:29:36 -0500 Received: from mx.ipv6.kamp.de ([2a02:248:0:51::16]:56500 helo=mx01.kamp.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdGTS-0006P0-Uz for qemu-devel@nongnu.org; Mon, 04 Nov 2013 04:29:31 -0500 Message-ID: <527768F5.5080909@kamp.de> Date: Mon, 04 Nov 2013 10:29:25 +0100 From: Peter Lieven MIME-Version: 1.0 References: <1382599289-9503-1-git-send-email-pl@kamp.de> <87d2mvouc5.fsf@elfo.elfo> In-Reply-To: <87d2mvouc5.fsf@elfo.elfo> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RESEND][PATCH] migration: drop MADVISE_DONT_NEED for incoming zero pages List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: quintela@redhat.com Cc: pbonzini@redhat.com, haoyu.zhang@huawei.com, qemu-devel@nongnu.org, afaerber@suse.de, xiaoguangrong@linux.vnet.ibm.com On 24.10.2013 12:07, Juan Quintela wrote: > Peter Lieven wrote: >> The madvise for zeroed out pages was introduced when every transferred >> zero page was memset to zero and thus allocated. Since commit >> 211ea740 we check for zeroness of a target page before we memset >> it to zero. Additionally we memmap target memory so it is essentially >> zero initialized (except for e.g. option roms and bios which are loaded >> into target memory although they shouldn't). >> >> It was reported recently that this madvise causes a performance degradation >> in some situations. As the madvise should only be called rarely and if it's called >> it is likely on a busy page (it was non-zero and changed to zero during migration) >> drop it completely. > Reviewed-by: Juan Quintela > > I take it. I am on KVM Forum/LinuxCon this week. Will send when back > at home. Ping Peter