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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs

[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux