public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Linda Walsh <lkml@tlinx.org>
Cc: Linux-Kernel <linux-kernel@vger.kernel.org>, Jens Axboe <axboe@suse.de>
Subject: Re: Block I/O Schedulers: Can they be made selectable/device? @runtime?
Date: Wed, 29 Mar 2006 13:10:18 +0900	[thread overview]
Message-ID: <442A08AA.80305@gmail.com> (raw)
In-Reply-To: <4426377C.7000605@tlinx.org>

Linda Walsh wrote:
> Is it still the case that block I/O schedulers (AS, CFQ, etc.)
> are only selectable at boot time?
> 
> How difficult would it be to allow multiple, concurrent I/O
> schedulers running on different block devices?
> 
> How close is the kernel to "being there"?  I.e. if someone has a
> "regular" hard disk and a high-end solid state disk, can
> Linux allow whichever algorithm is best for the hardware?
> (or applications if they are run on separate block devices)?
> 

Hello, Linda, Jens.

Actually, I've been thinking about related stuff for sometime. e.g. It 
doesn't make much sense to use any scheduler other than noop for SSDs 
and it also doesn't make much sense to plug requests for milliseconds to 
such devices. So, what I'm currently thinking is...

* Give LLDD a chance to say that it doesn't need fancy scheduling.

* Automagically tune plugging time. We can maintain running average of 
request turn-around time and use fraction of it to plug the device. This 
should be give good enough merging behavior while not adding excessive 
delay to seek time.

* Don't leave device devices with queue depth > 1 idle. For queued 
devices, we can push the first request fast such that the head moves to 
proximity of what would probably follow. So, don't plug the first 
request, plug from the second.

Any gotchas I've missed?

Thanks.

-- 
tejun

  parent reply	other threads:[~2006-03-29  4:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-26  6:41 Block I/O Schedulers: Can they be made selectable/device? @runtime? Linda Walsh
2006-03-26  7:06 ` Valdis.Kletnieks
2006-03-27  3:20   ` Linda Walsh
2006-03-27  6:19     ` Randy.Dunlap
2006-03-27  8:40       ` [PATCH] 2.6.16 Block I/O Schedulers - document runtime selection Valdis.Kletnieks
2006-03-29  4:10 ` Tejun Heo [this message]
2006-03-29  7:21   ` Block I/O Schedulers: Can they be made selectable/device? @runtime? 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=442A08AA.80305@gmail.com \
    --to=htejun@gmail.com \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@tlinx.org \
    /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