public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <piggin@cyberone.com.au>
To: Szonyi Calin <sony@etc.utt.ro>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Q: Anticipatory scheduler docs
Date: Thu, 08 May 2003 23:53:34 +1000	[thread overview]
Message-ID: <3EBA615E.9040003@cyberone.com.au> (raw)
In-Reply-To: <52559.194.138.39.56.1052389206.squirrel@webmail.etc.utt.ro>

Szonyi Calin wrote:

>Hello everyone
>
>Where can I find documentation about the anticipatory scheduler
>and about tuning it ?
>
Ahh heh... when I write them :P
Seriously, its been under quite a bit of work, I've tried to
keep some docs up to date but its not worth it at the moment.
Its getting more stable now, but I have some auto tuning
stuff on the cards which changes things again...

Anyway in brief there are 5 parameters under /sys/block/*/iosched/
all are set in milliseconds.
* read_expire
Controls how long until a request becomes "expired". It also controls
the interval between which expired requests are served, so set to 50,
a request might take anywhere < 100ms to be serviced _if_ it is the
next on the expired list. Obviously it can't make the disk go faster.
Result is basically the timeslice a reader gets in the presence of
other IO. 100*((seek time / read_expire) + 1) is very roughly the
% streaming read efficiency your disk should get in the presence of
multiple readers.
* read_batch_expire
Controls how much time a batch of reads is given before pending writes
are served. Higher value is more efficient. Shouldn't really be below
read_expire.
* write_ versions of the above
* antic_expire
Controls the maximum amount of time we can anticipate a good read
before giving up. Many other factors may cause anticipation to be
stopped early, or some processes will not be "anticipated" at all.
Should be a bit higher for big seek time devices though not a
linear correspondance - most processes have only a few ms thinktime.

Hows that? Let me know of any benchmark results you might happen upon.


      reply	other threads:[~2003-05-08 13:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-08 10:20 Q: Anticipatory scheduler docs Szonyi Calin
2003-05-08 13:53 ` Nick Piggin [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=3EBA615E.9040003@cyberone.com.au \
    --to=piggin@cyberone.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sony@etc.utt.ro \
    /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