--- diff -puN mm/vmscan.c~mem_scal mm/vmscan.c --- linux-2.6.17.3/mm/vmscan.c~mem_scal 2006-07-05 06:23:59.000000000 -0400 +++ linux-2.6.17.3-root/mm/vmscan.c 2006-07-05 06:24:56.000000000 -0400 @@ -741,7 +741,7 @@ static void shrink_active_list(unsigned * A 100% value of vm_swappiness overrides this algorithm * altogether. */ - swap_tendency = mapped_ratio / 2 + distress + vm_swappiness; + swap_tendency = mapped_ratio / 2 + distress + (vm_swappiness * nr_swap_pages)/32; /* * Now use this metric to decide whether to start moving mapped _