2.4.13pre5aa1
Here are some numbers on the VM, pre5aa1 was swapping a lot when using it with my normal load(which is gaim, xchat, gkrellm, opera, mozilla, mysql) but the following made it better.
echo 6 > /proc/sys/vm/vm_scan_ratio
echo 2 > /proc/sys/vm/vm_mapped_ratio
echo 4 > /proc/sys/vm/vm_balance_ratio
========================================
2.4.13-pre5aa1
./fillmem
0.860u 1.040s 0:01.91 99.4% 0+0k 0+0io 96pf+0w 0.780u 1.200s 0:01.92 103.1% 0+0k 0+0io 96pf+0w 0.890u 1.090s 0:01.92 103.1% 0+0k 0+0io 96pf+0w
./dbench 5
5 clients started
.........................................................................................................
................................................................................+++++*****
Throughput 31.2004 MB/sec (NB=39.0005 MB/sec 312.004 MBit/sec) 5 procs
./dbench 10
..........10 clients started
.........................................................................................................
.........................................................................................................
.............................................................................................+...........
..............................................+++++++++**********
Throughput 21.6991 MB/sec (NB=27.1239 MB/sec 216.991 MBit/sec) 10 procs
========================================
2.4.12-ac3-vmpatch-freeswap
./fillmem
0.850u 0.930s 0:02.09 85.1% 0+0k 0+0io 94pf+0w 0.800u 0.940s 0:02.08 83.6% 0+0k 0+0io 94pf+0w 0.810u 1.060s 0:02.12 88.2% 0+0k 0+0io 94pf+0w
./dbench 5
5 clients started
...............................................................................................................................................................................+......+...++.+*****
Throughput 13.2336 MB/sec (NB=16.542 MB/sec 132.336 MBit/sec) 5 procs
./dbench 10
..........10 clients started
....................................................................................................................................................................................................................................................................................................................................................++..+....+.+.........+..+..+++**********
Throughput 11.5991 MB/sec (NB=14.4989 MB/sec 115.991 MBit/sec) 10 procs
Signature · 1 line
L1: khromy ;khromy at lnuxlab.ath.cx
Quoted 6 lines · khromy
my normal
load(which is gaim, xchat, gkrellm, opera, mozilla, mysql)but the following made it better.echo 6 >
/proc/sys/vm/vm_scan_ratio
echo 2 >/proc/sys/vm/vm_mapped_ratio
echo 4 >/proc/sys/vm/vm_balance_ratio
agreed, pre5aa1 was swapping too much by default, so the above echos are recommended. btw, I did further developement in the weekend and it should be better now by default than pre5aa1 with the above sysctl settings. I'll do more tests on bigger hardware in the next days (I was on the laptop).
thanks for the feedback,
Andrea