lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87lk4hizzd.fsf@basil.nowhere.org>
Date:	17 Mar 2008 08:14:30 +0100
From:	Andi Kleen <andi@...stfloor.org>
To:	Nick Piggin <nickpiggin@...oo.com.au>
Cc:	Adam Megacz <adam@...acz.com>, linux-kernel@...r.kernel.org
Subject: Re: question about PAE and buffercache

Nick Piggin <nickpiggin@...oo.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
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ