public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Ram Gupta <ram.gupta5@gmail.com>
Cc: jeff shia <tshxiayu@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: something about disk fragmentation
Date: Fri, 13 Jan 2006 20:24:52 +0100	[thread overview]
Message-ID: <20060113192452.GY3945@suse.de> (raw)
In-Reply-To: <728201270601130814k37c31f7bxd04a1fe44213b430@mail.gmail.com>

On Fri, Jan 13 2006, Ram Gupta wrote:
> On 1/13/06, jeff shia <tshxiayu@gmail.com> 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


  reply	other threads:[~2006-01-13 19:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-11 13:01 something about disk fragmentation jeff shia
2006-01-11 14:33 ` Ram Gupta
     [not found]   ` <7cd5d4b40601130158l274a3b19t13f2a58a28cc3819@mail.gmail.com>
2006-01-13 16:14     ` Ram Gupta
2006-01-13 19:24       ` Jens Axboe [this message]
2006-01-14  7:17         ` Randy.Dunlap
2006-01-16  8:51           ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060113192452.GY3945@suse.de \
    --to=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ram.gupta5@gmail.com \
    --cc=tshxiayu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox