public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Bill Davidsen <davidsen@tmr.com>
Cc: Vishal Patil <vishpat@gmail.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: CSCAN I/O scheduler for 2.6.10 kernel
Date: Wed, 5 Apr 2006 11:20:06 +0200	[thread overview]
Message-ID: <20060405092006.GA4117@suse.de> (raw)
In-Reply-To: <4432D6D4.2020102@tmr.com>

On Tue, Apr 04 2006, Bill Davidsen wrote:
> Vishal Patil wrote:
> >Maintain two queues which will be sorted in ascending order using Red
> >Black Trees. When a disk request arrives and if the block number it
> >refers to is greater than the block number of the current request
> >being served add (merge) it to the first sorted queue or else add
> >(merge) it to the second sorted queue. Keep on servicing the requests
> >from the first request queue until it is empty after which switch over
> >to the second queue and now reverse the roles of the two queues.
> >Simple and Sweet. Many thanks for the awesome block I/O layer in the
> >2.6 kernel.
> >
> Why both queues sorting in ascending order? I would think that one 
> should be in descending order, which would reduce the seek distance 
> between the last i/o on one queue and the first on the next.

Then it wouldn't be CSCAN, now would it? :-)

-- 
Jens Axboe


      parent reply	other threads:[~2006-04-05  9:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4745278c0603301955w26fea42eid6bcab91c573eaa3@mail.gmail.com>
2006-03-31  3:58 ` CSCAN I/O scheduler for 2.6.10 kernel Vishal Patil
2006-03-31  6:28   ` Matt Heler
2006-03-31 14:16     ` Vishal Patil
2006-04-04 20:28   ` Bill Davidsen
2006-04-04 21:02     ` Vishal Patil
2006-04-05 11:48       ` Antonio Vargas
2006-04-05 13:46         ` Vishal Patil
2006-04-09 16:55           ` Vishal Patil
2006-04-11 11:34             ` Jan Engelhardt
2006-04-11 11:39               ` Jens Axboe
2006-04-11 11:42                 ` Jan Engelhardt
2006-04-11 11:43                   ` Jens Axboe
2006-04-12 23:53                   ` Vishal Patil
2006-04-13 14:04                     ` Jan Engelhardt
2006-04-05  9:20     ` Jens Axboe [this message]

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=20060405092006.GA4117@suse.de \
    --to=axboe@suse.de \
    --cc=davidsen@tmr.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vishpat@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