From: Roger Larsson <roger.larsson@skelleftea.mail.telia.com>
To: Andrew Morton <akpm@zip.com.au>,
Roy Sigurd Karlsbakk <roy@karlsbakk.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: /proc/sys/vm/(max|min)-readahead effect????
Date: Wed, 5 Dec 2001 21:53:07 +0100 [thread overview]
Message-ID: <200112052055.fB5KtHe00692@mailf.telia.com> (raw)
In-Reply-To: <Pine.LNX.4.30.0112051713200.2297-100000@mustard.heime.net> <3C0E7FEE.2770EDF4@zip.com.au>
In-Reply-To: <3C0E7FEE.2770EDF4@zip.com.au>
On Wednesday 05 December 2001 21:13, Andrew Morton wrote:
> Roy Sigurd Karlsbakk wrote:
> > hi all
> >
> > I've just upgraded to 2.4.16 to get /proc/sys/vm/(max|min)-readahead
> > available. I've got this idea...
> >
> > If lots of files (some hundered) are read simultaously, I waste all the
> > i/o time in seeks. However, if I increase the readahead, it'll read more
> > data at a time, and end up with seeking a lot less.
> >
> > The harddrive I'm testing this with, is a cheap 20G IDE drive.
>
> /proc/sys/vm/*-readhead is a no-op for IDE. It doesn't do
> anything. You must use
>
> echo file_readahead:100 > /proc/ide/ide0/hda/settings
>
> to set the readhead to 100 pages (409600 bytes).
Make that kB!
(page sizes is an implementation detail that depends on architecture,
compilation options...)
(for Andrew:
it multiplies with 1024 then divides by PAGE_SIZE, result is in pages.
If you wanted to set no of pages then the scaling should be *1/1...
earlier it only multiplied with 1024...)
/RogerL
--
Roger Larsson
Skellefteå
Sweden
next prev parent reply other threads:[~2001-12-05 20:56 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-05 16:21 /proc/sys/vm/(max|min)-readahead effect???? Roy Sigurd Karlsbakk
2001-12-05 16:51 ` Marcelo Tosatti
2001-12-05 18:09 ` Roy Sigurd Karlsbakk
2001-12-05 16:58 ` Marcelo Tosatti
2001-12-05 18:20 ` Roy Sigurd Karlsbakk
2001-12-05 19:43 ` James Stevenson
2001-12-05 20:06 ` Roy Sigurd Karlsbakk
2001-12-05 20:53 ` James Stevenson
2001-12-06 11:45 ` Roy Sigurd Karlsbakk
2001-12-06 18:44 ` Bernd Eckenfels
2001-12-05 18:22 ` Rik van Riel
2001-12-05 18:27 ` Roy Sigurd Karlsbakk
2001-12-06 10:09 ` Martin Dalecki
2001-12-05 20:13 ` Andrew Morton
2001-12-05 20:53 ` Roger Larsson [this message]
2001-12-06 11:31 ` Roy Sigurd Karlsbakk
2001-12-06 18:46 ` Bernd Eckenfels
2001-12-07 11:25 ` Roy Sigurd Karlsbakk
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=200112052055.fB5KtHe00692@mailf.telia.com \
--to=roger.larsson@skelleftea.mail.telia.com \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=roy@karlsbakk.net \
/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