On Apr 15, 2010, at 3:30 AM, Johannes Weiner wrote:
Right, that's why the patch writes out contiguous pages in mapping
order.
If they are contiguous on disk with the original page, then writing
them out
as well should be essentially free (when it comes to disk time). There
is
almost no waste of memory regardless of the access patterns, as far as I
can tell.
This patch is just a proof of concept and could be improved by getting
help
from the filesystem/swap code to ensure that the additional pages we're
writing out really are contiguous with the original one.
-- Suleiman
--