Re: Memory mapped files question

From: H. Peter Anvin (hpa@zytor.com)
Date: Tue Apr 15 2003 - 00:30:52 EST


Jamie Lokier wrote:
>
> It's a quality of implementation issue if data can remain dirty in RAM
> forever without ever being flushed.
>
> Can this really happen with normal open/mmap/munmap/close usage, or
> does it only occur with long-lived processes like innd which mmap a
> file, dirty the pages but never munmap them?
>
> If the former case does happen, I'd say we're failing on quality of
> implementation. If it's only the latter case, though, fair enough: the
> application writer will have to use msync().
>

The latter, I'm pretty sure. After all, that's what pgflush/bdflush is
all about.

-
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 : Tue Apr 15 2003 - 22:00:34 EST