Re: Aggressive swapout with 2.4.1pre4+

Rik van Riel
2001-01-17T07:27:10Z

On Tue, 16 Jan 2001, Marcelo Tosatti wrote:

> Currently swap_out() scans a fixed percentage of each process RSS without
> taking into account how much memory we are out of.
>
> The following patch changes that by making swap_out() stop when it
> successfully moved the "needed" (calculated by refill_inactive()) amount
> of pages to the swap cache.
>
> This should avoid the system to swap out to aggressively.
>
> Comments?

The big problem doesn't seem to be this. The big problem
seems to be that we don't do IO in page_launder() smooth
enough.

All the above patch does is make _allocation_ of swap and
clearing of page table entries smoother, but those are not
the actions that have a performance impact.

(and yes, I tested all these things while I was sitting in
my hotel room for 5 days without any net access)

regards,

Rik
--
Virtual memory is like a game you can't win;
However, without VM there's truly nothing to lose...

http://www.surriel.com/
http://www.conectiva.com/ http://distro.conectiva.com.br/