wind@cocodriloo.com 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 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/
This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:21 EST