Re: need help interpreting 'free' output.

Andrea Arcangeli (andrea@suse.de)
Tue, 30 Oct 2001 18:39:12 +0100


On Tue, Oct 30, 2001 at 09:28:29AM -0800, Linus Torvalds wrote:
> Does anybody see why we have to remove it from the swap cache at all?

the only reason is to avoid wasting the swap space, so at least Rik's
vm_swap_full logic should be added to it. The only advantage of dirty
swap cache persistence is that it will maintain the same position on
disk across a swapin/swapout cycle.

But anyways you can do that "swap persistence" work in do_swap_page too
to save a page fault for the write swapins. Ok, it's in one more place
but it will be less costly than running into another pagefault just
after returning to userspace.

Andrea
-
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/