Re: mmap/munmap semantics

From: Stephen C. Tweedie (sct@redhat.com)
Date: Thu Feb 24 2000 - 08:51:25 EST


Hi,

On Thu, 24 Feb 2000 13:24:07 +0100 (MET), Richard Guenther
<richard.guenther@student.uni-tuebingen.de> said:

> Ah, this is cool - exactly what we need. I.e. an
> madvise(MADV_DONTNEED) and a subsequent munmap should not generate any
> disk io?

If you do the MADV_DONTNEED before the VM system has decided to flush
things out for its own reasons, then yes. At least, according to one
reading of the specs. There doesn't seem to be consensus yet on
precisely what this call is supposed to do --- BSD and Digital Unix man
pages are contradictory on this.

--Stephen

-
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 : Tue Feb 29 2000 - 21:00:09 EST