Re: Right way to set IO scheduler on CentOS

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



On Nov 5, 2009, at 8:59 PM, Amos Shapira <amos.shapira@xxxxxxxxx> wrote:

> Hello,
>
> I'd like to set the io scheduler on some of the disks on our Dom0
> (CentOS 5) to "deadline".
>
> The way I found to do this is with "echo deadline >
> /sys/block/sdb/queue/scheduler".
>
> What is the Right Way(TM) to set this automatically during boot?

There is no definite right way. I use /etc/rc.local for this with a  
little for loop like:

for dev in sdb sdc sdd; do
   echo deadline >/sys/block/${dev}/queue/scheduler
done

-Ross

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux