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: Thu, 26 Mar 2009 12:16:19 +0200 [thread overview]
Message-ID: <49CB55F3.5030208@redhat.com> (raw)
In-Reply-To: <ABDE4D4D-8E70-4643-9A1F-05609C9E6540@yoderhome.com>
Kurt Yoder wrote:
>
> I see. I looked up another test: using hdparm -t. It doesn't show the
> situation as quite so bad, but the guest is still a little over half
> the speed of the host:
>
> me@host:~$ sudo hdparm -t /dev/mapper/HW_RAID-ROOT
>
> /dev/mapper/HW_RAID-ROOT:
> Timing buffered disk reads: 282 MB in 3.00 seconds = 93.92 MB/sec
>
> me@guest:~# hdparm -t /dev/vda
>
> /dev/vda:
> Timing buffered disk reads: 156 MB in 3.03 seconds = 51.56 MB/sec
This is reasonable. IDE emulation is not expected to be as fast as the
host.
>> Something weird is happening with your system. If you extend the
>> test, what does 'top' show? On both guest and host.
>
> If I extend the test thusly on the guest:
>
> dd if=/dev/zero of=/bigfile count=10000000
>
> I see 100% CPU utilization on the guest, and 100% CPU utilization on
> one of the host cores.
Can you post 'vmstat 1' snippets on both guest and host while this is
running?
Oh, and try switching to the deadline I/O scheduler on the host instead
of the default cfq.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2009-03-26 10:16 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
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 [this message]
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=49CB55F3.5030208@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