Submitted by helpmin on Wed, 06/22/2011 - 21:45
Just FYI
Run a quick performance test (no raid)
It looks like that the KVM disk performance is very slow with the Cloudmin settings?
Host: [root@vps ~]# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync 16384+0 records in 16384+0 records out 1073741824 bytes (1.1 GB) copied, 17.9167 seconds, 59.9 MB/s [root@vps ~]# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync 16384+0 records in 16384+0 records out 1073741824 bytes (1.1 GB) copied, 17.3755 seconds, 61.8 MB/s
VM:
[root@kvm1 ~]# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 120.139 seconds, 8.9 MB/s
[root@kvm1 ~]# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 137.378 seconds, 7.8 MB/s
Status:
Active
Comments
Submitted by JamieCameron on Wed, 06/22/2011 - 23:25 Comment #1
Did you enable VirtIO when creating the KVM instance? This improves disk performance .. you can enable in on the system creation page, in the "Advanced options" section.
Unfortunately Cloudmin doesn't have much control over KVM's disk performance ..
Submitted by JamieCameron on Wed, 06/22/2011 - 23:25 Comment #2
Submitted by helpmin on Wed, 06/22/2011 - 23:33 Comment #3
Yes, qemu runs with
if=virtio
.What about the following?
http://blog.bodhizazen.net/linux/improve-kvm-performance
Submitted by JamieCameron on Wed, 06/22/2011 - 23:37 Comment #4
One thing that I've found helps significantly is to use LVM to store your VM disk images, instead of regular files. However, this requires that your host system's disks have been setup to use LVM, and that a volume group exists with free space for Cloudmin disk images..
Submitted by helpmin on Wed, 06/22/2011 - 23:39 Comment #5
Actually I tried already, it did not make a difference.
Submitted by helpmin on Wed, 06/22/2011 - 23:40 Comment #6
Did you read the link I attached earlier?
Submitted by JamieCameron on Wed, 06/22/2011 - 23:45 Comment #7
I'd be interested to know if those suggestions from the link you provided help significantly...
Also, what kind of speed do you get on the host system?
Submitted by JamieCameron on Wed, 06/22/2011 - 23:47 Comment #8
I'd be interested to know if those suggestions from the link you provided help significantly...
Also, what kind of speed do you get on the host system?
Submitted by helpmin on Wed, 06/22/2011 - 23:49 Comment #9
I thought I pasted that already, but here you go.
I think those suggestions would increase performance by a factor of 6 (500% at least). But you are the expert, not sure whether the settings are recommended?
Submitted by andreychek on Wed, 06/22/2011 - 23:59 Comment #10
I think those suggestions would increase performance by a factor of 6 (500% at least). But you are the expert, not sure whether the settings are recommended?
We'd certainly encourage experimenting, and using the options that are best for you and your organization.
However, note that if an option isn't enabled by default -- there is often a reason for that, as there may be a catch involved in enabling them.
For example -- the page you linked has this big warning at the end of that article:
Warning: Please note that in the event the host node crashes, data loss can result from this option.
Many folks would consider that a deal breaker; there's a lot of things that can cause the host node to crash. If that causes all the VM's to experience data loss, that can be a pretty big deal :-)
Submitted by JamieCameron on Thu, 06/23/2011 - 00:13 Comment #11
Interesting - on my test system (KVM instance with virtio, using LVM for disk images), performance was comparable between the VM and the host system for a 1GB write with dd (around 20 MB/s)
Submitted by helpmin on Thu, 06/23/2011 - 00:18 Comment #12
@jamie, I will try this again (i haven't skipped lvm/raid etc, because of the frequent reinstalls - to save time). But I remember I tried quite a few times. 20MB for your host sounds very slow?
@eric, I am not sure why turning off cache would increase data loss? But I am not an expert (you are :-).
Submitted by helpmin on Thu, 06/23/2011 - 00:20 Comment #13
Submitted by Lucian on Thu, 06/23/2011 - 02:56 Comment #14
IMHO changing the default scheduler should not be up to Cloudmin; it's up to the respective system owners/admins to experiment with such settings.