Re: MADV_SPACEAVAIL and MADV_FREE in pre2-3

From: lars brinkhoff (lars.brinkhoff@intermec.com)
Date: Mon Mar 20 2000 - 08:49:09 EST


Jamie Lokier wrote:
> [Aside: is there the possibility to have mincore return the "!accessed"
> and "!dirty" bits of each page, perhaps as bits 1 and 2 of the returned
> bytes? I can imagine a bunch of garbage collection algorithms that
> could make good use of those bits. Currently some GC systems mprotect()
> regions and unprotect them on SEGV -- simply reading the !dirty status
> would obviously be much simpler and faster.]

Also, this would be wonderful for people implementing paging in user space.
Linux/a386, user-mode Linux, and the Brown Simulator comes to mind.

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



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:29 EST