lkml.org 
[lkml]   [2003]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.4 vm, program load, page faulting, ...
On Mon, Mar 17, 2003 at 07:50:04PM +0300, Alex Tomas wrote:
> >>>>> wind (w) writes:
>
> w> On Mon, Mar 17, 2003 at 11:01:31AM -0500, Rik van Riel wrote:
> >> On Mon, 17 Mar 2003, William Lee Irwin III wrote:
> >> > On Sat, 15 Mar 2003, Paul Albrecht wrote:
> >> > >> ... Why does the kernel page fault on text pages, present in
> >> the page > >> cache, when a program starts? Couldn't the pte's for
> >> text present in the > >> page cache be resolved when they're
> >> mapped to memory?
> >> >
>
> w> You should ask Andrew about his patch to do exactly that: he
> w> forced all PROC_EXEC mmaps to be nonlinear-mapped and this forced
> w> all programs to suck entire binaries into memory... I recall he
> w> saw at least 25% improvement at launching gnome.
>
> they talked about pages _already present_ in pagecache.

I wonder if this could be done by walking and faulting
all pages at fs/binfmt_elf.c::elf_map just after do_mmap...
will try it just now :)
-
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 13:34    [W:0.054 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site