From: Andi Kleen <andi@firstfloor.org>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Adam Megacz <adam@megacz.com>, linux-kernel@vger.kernel.org
Subject: Re: question about PAE and buffercache
Date: 17 Mar 2008 08:14:30 +0100 [thread overview]
Message-ID: <87lk4hizzd.fsf@basil.nowhere.org> (raw)
In-Reply-To: <200803171327.45159.nickpiggin@yahoo.com.au>
Nick Piggin <nickpiggin@yahoo.com.au> writes:
> On Thursday 13 March 2008 08:48, Adam Megacz wrote:
> > Sorry to ask here, but I looked around for quite a while on the web.
> >
> > Is the size of the buffercache in any way constrained by the amount of
> > virtual memory space allocated to the kernel (when using a PAE kernel)?
> >
> > For example with a 1G/3G split and 8G of physical memory, if userspace
> > processes aren't interested in more than 6G of that memory, would the
> > kernel fully utilize all of the remaining 2G for buffercache?
>
> No. It is indeed constrained by the amount of virtual memory space
> the kernel has. So it could use in practice probably only around
> 700-800MB for buffercache.
I suspect Adam has a terminology problem and he likely meant "unmapped
page cache" instead of buffer cache.
In Linux "buffer cache" only refers to file system
metadata (like file system bitmaps etc.), but he likely meant
all file data which is in the page cache. The page cache is not
limited by the kernel virtual memory split. In fact buffer
cache is a special case of the page cache too
iirc even large parts of the buffer cache can be highmem
depending on the file system.
-Andi
prev parent reply other threads:[~2008-03-17 7:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 21:48 question about PAE and buffercache Adam Megacz
2008-03-17 2:27 ` Nick Piggin
2008-03-17 7:14 ` Andi Kleen [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=87lk4hizzd.fsf@basil.nowhere.org \
--to=andi@firstfloor.org \
--cc=adam@megacz.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nickpiggin@yahoo.com.au \
/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