public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Al Boldi <a1426z@gawab.com>
To: Arjan van de Ven <arjan@linux.intel.com>
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: CFQ will be the new default IO scheduler - why?
Date: Tue, 25 Jul 2006 21:27:09 +0300	[thread overview]
Message-ID: <200607252127.09402.a1426z@gawab.com> (raw)
In-Reply-To: <44C5A529.9060306@linux.intel.com>

Arjan van de Ven wrote:
> Al Boldi wrote:
> > Arjan van de Ven wrote:
> >>>> Should there be a default scheduler per filesystem?  As some
> >>>> filesystems may perform better/worse with one over another?
> >>>
> >>> It's currently perDevice, and should probably be extended to perMount.
> >>
> >> Hi,
> >
> > Hi!
> >
> >> per mount is going to be "not funny". I assume the situation you are
> >> aiming for is the "3 partitions on a disk, each wants its own
> >> elevator". The way the kernel currently works is that IO requests the
> >> filesystem does are first flattened into an IO for the entire device
> >> (eg the partition mapping is done) and THEN the IO scheduler gets
> >> involved to schedule the IO on a per disk basis.
> >
> > IC.  That probably explains why concurrent io-procs have such a hard
> > time getting through to the disk.  They probably just hang in the
> > flatting phase, waiting for something to take care of their requests.
>
> flattening is just an addition in the cpu, that's just really boring and
> shouldn't be visible anywhere performance wise

Try this on 2.6 and 2.4 respectively:
# cat /dev/hda > /dev/null
< switch to another vt >
< login >
< start timing >
< wait for shell >
< stop timing >
< wait for dcache to be gobbled by cat and repeat login as necessary >

On my system 2.4.31 (2sec) is at least twice as fast as 2.6.17 (4-10sec) 
depending on io-scheduler, with noop/deadline performing best, albeit a lot 
of noise (scrubbing the disk), and anti/cfq performing worst, albeit quieter 
(just hanging around).

Thanks!

--
Al


  reply	other threads:[~2006-07-25 18:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-24 15:57 CFQ will be the new default IO scheduler - why? Al Boldi
2006-07-24 16:33 ` Arjan van de Ven
2006-07-25  4:56   ` Al Boldi
2006-07-25  4:59     ` Arjan van de Ven
2006-07-25 18:27       ` Al Boldi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-07-23 19:08 Paa Paa
2006-07-24  8:29 ` Matthias Andree
2006-07-24 12:41   ` Justin Piszcz

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=200607252127.09402.a1426z@gawab.com \
    --to=a1426z@gawab.com \
    --cc=arjan@linux.intel.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --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