Nick Piggin wrote: > FabF wrote: >> http://fabian.unixtech.be/kernel/autoregulate/ > I didn't see Con's newest autoswappiness patch do a great deal > for kbuild here. The inactivation thing seems to help more - it > appears to increase the rate of active list scanning, which is > consistient with the sort of behaviour I have seen. However, the > problem with increased active list scanning is that it can be > quicker to evict RSS over throwaway data which is bad. > > Changes should be tested one at a time if possible, and when they > are determined to be an improvement, we should try to look into > what the "auto tuning" magic is doing right, and see if that can > be implemented in a simpler way (although it may be already as > simple as possible). The autotuned swappiness part tended to have the most effect at avoiding the morning drag, or the post ISO image copy drag without slowing things down under real heavy memory stress. The original version of autotuned inactivation simply increased the number of pages scanned and had better results on my benching but this part of code changed somewhat and I dont think I put it back to the best way. This patch recreates more closely the behaviour of the original version. It would be nice if people who have tested the previous more confused patches to try these two in sequence and see what measurable results they give. Description: This patch increases the number of active pages inactivated and the number of inactive pages freed dependent inversely on the vm_swappiness. The vm_swappiness in turn is tuned by the previous patch (autotune_swappiness) according to the mapped ratio. As the vm_swappiness is proportional to the square root of the mapped ratio, this means that the mapped ratio has to be quite high before this patch has any great effect. Patch applies to 2.6.7-bk20 and mm6 Signed-off-by: Con Kolivas