From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjlHR-0002l4-CO for qemu-devel@nongnu.org; Wed, 07 Oct 2015 05:45:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjlHO-0004vb-3A for qemu-devel@nongnu.org; Wed, 07 Oct 2015 05:45:01 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:37692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjlHN-0004ur-UI for qemu-devel@nongnu.org; Wed, 07 Oct 2015 05:44:58 -0400 Received: by wicfx3 with SMTP id fx3so19771602wic.0 for ; Wed, 07 Oct 2015 02:44:57 -0700 (PDT) Sender: Paolo Bonzini References: <5614531B.5080107@redhat.com> <1444198846-5383-1-git-send-email-den@openvz.org> <1444198846-5383-7-git-send-email-den@openvz.org> From: Paolo Bonzini Message-ID: <5614E995.8010406@redhat.com> Date: Wed, 7 Oct 2015 11:44:53 +0200 MIME-Version: 1.0 In-Reply-To: <1444198846-5383-7-git-send-email-den@openvz.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: Igor Redko , jsnow@redhat.com, qemu-devel@nongnu.org, annam@virtuozzo.com On 07/10/2015 08:20, Denis V. Lunev wrote: > + if (migrate_is_test()) { > + /* since no data is transfered during estimation all > + all measurements below will be incorrect. > + as well no need for delays. */ > + continue; > + } By applying delays, you can also test migration using bandwidth limitations and try to estimate whether it will converge or not. Perhaps if you use writev_buffer to implement the test QEMUFile you do not need this anymore. Paolo