Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhLPM-00019C-6E for qemu-devel@nongnu.org; Tue, 16 Feb 2010 06:16:00 -0500 Received: from [199.232.76.173] (port=56416 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhLPL-000194-Jn for qemu-devel@nongnu.org; Tue, 16 Feb 2010 06:15:59 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NhLPK-0006tt-Bb for qemu-devel@nongnu.org; Tue, 16 Feb 2010 06:15:59 -0500 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]:57396) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NhLPJ-0006tQ-K2 for qemu-devel@nongnu.org; Tue, 16 Feb 2010 06:15:58 -0500 Message-ID: <4B7A7E72.6060305@lab.ntt.co.jp> Date: Tue, 16 Feb 2010 20:16:02 +0900 From: OHMURA Kei MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH v2] qemu-kvm: Speed up of the dirty-bitmap-traveling References: <4B728FF9.6010707@lab.ntt.co.jp> <4B72B28E.6010801@redhat.com> <4B72D706.3070602@codemonkey.ws> <4B74B70A.4030805@lab.ntt.co.jp> <4B77EDC2.7000401@redhat.com> <4B78E5C5.80802@lab.ntt.co.jp> <247526C9-7810-4F4D-AE3D-C1A774FF6FFB@suse.de> In-Reply-To: <247526C9-7810-4F4D-AE3D-C1A774FF6FFB@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: ohmura.kei@lab.ntt.co.jp, "kvm@vger.kernel.org" , mtosatti@redhat.com, Yoshiaki Tamura , "qemu-devel@nongnu.org" , Avi Kivity , drepper@redhat.com > "We think"? I mean - yes, I think so too. But have you actually measured it? > How much improvement are we talking here? > Is it still faster when a bswap is involved? Thanks for pointing out. I will post the data for x86 later. However, I don't have a test environment to check the impact of bswap. Would you please measure the run time between the following section if possible? start -> qemu-kvm.c: static int kvm_get_dirty_bitmap_cb(unsigned long start, unsigned long len, void *bitmap, void *opaque) { /* warm up each function */ kvm_get_dirty_pages_log_range(start, bitmap, start, len); kvm_get_dirty_pages_log_range_new(start, bitmap, start, len); /* measurement */ int64_t t1, t2; t1 = cpu_get_real_ticks(); kvm_get_dirty_pages_log_range(start, bitmap, start, len); t1 = cpu_get_real_ticks() - t1; t2 = cpu_get_real_ticks(); kvm_get_dirty_pages_log_range_new(start, bitmap, start, len); t2 = cpu_get_real_ticks() - t2; printf("## %zd, %zd\n", t1, t2); fflush(stdout); return kvm_get_dirty_pages_log_range_new(start, bitmap, start, len); } end ->