From: Avi Kivity <avi@redhat.com>
To: Daniel Tschritter <daniel@tschritter.de>
Cc: kvm@vger.kernel.org
Subject: Re: Win2k8 guest with very poor disk performance on KVM host
Date: Tue, 11 Sep 2012 12:44:47 +0300 [thread overview]
Message-ID: <504F080F.3040707@redhat.com> (raw)
In-Reply-To: <L1D43E03DDC304d17A8EAFE5BF2C6E28D.1347302021.nixloshier@MHS>
On 09/10/2012 09:33 PM, Daniel Tschritter wrote:
> Hi everybody,
>
> I got a server with CentOS 6.3 and KVM as a host and a windows 2k8
> guest.
>
> The windows machine's disk performance is very poor.
> The windows guest uses VirtIO disk drivers, no cache and uses a LVM
> partition on a Raid1.
>
> atop shows 100% disk utilization as soon as the windows guest accesses
> the HDD, data transfers figures given are most times less than 1MB/s
> r/w, peaks are around 3MB/s r/w.
>
> I've run a few tests to see what's going on:
>
> Creating a 10GB test file on CentOS (guests switched off):
> time dd if=/dev/random of=testfile bs=1 count=0 seek=10G
> 0+0 records in
> 0+0 records out
> 0 bytes (0 B) copied, 5.777e-06 s, 0.0 kB/s
> real 0m0.001s
> user 0m0.000s
> sys 0m0.000s
>
> Create copy of test file created above:
> time cp testfile testfile2
> real 0m3.136s
> user 0m0.440s
> sys 0m2.693s
> That looks ok to me. According to atop data transfer rates are between
> 130 and 180MB/s.
>
> Create copy of test file above while Windows guest boots up:
> time cp testfile testfile2
> real 0m3.367s
> user 0m0.515s
> sys 0m2.826s
> not much different...
>
> Creating copy of test file above within the Win2k8R2 guest:
> Current Time: 20:12:32,41
> copy testfile testfile2
> 1 file(s) copied
> Current Time: 20:22:08,64
> 576,23s
> That takes about 170 time longer than the copy unter CentOS!
>
> I've run the same test on a CentOS6.3 guest with the following results:
> time cp testfile testfile2
> real 0m3.950s
> user 0m0.470s
> sys 0m3.383s
> that's almost as quick as the host...
>
> I've run these tests a few times, always giving about the same result.
>
> Why is the disk performance in the Win guest that poor?
>
> What can be done to improve things?
Your tests are invalid. On Linux the files you create are sparse, on
Windows they are not.
--
error compiling committee.c: too many arguments to function
prev parent reply other threads:[~2012-09-11 9:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-10 18:33 Win2k8 guest with very poor disk performance on KVM host Daniel Tschritter
2012-09-11 9:44 ` Avi Kivity [this message]
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=504F080F.3040707@redhat.com \
--to=avi@redhat.com \
--cc=daniel@tschritter.de \
--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 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.