From: Avi Kivity <avi@redhat.com>
To: Kurt Yoder <ktykvm@yoderhome.com>
Cc: kvm@vger.kernel.org
Subject: Re: IO on guest is 20 times slower than host
Date: Wed, 25 Mar 2009 18:13:25 +0200 [thread overview]
Message-ID: <49CA5825.7030201@redhat.com> (raw)
In-Reply-To: <CDB9CE6A-A749-4C31-A073-A01E7ABC8FCB@yoderhome.com>
Kurt Yoder wrote:
> Hello list,
>
> I'm puzzled as to why my KVM guest has IO that is 20 times slower than
> the KVM host:
>
> me@guest:~$ dd if=/dev/zero of=/tmp/bigfile count=100000
> 100000+0 records in
> 100000+0 records out
> 51200000 bytes (51 MB) copied, 8.36612 s, 6.1 MB/s
> me@guest:~$ df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/vda1 9.2G 587M 8.2G 7% /
> tmpfs 123M 0 123M 0% /lib/init/rw
> varrun 123M 28K 123M 1% /var/run
> varlock 123M 0 123M 0% /var/lock
> udev 123M 2.6M 120M 3% /dev
> tmpfs 123M 0 123M 0% /dev/shm
>
>
>
> me@host:~$ dd if=/dev/zero of=/tmp/bigfile count=100000
> 100000+0 records in
> 100000+0 records out
> 51200000 bytes (51 MB) copied, 0.47188 s, 109 MB/s
>
>
>
> The VM is started via libvirt and is the only VM running on an
> otherwise-unused system:
>
> root 19915 1 0 Mar24 ? 00:00:00 /usr/sbin/libvirtd -d
> nobody 19937 19915 0 Mar24 ? 00:00:00 dnsmasq
> --keep-in-foreground --strict-order --bind-interfaces --pid-file
> --conf-file --listen-address 192.168.122.1 --except-interface lo
> --dhcp-leasefile=/var/lib/libvirt/dhcp-default.leases --dhcp-range
> 192.168.122.2,192.168.122.254
> root 24354 19915 2 09:52 ? 00:02:33 /usr/bin/kvm -S -M
> pc -m 256 -smp 1 -name guest -monitor pty -boot c -drive
> file=/dev/HW_RAID/Guest,if=virtio,index=0,boot=on -net
> nic,macaddr=52:54:00:ba:e6:db,vlan=0,model=virtio -net
> tap,fd=11,script=,vlan=0,ifname=vnet1 -serial none -parallel none -usb
> -vnc 127.0.0.1:1
>
>
>
> Can someone suggest where to start looking? Thanks,
I get 141 MB/s on the same test (it only copies to memory anyway). Is
your VM under memory pressure?
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2009-03-25 16:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-25 15:23 IO on guest is 20 times slower than host Kurt Yoder
2009-03-25 16:13 ` Avi Kivity [this message]
2009-03-25 16:28 ` Kurt Yoder
2009-03-25 16:35 ` Avi Kivity
2009-03-25 16:51 ` Kurt Yoder
2009-03-25 16:54 ` Avi Kivity
2009-03-25 17:11 ` Kurt Yoder
2009-03-25 17:55 ` Avi Kivity
2009-03-25 18:51 ` Kurt Yoder
2009-03-26 10:16 ` Avi Kivity
2009-03-27 13:53 ` Kurt Yoder
2009-03-27 14:03 ` Kurt Yoder
2009-03-27 14:10 ` Kurt Yoder
2009-03-29 14:29 ` Avi Kivity
2009-03-29 19:10 ` Avi Kivity
2009-03-31 9:59 ` Joerg Roedel
2009-03-31 10:02 ` Avi Kivity
2009-04-04 11:47 ` Avi Kivity
2009-03-30 19:39 ` Kurt Yoder
2009-03-31 15:15 ` Kurt Yoder
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=49CA5825.7030201@redhat.com \
--to=avi@redhat.com \
--cc=ktykvm@yoderhome.com \
--cc=kvm@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox