Re: Memory mapped files question

Antonio Vargas (wind@cocodriloo.com)
Mon, 14 Apr 2003 17:07:59 +0200


On Mon, Apr 14, 2003 at 07:36:39AM -0700, Martin J. Bligh wrote:
> > Hi, everyone. I'm running into a problem that I hope someone else has seen,
> > and maybe can help solve. We're using the mmap system function for memory
> > mapped files, but our updates never get flushed until we munmap or msysnc.
> > Are we missing something? Is there a tunable parameter in the kernel or
> > filing system that can be set to flag these updates as 'write required'?
>
> This was discussed about a week ago on either linux-kernel or linux-mm.
> The short answer is "yes, that's deliberate", but an archive search would
> probably be fruitful.
>
> M.

Martin, something which was not mentioned last week (I've just checked).

It's OK if we never write to disk unless explicitely told, but will we writeback
when we munmap?

Greets, Antonio.
-
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/