public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Nate Diller <nate.diller@gmail.com>
Cc: Andrew Morton <akpm@osdl.org>, Jens Axboe <axboe@suse.de>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH -mm] [2/2] Add the Elevator I/O scheduler
Date: Fri, 4 Aug 2006 01:55:56 +0200	[thread overview]
Message-ID: <20060803235556.GL25692@stusta.de> (raw)
In-Reply-To: <5c49b0ed0608031603v5ff6208bo63847513bee1b038@mail.gmail.com>

On Thu, Aug 03, 2006 at 04:03:19PM -0700, Nate Diller wrote:
>...
> Tested and benchmarked extensively on several platforms with several
> disk controllers and multiple brands of disk.  Subsequently ported
> forward from 2.6.14, compile and boot tested on 2.6.18-rc1-mm2.
>...
> --- linux-2.6.18-rc1-mm2/block/Kconfig.iosched	2006-07-18
> 14:52:29.000000000 -0700
> +++ linux-dput/block/Kconfig.iosched	2006-08-02 17:40:01.000000000 -0700
>...
> +config IOSCHED_EL_SSTF
> +	bool "Alternate Heuristic: Shortest Seek Time First" if 
> IOSCHED_ELEVATOR
> +	default n
> +	---help---
> +	  Elevator normally uses the C-SCAN one-way elevator algorithm,
> +	  which is useful in most situations to avoid queue congestion and
> +	  request starvation.  In some cases, SSTF might be higher
> +	  performance, particularly with certain localized workloads.
> +
> +	  If you don't know that you want this, you don't.

If you want to make your scheduler tunable, this should be a run-time 
option.

>...
> choice
> 	prompt "Default I/O scheduler"
> -	default DEFAULT_CFQ
> +	default DEFAULT_AS
> 	help
> 	  Select the I/O scheduler which will be used by default for all
> 	  block devices.
> 
> 	config DEFAULT_AS
> -		bool "Anticipatory" if IOSCHED_AS=y
> +		bool "Anticipatory" if IOSCHED_AS
> 
> 	config DEFAULT_DEADLINE
> -		bool "Deadline" if IOSCHED_DEADLINE=y
> +		bool "Deadline" if IOSCHED_DEADLINE
> 
> 	config DEFAULT_CFQ
> -		bool "CFQ" if IOSCHED_CFQ=y
> +		bool "CFQ" if IOSCHED_CFQ
> +
> +	config DEFAULT_ELEVATOR
> +		bool "Elevator" if IOSCHED_ELEVATOR
> 
> 	config DEFAULT_NOOP
> 		bool "No-op"
>...

It seems something went wrong when you forward ported your patch.
 
> --- linux-2.6.18-rc1-mm2/block/ll_rw_blk.c	2006-07-18 
> 15:00:44.000000000 -0700
> +++ linux-dput/block/ll_rw_blk.c	2006-08-01 13:56:34.000000000 -0700
>...
> @@ -2951,7 +2953,7 @@ get_rq:
> 		blk_plug_device(q);
> 	add_request(q, req);
> out:
> -	if (sync)
> +/*	if (sync)*/
> 		__generic_unplug_device(q);
> 
> 	spin_unlock_irq(q->queue_lock);
>...

Why?


cu
Adrian

-- 

    Gentoo kernels are 42 times more popular than SUSE kernels among
    KLive users  (a service by SUSE contractor Andrea Arcangeli that
    gathers data about kernels from many users worldwide).

       There are three kinds of lies: Lies, Damn Lies, and Statistics.
                                                    Benjamin Disraeli


  parent reply	other threads:[~2006-08-03 23:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-03 23:03 [PATCH -mm] [2/2] Add the Elevator I/O scheduler Nate Diller
2006-08-03 23:53 ` Dave Jones
2006-08-04  0:06   ` Nate Diller
2006-08-04  1:28   ` Daniel Phillips
2006-08-07 20:07     ` Steven Rostedt
2006-08-04  1:31   ` Daniel Phillips
2006-08-03 23:55 ` Adrian Bunk [this message]
2006-08-04  0:08   ` Nate Diller
2006-08-04  5:30 ` 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=20060803235556.GL25692@stusta.de \
    --to=bunk@stusta.de \
    --cc=akpm@osdl.org \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nate.diller@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