[lkml]   [2003]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 2.4 vm, program load, page faulting, ... wrote:
> > This is all a bit dubious for several reasons. Most particularly, the
> > up-front instantiation of the pages in pagetables makes unneeded pages harder
> > to reclaim. It would be really neat if someone could try putting the
> > madvise(MADV_WILLNEED) into glibc and test that. Maybe on a 2.4 kernel.
> something like this one?

No, not at all. I meant a patch against glibc, not against the kernel!

Like this:

map = mmap(..., PROT_EXEC, ...);
+ if (getenv("MAP_PREFAULT"))
+ madvise(map, length, MADV_WILLNEED);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:34    [W:0.040 / U:1.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site