Messages in this thread | | | Date | Mon, 17 Mar 2003 15:28:55 -0800 | From | Andrew Morton <> | Subject | Re: 2.4 vm, program load, page faulting, ... |
| |
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/
| |