Re: mmap() page swapping location?

From: Chris Quinn (cq@htec.demon.co.uk)
Date: Tue Aug 01 2000 - 12:38:07 EST


"Juan J. Quintela" wrote:
>
> >>>>> "chris" == Chris Quinn <cq@htec.demon.co.uk> writes:
>
> chris> Hello folks,
Hi Juan,

I don't think MAP_PRIVATE quite fits the bill because pages become divorced from the file; msync() and munmap() seem no longer to reflect changes back to disk. I want to keep that association as it is efficient.

Thanks for the MAP_NORESERVE ... didn't know about that vital flag.

regards,
Chris

> s/MAP_SWAP/MAP_PRIVATE/ does just that ....
> you need to have in account if you allow several processes reading the
> database, blah, blah, blah .... Oh, and if you have a really _BIG
> DATABASE_ you could want to play with MAP_NORESERVE (linux and some
> others UNIX specific, not standard).
>
> Later, Juan.

-
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 : Mon Aug 07 2000 - 21:00:06 EST