From: "Rodrigo Campos" Subject: Re: Poor Write I/O Performance on KVM-79 Date: Sun, 4 Jan 2009 16:07:51 -0200 Message-ID: <33d560f70901041007u5d0231dp55b1ef525f2d3925@mail.gmail.com> References: <66c93b820901032203yc735b1g48d5bf19deffbfc@mail.gmail.com> <4960B88A.2010608@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Alexander Atticus" , kvm@vger.kernel.org, "Mark McLoughlin" To: "Avi Kivity" Return-path: Received: from qw-out-2122.google.com ([74.125.92.25]:52899 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751369AbZADSHy (ORCPT ); Sun, 4 Jan 2009 13:07:54 -0500 Received: by qw-out-2122.google.com with SMTP id 3so6096246qwe.37 for ; Sun, 04 Jan 2009 10:07:51 -0800 (PST) In-Reply-To: <4960B88A.2010608@redhat.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Jan 4, 2009 at 11:24 AM, Avi Kivity wrote: > Alexander Atticus wrote: >> >> Hello! >> >> I have been experimenting with KVM and have been experiencing poor write >> I/O >> performance. I'm not sure whether I'm doing something wrong or if this is >> just the current state of things. >> >> While writing to the local array on the node running the guests I get >> about >> 200MB/s from dd (bs=1M count=1000) or about 90MB/s write performance from >> iozone (sequencial) when I write to a 2G file with a 16M record length. >> The >> node is an 8 disk system using 3ware in a RAID50 configuration. It has >> 8GB >> of RAM. >> >> The guests get much slower disk access. The guests are using file based >> backends (tried both qcow2 and raw) with virtio support. With no other >> activity on the machine, I get about 6 to 7MB/s write performance from >> iozone with the same test. Guests are running Debian lenny/sid with >> 2.6.26-1-686. >> > > qcow2 will surely lead to miserable performance. raw files are better. > best is to use lvm. > What do you mean with best is to use lvm ? You just say to use raw images on an lvm partition because you can easily resize it ? Or somehow images only use the used space of the raw file when used with lvm ? Or there's some trick to make it ? Thanks a lot, Rodrigo