lkml.org 
[lkml]   [2004]   [Nov]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 18 Nov 2004 11:43:41 -0800 (PST)
FromLinus Torvalds <>
SubjectRe: [PATCH] [Request for inclusion] Filesystem in Userspace

On Thu, 18 Nov 2004, Miklos Szeredi wrote:
> 
> OK, sorry.  I'd rephrase it then to say will the system allow _all_
> it's pages to be used for file data?

Yup, pretty much.

It's actually even _normal_ behaviour for many of the core users of shared 
files. People who really do databases get quite upset if you don't let 
them mmap as much memory as they want, because for them, they really tune 
their cache sizes for the size of memory, and they think the OS (and 
anything else, for that matter) just gets in their way. They want 99% of 
memory to be used for the shared mapping, and the remaining 1% for their 
code.

(That's a bit extreme, but you get the idea).

Historically, we've often tried to "partition" memory in various ways (ie 
"the buffer cache can only grow up to 40% of real memory" etc). It ends up 
being good for some things (watermarks etc), but almost ever time it ends 
up being bad as a hard _limit_. So yes, the kernel tends to let people 
do what they think they want to do.

"Give them rope",

			Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [from the cache]
©2003-2008