Friday, February 27, 2009

IO scheduler on Xen

Running Xen book:
http://books.google.com/books?id=XS-Jj7s2nhYC&pg=PA467&lpg=PA467&dq=CFQ+Xen&source=bl&ots=UUJJrX36AZ&sig=c3iyq1rNYh5WsXdz4pyKVMxE5pU&hl=en&ei=SxqoSZ2DEY-ctwfI7Pj7Dw&sa=X&oi=book_result&resnum=8&ct=result
Xen devel:
http://www.mailinglistarchive.com/xen-devel@lists.xensource.com/msg12022.html
http://lists.xensource.com/archives/html/xen-devel/2005-11/msg00371.html

Change the scheduler:

Q: I am experiencing a heavy slowdown of the entire dom0 and all other domUs if one domU gets under heavy load.Is there any way to tighten this domU by adjusting something like scheduling?
A: You can use elevator=cfq as the command line option for both the dom0 and domU kernels in grub.conf and /etc/xen domU config files respectively. This will force the use of cfq as the default scheduler. By default anticipatory is the scheduler in dom0 and noop in domU. Alternatively:echo "cfq" > /sys/block/sda/queue/scheduler

No comments: