Hi folks,
I am a super-novice FreeBSD user, in fact I started reading the handbook just yesterday, so please have some indulgence for me. I want to use FreeBSD 9 as a guest OS in our RHEL-based KVM cluster as one of the build slaves, however first I would like to test how it generally works on KVM and get more familiar with it.
I have a laptop running Ubuntu Maverick with qemu/kvm 0.12.5 and a SATA drive, 2xRAW 8G disk images and 4096M of RAM for the VM. I have installed a FreeBSD guest machine following the ZFS mirror root tutorial and the full installation took about 2 hours.
I found this worrying and tried simple IO tests with dd. iostat inside the VM shows 0.5 MB/s write performance (and so does zpool iostat -v). So I installed the virtio-kvm drivers inside the VM and replaces the devices, the did show up as vtbd0/1, but the performance didn't improve.
So for a comparison I installed latest VirtualBox 4 and converted the very same images to VDI, created an otherwise comparable VM and started it. The disks came up as ada0/1 and under the same conditions the write performance was at least 50 MB/s (!).
The Linux guests exhibit similar write performance under KVM, so there is definitively some problem with FreeBSD. I can't use VirtualBox in production, so I'd really like to know what's up with KVM...
Could anybody please share the experiences of running latest FreeBSD under KVM and otherwise help me to track down the performance problem?
Thanks!
I am a super-novice FreeBSD user, in fact I started reading the handbook just yesterday, so please have some indulgence for me. I want to use FreeBSD 9 as a guest OS in our RHEL-based KVM cluster as one of the build slaves, however first I would like to test how it generally works on KVM and get more familiar with it.
I have a laptop running Ubuntu Maverick with qemu/kvm 0.12.5 and a SATA drive, 2xRAW 8G disk images and 4096M of RAM for the VM. I have installed a FreeBSD guest machine following the ZFS mirror root tutorial and the full installation took about 2 hours.
I found this worrying and tried simple IO tests with dd. iostat inside the VM shows 0.5 MB/s write performance (and so does zpool iostat -v). So I installed the virtio-kvm drivers inside the VM and replaces the devices, the did show up as vtbd0/1, but the performance didn't improve.
So for a comparison I installed latest VirtualBox 4 and converted the very same images to VDI, created an otherwise comparable VM and started it. The disks came up as ada0/1 and under the same conditions the write performance was at least 50 MB/s (!).
The Linux guests exhibit similar write performance under KVM, so there is definitively some problem with FreeBSD. I can't use VirtualBox in production, so I'd really like to know what's up with KVM...
Could anybody please share the experiences of running latest FreeBSD under KVM and otherwise help me to track down the performance problem?
Thanks!