Re: Q about pagecache data never written to disk

From: Nick Piggin
Date: Thu Sep 09 2004 - 12:41:27 EST


William Lee Irwin III wrote:
On Thu, Sep 09, 2004 at 11:32:01PM +1000, Nick Piggin wrote:

writeback isn't, but the pages will get marked dirty at unmap.
But I think I am wrong actually - I don't actually see why the
user would have to have the file open.


Dirty memory "limits" have no force as applied to mmap() IO, which is
not a pretty state of affairs with respect to various attempts the VM
makes at mitigating data structure proliferation associated with dirty
data.


Yeah I know. data structure proliferation and just the simple fact
that it can't immediately be freed is a problem.

What is the alternative? Take a fault every time we write to a clean,
mmapped page?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/