Re: something about disk fragmentation

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

 



On Fri, Jan 13 2006, Ram Gupta wrote:
> On 1/13/06, jeff shia <[email protected]> wrote:
> > Where Can I get the io schedulers?
> > Thank you!
> 
> See the documentation under the kernel source tree. The code is
> already there. You need only to select by passing correct kernel
> parameters.
> elevator=       [IOSCHED]
>                         Format: {"as" | "cfq" | "deadline" | "noop"}
>                         See Documentation/block/as-iosched.txt and
>                         Documentation/block/deadline-iosched.txt for details.

It's much more convenient to do it dynamically (and saves you a reboot).
Just do

# echo deadline > /sys/block/dev/queue/scheduler

to switch it at runtime, replace 'dev' with your hard drive name, eg
hda or sda etc.

BTW, that option needs updating, you are supposed to use "anticipatory"
for that scheduler (patch accepted :-).

-- 
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux