Skip to content

Virtio Block Device Driver Benchmarks

arroway edited this page Jul 7, 2011 · 45 revisions

Virtio Block Device Driver - Benchmarks

Virtualization environnement:

host: QEMU emulator version 0.14.0 (qemu-kvm-devel), on Proxmox VE 1.8
guest: DragonFly BSD i386 v2.10.1, RAM 1024

Filesystem: Hammer
emulated IDE hard disk - 20GB
virtio hard disk -10GB
(format of the image : qcow2)

To mount the virtio disk:

# newfs_hammer -f -L disk-virtio /dev/vdb0s0
# mount_hammer /dev/vdb0s0 my-mount-point  


# pciconf -l -v
[...]
virtiobus0@pci0:0:5:0:    class=0x010000 card=0x00021af4 chip=0x10011af4 rev=0x00 hdr=0x00
    vendor     = 'Red Hat, Inc'
    device     = 'Virtio block device'
    class      = mass storage
    subclass   = SCSI

The benchmarks are executed with bonnie++ version 1.03e (man page: http://linux.die.net/man/8/bonnie++)

Writing with putc()
Writing intelligently
Rewriting
Reading with getc()
Reading intelligently
start 'em
Create files in sequential order
Stat files in sequential order
Delete files in sequential order
Create files in random order
Stat files in random order
Delete files in random order

See bonnie++ README for a more detailed description of the tests: http://www.coker.com.au/bonnie++/

Emulated hard disk: 
# /usr/pkg/sbin/bonnie++ -u root -d /root/ -r 1024

Virtio disk:
# /usr/pkg/sbin/bonnie++ -u root -d /root/mount-point/ -r 1024

We run the tests as root.
RAM is specified to be 1024.
By default, the size of the file used during the tests is 2G.

Clone this wiki locally