From: Mike Fedyk <mfedyk@matchmail.com>
To: Amir Hermelin <amir@montilio.com>
Cc: linux-kernel@vger.kernel.org,
Rik van Riel <riel@conectiva.com.br>,
Andrea Arcangeli <andrea@suse.de>
Subject: Re: page cache and buffer cache in 2.4.18 and up
Date: Thu, 11 Sep 2003 10:39:33 -0700 [thread overview]
Message-ID: <20030911173933.GD18399@matchmail.com> (raw)
In-Reply-To: <003301c37879$938fda00$0601a8c0@CARTMAN>
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?
prev parent reply other threads:[~2003-09-11 17:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 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=20030911173933.GD18399@matchmail.com \
--to=mfedyk@matchmail.com \
--cc=amir@montilio.com \
--cc=andrea@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=riel@conectiva.com.br \
/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