mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Vishal Patil" <vishpat@gmail.com>
To: "Bill Davidsen" <davidsen@tmr.com>
Cc: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: CSCAN I/O scheduler for 2.6.10 kernel
Date: Tue, 4 Apr 2006 17:02:41 -0400	[thread overview]
Message-ID: <4745278c0604041402n5c6329ebw71d7fdc5c3a9dd68@mail.gmail.com> (raw)
In-Reply-To: <4432D6D4.2020102@tmr.com>

In that case it would be a normal elevator algorithm and that has a
possiblity of starving the requests at one end of the disk.

- Vishal

On 4/4/06, Bill Davidsen <davidsen@tmr.com> 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.
>
> --
>     -bill davidsen (davidsen@tmr.com)
> "The secret to procrastination is to put things off until the
>   last possible moment - but no longer"  -me
>


--
Every passing minute is another chance to turn it all around.

  reply	other threads:[~2006-04-04 21:02 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 ` 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 [this message]
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

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=4745278c0604041402n5c6329ebw71d7fdc5c3a9dd68@mail.gmail.com \
    --to=vishpat@gmail.com \
    --cc=davidsen@tmr.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®