All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Alexander Atticus <alexander.atticus@gmail.com>
Cc: kvm@vger.kernel.org, Mark McLoughlin <markmc@redhat.com>
Subject: Re: Poor Write I/O Performance on KVM-79
Date: Sun, 04 Jan 2009 15:24:26 +0200	[thread overview]
Message-ID: <4960B88A.2010608@redhat.com> (raw)
In-Reply-To: <66c93b820901032203yc735b1g48d5bf19deffbfc@mail.gmail.com>

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.

> I don't know whether this is because of context switching or what.  Again,
> I'm wondering how I can improve this performance or if there is something
> I am doing wrong.  As a side note, I have also noticed some weirdness with
> qcow2 files; some windows installations freeze and some disk corruption
> running iozone on Linux guests.  All problems go away when I switch to raw
> image files though.
>
> I realize I take a hit by running file-based backends, and that the tests
> aren't altogether accurate because with 8GB of RAM, I'm not saturating the
> cache but they are still very disparate in numbers which concerns me.
>
> Finally, does anyone know if KVM is now fully supporting SCSI pass-through
> in KVM-79? Does this mean that I would vastly reduce context switching by
> using an LVM backend device for guests or am I misunderstanding the benefits
> of pass-through?
>   

scsi is much improved in kvm-82 though it still needs a lot more 
testing.  scsi pass-through is almost completely untested.

What is the kernel version in the guest? IIRC there were some serious 
limitations on the request size that were recently removed.


-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2009-01-04 13:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-04  6:03 Poor Write I/O Performance on KVM-79 Alexander Atticus
2009-01-04 13:24 ` Avi Kivity [this message]
2009-01-04 18:07   ` Rodrigo Campos
2009-01-04 18:48     ` Florent
2009-01-04 19:48     ` Avi Kivity
2009-01-04 20:12       ` Rodrigo Campos
2009-01-05 14:27 ` Thomas Mueller
2009-01-05 14:30   ` Thomas Mueller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4960B88A.2010608@redhat.com \
    --to=avi@redhat.com \
    --cc=alexander.atticus@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=markmc@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.