* page cache and buffer cache in 2.4.18 and up
@ 2003-09-11 15:30 Amir Hermelin
2003-09-11 17:39 ` Mike Fedyk
0 siblings, 1 reply; 2+ messages in thread
From: Amir Hermelin @ 2003-09-11 15:30 UTC (permalink / raw)
To: linux-kernel
Hi,
Since the change in kernel 2.4, read and writes go both through the page and
buffer cache. Is the cached data held twice (i.e. uses twice the memory)? I
noticed that the struct page holds a pointer to a buffer-head list; does
that list contain actual data, or just pointers into the cached page data?
Thanks,
Amir.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: page cache and buffer cache in 2.4.18 and up
2003-09-11 15:30 page cache and buffer cache in 2.4.18 and up Amir Hermelin
@ 2003-09-11 17:39 ` Mike Fedyk
0 siblings, 0 replies; 2+ messages in thread
From: Mike Fedyk @ 2003-09-11 17:39 UTC (permalink / raw)
To: Amir Hermelin; +Cc: linux-kernel, Rik van Riel, Andrea Arcangeli
On Thu, Sep 11, 2003 at 05:30:05PM +0200, Amir Hermelin wrote:
> Hi,
> Since the change in kernel 2.4, read and writes go both through the page and
> buffer cache.
That change was in 2.4.10 with the andrea VM merge. Though, I wouldn't use
it until about 2.4.14/16+ (don't use 2.4.15)
> Is the cached data held twice (i.e. uses twice the memory)? I
> noticed that the struct page holds a pointer to a buffer-head list; does
> that list contain actual data, or just pointers into the cached page data?
Others have asked before about this.
But let me inject some hearsay:
With the buffer & pagecache merge patch, there is much less duplication of
data, but still some. Also, pagecache doesn't reference into buffer cache
and the same data can be read twice (ie, if you're reading directly from
/dev/hda, and a filesytem on /dev/hdaX at the same time).
There is less duplication in 2.6, but I believe pagecache still doesn't
reference to buffer cache in there too.
Can someone say in more detail?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-11 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-11 15:30 page cache and buffer cache in 2.4.18 and up Amir Hermelin
2003-09-11 17:39 ` Mike Fedyk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).