Re: Aggressive swapout with 2.4.1pre4+

Zlatko Calusic
2001-01-16T18:41:26Z

Marcelo Tosatti <marcelo@conectiva.com.br> writes:

> Hi Linus,
>
> 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?
>

Hm, I didn't notice that 2.4.1-pre4 swaps out aggressively. In fact it
is very well balanced and I would vote for it as the kernel with the
best tuned VM.

Your patch slightly complicates things and I'm not sure if it's
strictly needed.

Now looking at the pre7 (not yet compiled) I see we will have really
impressive 2.4.1. reiserfs, Jens' blk, VM fixed... sheesh... what will
be left for fixing? ;)

--
Zlatko