========== USAGE ==========
example usage:
./bench 1024 100 20 1

params:
0: [int] wss (in MB), def: 1024
1: [int] read ratio, def: 100
2: [int] time to execute, def: 5
3: [int] access pattern 0: sequential, 1: read, def: 1
4: [int] CPU num, pin access thread, def: 0



========== BENCHMARKS ==========
Run the benchmark:
./set_autonuma.sh 1
./runner.sh numactl ./bench 2048 100 20 1 38

See the autonuma effect:
autonuma: 1
0 1.95 1.73 0.00 0.00
1
0 165.74 1.73 0.00 0.00
0 601.50 1.73 0.00 0.00
1 1043.74 1.73 0.00 0.00
1 1492.20 1.73 0.00 0.00
1 1925.88 1.73 0.00 0.00
1 2388.77 1.73 0.00 0.00
2 2857.85 1.73 0.00 0.00
2 3332.90 1.73 0.00 0.00
2 3813.43 1.73 0.00 0.00
Running on thread: 0
Benchmark on thread: 38
3 4098.16 1.66 0.00 0.00
3 4098.16 1.66 0.00 0.00
3 4098.16 1.66 0.00 0.00
3 4098.16 1.66 0.00 0.00
4 4017.76 82.06 0.00 0.00
4 3907.46 192.36 0.00 0.00
4 3859.56 240.26 0.00 0.00
4 3849.91 249.91 0.00 0.00
5 3773.91 325.91 0.00 0.00


AutoNUMA disabled
./set_autonuma.sh 0
./runner.sh numactl ./bench 2048 100 20 1 38
autonuma: 0
0 1.84 1.73 0.00 0.00
1
0 159.24 1.73 0.00 0.00
0 594.33 1.73 0.00 0.00
0 1035.88 1.73 0.00 0.00
1 1478.52 1.73 0.00 0.00
1 1929.67 1.73 0.00 0.00
1 2393.36 1.73 0.00 0.00
1 2874.82 1.73 0.00 0.00
2 3354.07 1.73 0.00 0.00
2 3862.45 1.73 0.00 0.00
Running on thread: 0
Benchmark on thread: 38
2 4097.92 1.73 0.00 0.00
2 4097.92 1.73 0.00 0.00
3 4097.92 1.73 0.00 0.00
3 4097.92 1.73 0.00 0.00
3 4097.92 1.73 0.00 0.00
4 4097.92 1.73 0.00 0.00
4 4097.92 1.73 0.00 0.00
4 4097.92 1.73 0.00 0.00
4 4097.92 1.73 0.00 0.00
5 4097.92 1.73 0.00 0.00