Pid: 8345, comm: rsync Not tainted 2.6.32.22intel #1

Michael Monnerie michael.monnerie at is.it-management.at
Tue Oct 26 18:23:35 CDT 2010


On Dienstag, 26. Oktober 2010 Emmanuel Florac wrote:
> echo "noop" > /sys/block/sdc/queue/scheduler
> echo 512 > /sys/block/sdc/queue/nr_requests
> blockdev --setra 4096 /dev/sdc

How about this small script in /etc/init.d/boot.local?

for i in /dev/xvd? /dev/sd? ; do
   if test "$i" == "${i%\?}" ; then
      echo i=$i
      blockdev --setra 1024 $i
      j=${i#/dev/}
      echo j=$j
      echo noop >/sys/block/$j/queue/scheduler
      echo 512 >/sys/block/$j/queue/nr_requests
   fi
done

This works for VMs within XenServer (/dev/xvda) and real servers 
(/dev/sda), and sets some values for all drives.

BTW: any recommendations for these tuning knobs on VM-ized servers? What 
should be set in the VMs and what on the host? Has someone got tested 
numbers? I'm currently testing things, but it's so damn hard to get any 
useful, reliable results.

-- 
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services
http://proteger.at [gesprochen: Prot-e-schee]
Tel: 0660 / 415 65 31

****** Radiointerview zum Thema Spam ******
http://www.it-podcast.at/archiv.html#podcast-100716

// Wir haben im Moment zwei Häuser zu verkaufen:
// http://zmi.at/langegg/
// http://zmi.at/haus2009/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20101027/515ba324/attachment.sig>


More information about the xfs mailing list