From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=39618 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBb0q-0000pf-M9 for qemu-devel@nongnu.org; Mon, 10 May 2010 17:59:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBb0o-0006oR-VG for qemu-devel@nongnu.org; Mon, 10 May 2010 17:59:44 -0400 Received: from mail-yx0-f191.google.com ([209.85.210.191]:64946) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBb0o-0006oK-O0 for qemu-devel@nongnu.org; Mon, 10 May 2010 17:59:42 -0400 Received: by yxe29 with SMTP id 29so2046469yxe.4 for ; Mon, 10 May 2010 14:59:42 -0700 (PDT) Message-ID: <4BE881CB.3070303@codemonkey.ws> Date: Mon, 10 May 2010 16:59:39 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 0/2] Enable qemu block layer to not flush References: <1273528310-7051-1-git-send-email-agraf@suse.de> In-Reply-To: <1273528310-7051-1-git-send-email-agraf@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: kwolf@redhat.com, qemu-devel@nongnu.org, hch@lst.de On 05/10/2010 04:51 PM, Alexander Graf wrote: > Thanks to recent improvements, qemu flushes guest data to disk when the guest > tells us to do so. > > This is great if we care about data consistency on host disk failures. In cases > where we don't it just creates additional overhead for no net win. One such use > case is the building of appliances in SUSE Studio. We write the resulting images > out of the build VM, but compress it directly afterwards. So if possible we'd > love to keep it in RAM. > > This patchset introduces a new block parameter to -drive called "flush" which > allows a user to disable flushing in odd scenarios like the above. To show the > difference in performance this makes, I have put together a small test case. > Inside the initrd, I call the following piece of code on a 500MB preallocated > vmdk image: > This seems like it's asking for trouble to me. I'm not sure it's worth the minor performance gain. Regards, Anthony Liguori