* question about PAE and buffercache
@ 2008-03-12 21:48 Adam Megacz
2008-03-17 2:27 ` Nick Piggin
0 siblings, 1 reply; 3+ messages in thread
From: Adam Megacz @ 2008-03-12 21:48 UTC (permalink / raw)
To: linux-kernel
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?
- a
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question about PAE and buffercache
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
0 siblings, 1 reply; 3+ messages in thread
From: Nick Piggin @ 2008-03-17 2:27 UTC (permalink / raw)
To: Adam Megacz; +Cc: linux-kernel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question about PAE and buffercache
2008-03-17 2:27 ` Nick Piggin
@ 2008-03-17 7:14 ` Andi Kleen
0 siblings, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2008-03-17 7:14 UTC (permalink / raw)
To: Nick Piggin; +Cc: Adam Megacz, linux-kernel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-17 7:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox