Received: from eggs.gnu.org ([2001:4830:134:3::10]:58346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adxDo-00035Z-2h for qemu-devel@nongnu.org; Thu, 10 Mar 2016 04:49:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adxDk-0005pe-Rb for qemu-devel@nongnu.org; Thu, 10 Mar 2016 04:49:32 -0500 Received: from mx2.parallels.com ([199.115.105.18]:57324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adxDk-0005p6-MJ for qemu-devel@nongnu.org; Thu, 10 Mar 2016 04:49:28 -0500 Date: Thu, 10 Mar 2016 12:49:13 +0300 From: Roman Kagan Message-ID: <20160310094912.GC9715@rkaganb.sw.ru> References: <1457082167-12254-1-git-send-email-jitendra.kolhe@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1457082167-12254-1-git-send-email-jitendra.kolhe@hpe.com> Subject: Re: [Qemu-devel] [PATCH v1] migration: skip sending ram pages released by virtio-balloon driver. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jitendra Kolhe Cc: simhan@hpe.com, mohan_parthasarathy@hpe.com, qemu-devel@nongnu.org, dgilbert@redhat.com On Fri, Mar 04, 2016 at 02:32:47PM +0530, Jitendra Kolhe wrote: > Even though the pages which are returned to the host by virtio-balloon > driver are zero pages, the migration algorithm will still end up > scanning the entire page ram_find_and_save_block() -> ram_save_page/ > ram_save_compressed_page -> save_zero_page() -> is_zero_range(). We > also end-up sending some control information over network for these > page during migration. This adds to total migration time. I wonder if it is the scanning for zeros or sending the whiteout which affects the total migration time more. If it is the former (as I would expect) then a rather local change to is_zero_range() to make use of the mapping information before scanning would get you all the speedups without protocol changes, interfering with postcopy etc. Roman.