Con Kolivas <kernel@xxxxxxxxxxx> wrote:
Attached is a patch designed to improve the behaviour of the swappiness knob in 2.6.8-rc1-mm1.
The current mechanism decides to reclaim mapped pages based on the combination of mapped_ratio/2 and the manual setting of swappiness currently tuned to 60. Biasing this mechanism to be proportional to the square root of mapped_ratio gives good overall performance improvement for desktop workloads without any noticable detriment to other loads.
OK...
It has the effect of being fairly aggressive at avoiding loss of applications to swap under conditions of heavy or sustained file stress while allowing applications to swap out under what would be considered "application" memory stresses on a desktop.
But decreasing /proc/sys/vm/swappiness does that too?
It has no measurable effect on any known benchmarks.
So how are we to evaluate the desirability of the patch???
Shouldn't mapped_bias be local to refill_inactive_zone()?
Why is `swappiness' getting squared? AFAICT this will simply make the
swappiness control behave nonlinearly, which seems undesirable?