From: Martin Dalecki <dalecki@evision-ventures.com>
To: Andreas Dilger <adilger@turbolabs.com>
Cc: Martin Dalecki <dalecki@evision.ag>,
Linus Torvalds <torvalds@transmeta.com>,
Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: PATCH 2.5.0 kill read_ahead array.
Date: Mon, 26 Nov 2001 17:53:11 +0100 [thread overview]
Message-ID: <3C027377.F0B61BD3@evision-ventures.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0111221046170.1479-100000@penguin.transmeta.com> <3C022CEF.BC4340A1@evision-ventures.com> <20011126093414.B730@lynx.no>
Andreas Dilger wrote:
>
> On Nov 26, 2001 12:52 +0100, Martin Dalecki wrote:
> > This is removing the "write only" read_ahead sparse array from all
> > the places where it's "used" by now.
> > This is just saving some memmory.
>
> Is this a case of the "read_ahead" array is redundant and read ahead is
> done at a different level (not using this array), or is it a case of
> read ahead not being done at all? If it is not being done at all, then
> removing the unused array is the wrong thing to do - we should fix
> read ahead, and start using the array.
No we shouldn't.
There are the following problems with the read_ahead array as it
currently
stands:
1. It isn't used at all at any level!
Even the AS390 people finally cleaned aparently theyr code up.
REALY REALY Please look at the the patch.
There is only one bogous place in hfs, where this array was used at all.
Literally all other places are just writing some values into it.
This is what I'm calling a "write only" variable.
2. It is bound to the major number, which is the wrong granularity,
since linux doesn't preserve the device type on this level and is
slicing up
the minor numbers. This is the most severe brain damage of it.
3. We have anyway a filesystem read ahead layer there.
4. We have a block device driver read ahead layer there too
(it's called blksize there...).
5. We have blk_dev_t and block_device structs, which are supposed
to replace the current static global array, since they are the
more logical place where such information should be placed. This
is unevitable if we are ever willing to provide support for real
kernel scalability in terms of numbers of attached devices...
Regard's.
next prev parent reply other threads:[~2001-11-26 17:03 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-22 6:44 Linux-2.4.15-pre9 Linus Torvalds
2001-11-22 7:47 ` Linux-2.4.15-pre9 Anuradha Ratnaweera
2001-11-22 18:52 ` Linux-2.4.15-pre9 Linus Torvalds
2001-11-22 19:34 ` Linux-2.4.15-pre9 Alexander Viro
2001-11-22 19:46 ` Linux-2.4.15-pre9 Tom Rini
2001-11-23 16:20 ` Linux-2.4.15-pre9 Michael H. Warfield
2001-11-26 11:52 ` PATCH 2.5.0 kill read_ahead array Martin Dalecki
2001-11-26 16:34 ` Andreas Dilger
2001-11-26 16:53 ` Martin Dalecki [this message]
2001-11-22 19:16 ` Linux-2.4.15-pre9 Tim Schmielau
2001-11-26 15:18 ` Linux-2.4.15-pre9 bill davidsen
2001-11-22 8:41 ` [PATCH] fix SCSI non-blocksize reads Erik Andersen
2001-11-22 17:09 ` Linus Torvalds
2001-11-22 17:20 ` Erik Andersen
2001-11-22 18:40 ` Linus Torvalds
2001-11-24 0:04 ` Erik Andersen
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=3C027377.F0B61BD3@evision-ventures.com \
--to=dalecki@evision-ventures.com \
--cc=adilger@turbolabs.com \
--cc=dalecki@evision.ag \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.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