From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53140 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOWDz-0002ib-S4 for qemu-devel@nongnu.org; Tue, 15 Jun 2010 09:30:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOWDt-0006op-3T for qemu-devel@nongnu.org; Tue, 15 Jun 2010 09:30:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27523) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOWDs-0006oV-SW for qemu-devel@nongnu.org; Tue, 15 Jun 2010 09:30:37 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5FDUZCa003324 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 15 Jun 2010 09:30:35 -0400 Received: from vlap13.laine.org (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5FDUV2J029701 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 15 Jun 2010 09:30:34 -0400 Message-ID: <4C178076.8030707@redhat.com> Date: Tue, 15 Jun 2010 16:30:30 +0300 From: Laine Stump MIME-Version: 1.0 Subject: Re: [Qemu-devel] [Bug 524447] Re: virsh save is very slow References: <20100219141749.18571.12250.malonedeb@wampee.canonical.com> <20100615100729.26587.67746.malone@palladium.canonical.com> In-Reply-To: <20100615100729.26587.67746.malone@palladium.canonical.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > Bug description: As reported here: > http://www.redhat.com/archives/libvir-list/2009-December/msg00203.html > "virsh save" is very slow - it writes the image at around 1MB/sec on > my test system. (I think I saw a bug report for this issue on Fedora's > bugzilla, but I can't find it now...) Here's the Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=599091 Note that I've already pushed a patch upstream that fixes the problem (reduces save time for a 512MB guest from 3:47 to 0:56), and eric Blake has posted a more refined patch that wastes less space by invoking dd twice (once for libvirt's header, and again for the image) - that hasn't been pushed yet, but will almost definitely supercede my patch before the libvirt-0.8.2 release.