Re: [patch 02/19] free swap space on swap-in/activation

Christoph Lameter
2008-01-08T22:10:29Z

On Tue, 8 Jan 2008, Rik van Riel wrote:

> Free swap cache entries when swapping in pages if vm_swap_full()
> [swap space > 1/2 used?]. Uses new pagevec to reduce pressure
> on locks.

The pagevec function would be faster if the swap removal could be batched
inside of the locks taken in remove_exclusive_swap_page.

Reviewed-by: Christoph Lameter <clameter@sgi.com>