Kernel KVM virtualization development
 help / color / mirror / Atom feed
* Disk Benchmark results, kvm-69
@ 2008-05-26 10:56 Henrik Holst
  2008-07-21 21:31 ` Henrik Holst
  0 siblings, 1 reply; 2+ messages in thread
From: Henrik Holst @ 2008-05-26 10:56 UTC (permalink / raw)
  To: kvm

We have performed some quick benchmarks against kvm-69 on an Intel Q6600
with 8GB RAM and equipped with 4 SATA drives (Maxtor DiamondMax 10
6V300F0).

During these tests we noticed a problem with the virtio block device in
where it completely locks the drive after a while when running on a smp
guest. The other disks are ok and the guest is working as it should but
all access to /dev/vda1 never times out.

Also with if=scsi the host would output (during the bonnie++ tests):
	lsi_scsi: error: PRDERED queue not implemented
	lsi_scsi: error: Unimplemented message 0x0c

Host: 2.6.24-1-amd64 debian testing
Guest: 2.6.24-16-server ubuntu 8.04

hdparm -tT /dev/sdb on host:
	Timing cached reads: 3845.63 MB/sec
	Timing buffered disk reads: 67.98 MB/sec

Qemu invocation (for virtio):
	qemu-system-x86_64
	-m 3072 -smp 4 \
	-drive file=ubuntu.img,if=ide,boot=on,media=disk \
	-drive file=/dev/sdb,if=virtio,boot=off,cache=off,media=disk

Bonnie++ invocation:
	bonnie++ -r 512 -s 2048 -u root -d /mnt/sdb1/ :

Results:
---------------------------------------------------------------------------------
Version 1.03b       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
host             2G 60814  81 83149  15 64419   8 85187  99 2394159 100 +++++ +++
guest-ide        2G 65048  89 72621  13 64792   9 84224  99 2311183  99 +++++ +++
guest-scsi       2G 67387  90 73757  13 63783   9 84645 100 2297687  99 +++++ +++
guest-virtio     2G 41564  57 73274  28 62725  27 71656  85 2441544  98 +++++ +++ (This is with -smp 1)

There seams to be no major performance difference between ide and scsi while virtio is not to be recommended at this moment.
All in all the IO looks very close to native, at least with this limited tests.

/Henrik Holst



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Disk Benchmark results, kvm-69
  2008-05-26 10:56 Disk Benchmark results, kvm-69 Henrik Holst
@ 2008-07-21 21:31 ` Henrik Holst
  0 siblings, 0 replies; 2+ messages in thread
From: Henrik Holst @ 2008-07-21 21:31 UTC (permalink / raw)
  To: kvm

2008/5/26 Henrik Holst <henrik@witsbits.com>:
>
> We have performed some quick benchmarks against kvm-69 on an Intel Q6600
> with 8GB RAM and equipped with 4 SATA drives (Maxtor DiamondMax 10
> 6V300F0).
>
> During these tests we noticed a problem with the virtio block device in
> where it completely locks the drive after a while when running on a smp
> guest. The other disks are ok and the guest is working as it should but
> all access to /dev/vda1 never times out.
>
> Also with if=scsi the host would output (during the bonnie++ tests):
>        lsi_scsi: error: PRDERED queue not implemented
>        lsi_scsi: error: Unimplemented message 0x0c
>
> Host: 2.6.24-1-amd64 debian testing
> Guest: 2.6.24-16-server ubuntu 8.04
>
> hdparm -tT /dev/sdb on host:
>        Timing cached reads: 3845.63 MB/sec
>        Timing buffered disk reads: 67.98 MB/sec
>
> Qemu invocation (for virtio):
>        qemu-system-x86_64
>        -m 3072 -smp 4 \
>        -drive file=ubuntu.img,if=ide,boot=on,media=disk \
>        -drive file=/dev/sdb,if=virtio,boot=off,cache=off,media=disk
>
> Bonnie++ invocation:
>        bonnie++ -r 512 -s 2048 -u root -d /mnt/sdb1/ :
>
> Results:
> ---------------------------------------------------------------------------------
> Version 1.03b       ------Sequential Output------ --Sequential Input- --Random-
>                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
> Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
> host             2G 60814  81 83149  15 64419   8 85187  99 2394159 100 +++++ +++
> guest-ide        2G 65048  89 72621  13 64792   9 84224  99 2311183  99 +++++ +++
> guest-scsi       2G 67387  90 73757  13 63783   9 84645 100 2297687  99 +++++ +++
> guest-virtio     2G 41564  57 73274  28 62725  27 71656  85 2441544  98 +++++ +++ (This is with -smp 1)
>
> There seams to be no major performance difference between ide and scsi while virtio is not to be recommended at this moment.
> All in all the IO looks very close to native, at least with this limited tests.
>
> /Henrik Holst
>
>
I've just re-run this on kvm-71 and virtio seams to be corrected on
smp systems now. We could find no lockups using virtio and 4 smp
cores.

Version 1.03b       ------Sequential Output------ --Sequential Input- --Random-
                   -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine     Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
host             2G 60814  81 83149  15 64419   8 85187  99 2394159
100 +++++ +++
guest-ide      2G 65048  89 72621  13 64792   9 84224  99 2311183  99 +++++ +++
guest-virtio    2G 44011  68 92460  32 34272   9 38224  47 2277747  99 +++++ +++

Virtio block devices seams thus to be slower on putc and reads overall
while faster on block writes. For some reason we couldn't manage to
boot a scsi guest on the smp host, I'll get back with more info on
this as soon as I have gathered some.

/Henrik Holst

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-21 21:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-26 10:56 Disk Benchmark results, kvm-69 Henrik Holst
2008-07-21 21:31 ` Henrik Holst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox