I am testing using iozone.
Here is a recommendation from serverfault.com/…o-performance
The optimal configuration is (usually) as follows:
for f in /sys/block/vd*/queue/scheduler; do cat $f; done
for f in /sys/block/sd*/queue/scheduler; do cat $f; done
for f in /sys/block/vd*/queue/scheduler; do echo "noop" > $f; done
for f in /sys/block/sd*/queue/scheduler; do echo "deadline" > $f; done
This thread: KVM causes high CPU loaded when cache=‘none’ suggests:
OK, with additional optionio=‘native’
in disk section and IO schedulercfq
on host system, I’ll get the best results for my system. IO rate is nearly the same for all values of optionio
in guest XML and for IO scheduler on host and guest, onlycache=‘unsafe’
gives significantly more performance. But only withio=‘native’
,noop
scheduler in guest andcfq
scheduler on host I’ll get lowest CPU load.