Bjoern Olausson

KVM host settings PDF Print E-mail
  
Sunday, 06 December 2009 22:14
Some things i came across when I was setting up a new Linux KVM host:

  • Which scheduler on the host ist the one to go for?
I was playing around with the available schedulers but thankfully someone else did that before.
See Bugreport  #505695 on the RedHat Bugzilla.
So apparently the best suited scheduler for a KVM host is the "deadline" scheduler.

 

  • Which scheduler on the VM ist the on to go for?
In the "Redhat Oracle 10G best practices document" (PDF) they suggest the "noop" scheduler.
It states, that with the "noop" scheduler, the host is able to optimize the I/O request, which is what we want.

 

Further, the RedHat Bugreport #505695 suggest  to "put virtio-blk devices in rotational mode".
At least I couldn't find a kernel parameter to enable this at boot time (if someone knows, please let me know),
so this has to be done on every VM by hand (or add the following to a start script like /etc/conf.d/local.start):

# for device in /sys/block/vd*/queue/rotational ; do echo "1" > ${device} ; done

The VMs should be started without a "drive cache". For "qemu-kvm" start the VMs with

# -drive cache=off

And don't forget to enable "KSM" for page merging in Kernel 2.6.32 and later. Why? See here.
Last Updated ( Tuesday, 08 December 2009 15:23 )
 

Add comment


Security code
Refresh