From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Hookins Subject: Memory sync algorithm during migration Date: Thu, 10 Nov 2011 17:35:32 +0100 Message-ID: <20111110163532.GE5656@spacemoose.devbln.europe.nokia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: kvm@vger.kernel.org Return-path: Received: from smtp.nokia.com ([147.243.1.48]:30118 "EHLO mgw-sa02.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935222Ab1KJQfg (ORCPT ); Thu, 10 Nov 2011 11:35:36 -0500 Received: from spacemoose.devbln.europe.nokia.com (bfs-dhcp23975.europe.nokia.com [172.25.239.75]) by mgw-sa02.nokia.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pAAGZV8K012513 for ; Thu, 10 Nov 2011 18:35:32 +0200 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Hi, I am performing some benchmarks on KVM migration on two different types of VM. One has 4GB RAM and the other 32GB. More or less idle, the 4GB VM takes about 20 seconds to migrate on our hardware while the 32GB VM takes about a minute. With a reasonable amount of memory activity going on (in the hundreds of MB per second) the 32GB VM takes 3.5 minutes to migrate, but the 4GB VM never completes. Intuitively this tells me there is some watermarking of dirty pages going on that is not particularly efficient when the dirty pages ratio is high compared to total memory, but I may be completely incorrect. Could anybody fill me in on what might be going on here? We're using libvirt 0.8.2 and kvm-83-224.el5.centos.1