linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: PATCH: killing read_ahead[]
       [not found] ` <Pine.LNX.4.10.10010241245280.1704-100000@penguin.transmeta.com>
@ 2000-10-24 22:30   ` Ingo Oeser
  2000-10-25  0:16     ` Jeff V. Merkey
  0 siblings, 1 reply; 2+ messages in thread
From: Ingo Oeser @ 2000-10-24 22:30 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Jeff Garzik, linux-kernel, linux-mm

On Tue, Oct 24, 2000 at 12:46:36PM -0700, Linus Torvalds wrote:
> Actually, the _real_ answer is to make fs/block_dev.c use the page cache
> instead - and generic_file_read() does read-ahead that actually improves
> performance, unlike the silly contortions that the direct block-dev
> read-ahead tries to do.

If we had a paper about the page cache this would be easy.

In the beginning page cache was just previously mmaped pages,
that are clean and ready to be mapped again.

Today we have them either dirty or clean, mapped or not(?), with and
without buffers, in highmem(?) or lowmem and everybody and its
children is using it for everything.

We need a clear definition about (concurrent) states of page
cached pages, valid transitions (and locks/sema4s to take for
them), assumptions, guarantees etc.

The only thing I see guaranteed, that every big thing to be
cached should live there and is page aligned and page sized.

I'm trying hard to understand a concept in the page cache and to
get it's limits and guarantees, but still find it hard to get
them.

Time for specs, I would say ;-)

I could help to explain and formulate, if someone could only cut
the edges of how it works and what it will be.

Thanks & Regards

Ingo Oeser
-- 
Feel the power of the penguin - run linux@your.pc
<esc>:x
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: killing read_ahead[]
  2000-10-24 22:30   ` PATCH: killing read_ahead[] Ingo Oeser
@ 2000-10-25  0:16     ` Jeff V. Merkey
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff V. Merkey @ 2000-10-25  0:16 UTC (permalink / raw)
  To: Ingo Oeser; +Cc: Linus Torvalds, Jeff Garzik, linux-kernel, linux-mm

On Wed, Oct 25, 2000 at 12:30:49AM +0200, Ingo Oeser wrote:
> On Tue, Oct 24, 2000 at 12:46:36PM -0700, Linus Torvalds wrote:
> > Actually, the _real_ answer is to make fs/block_dev.c use the page cache
> > instead - and generic_file_read() does read-ahead that actually improves
> > performance, unlike the silly contortions that the direct block-dev
> > read-ahead tries to do.
> 
> If we had a paper about the page cache this would be easy.
> 
> In the beginning page cache was just previously mmaped pages,
> that are clean and ready to be mapped again.
> 
> Today we have them either dirty or clean, mapped or not(?), with and
> without buffers, in highmem(?) or lowmem and everybody and its
> children is using it for everything.
> 
> We need a clear definition about (concurrent) states of page
> cached pages, valid transitions (and locks/sema4s to take for
> them), assumptions, guarantees etc.
> 
> The only thing I see guaranteed, that every big thing to be
> cached should live there and is page aligned and page sized.
> 
> I'm trying hard to understand a concept in the page cache and to
> get it's limits and guarantees, but still find it hard to get
> them.
> 
> Time for specs, I would say ;-)
> 
> I could help to explain and formulate, if someone could only cut
> the edges of how it works and what it will be.
> 
> Thanks & Regards
> 
> Ingo Oeser
> -- 
> Feel the power of the penguin - run linux@your.pc
> <esc>:x
> -

I hope we are not doing something stupid here, like breaking the 
f*!%cking page cache again.  I've finaly got all the bugs out of 
NWFS on 2.4.0-test9, and have waded through the breakage of the 
past two testX releases of 2.4.   

Why do we need to disable read ahead on the page cache anyway?

:-)

Jeff



> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-10-25  0:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <39F5DAF5.1D3662BD@mandrakesoft.com>
     [not found] ` <Pine.LNX.4.10.10010241245280.1704-100000@penguin.transmeta.com>
2000-10-24 22:30   ` PATCH: killing read_ahead[] Ingo Oeser
2000-10-25  0:16     ` Jeff V. Merkey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox