I just downloaded and built cpuminer-1.0.2. I expected to see some improvements thanks to ckolivas' affinity changes (assuming they have made it into the release), but I'm surprised to find I'm getting the same speed:
$ grep CFLAGS_value */config.log
cpuminer-1.0.1/config.log:ac_cv_env_CFLAGS_value='-O3 -Wall -msse2'
cpuminer-1.0.2/config.log:ac_cv_env_CFLAGS_value='-O3 -Wall -msse2'
$ tail */my-log
==> cpuminer-1.0.1/my-log <==
[2011-06-14 18:57:05] thread 5: 161767000 hashes, 2694.78 khash/sec
[2011-06-14 18:58:00] thread 1: 160434868 hashes, 2684.82 khash/sec
[2011-06-14 18:58:00] thread 4: 162531240 hashes, 2694.68 khash/sec
[2011-06-14 18:58:05] thread 2: 160738332 hashes, 2678.31 khash/sec
[2011-06-14 18:58:05] thread 3: 162845920 hashes, 2687.02 khash/sec
[2011-06-14 18:58:06] thread 6: 161633936 hashes, 2691.05 khash/sec
[2011-06-14 18:58:06] thread 0: 162323744 hashes, 2687.43 khash/sec
[2011-06-14 18:58:06] thread 5: 161767000 hashes, 2694.55 khash/sec
[2011-06-14 18:59:00] thread 1: 160434868 hashes, 2693.92 khash/sec
[2011-06-14 18:59:01] thread 4: 162531240 hashes, 2684.48 khash/sec
==> cpuminer-1.0.2/my-log <==
[2011-06-14 21:30:10] thread 0: 40046392 hashes, 2687.31 khash/sec
[2011-06-14 21:30:10] thread 2: 32207448 hashes, 2687.27 khash/sec
[2011-06-14 21:30:10] thread 1: 49517220 hashes, 2687.39 khash/sec
[2011-06-14 21:31:12] thread 4: 158828460 hashes, 2687.11 khash/sec
[2011-06-14 21:31:12] thread 6: 161129456 hashes, 2679.90 khash/sec
[2011-06-14 21:31:13] thread 3: 164484744 hashes, 2686.09 khash/sec
[2011-06-14 21:31:13] thread 0: 160185568 hashes, 2685.15 khash/sec
[2011-06-14 21:31:14] thread 2: 161037240 hashes, 2685.64 khash/sec
[2011-06-14 21:31:14] thread 5: 164770840 hashes, 2687.16 khash/sec
[2011-06-14 21:31:16] thread 1: 165057400 hashes, 2684.58 khash/sec
$ grep -vE 'url|user|pass' cpuminer-1.0.2/cfg.json
{
"algo" : "sse2_64",
"threads" : "7",
"retry-pause" : "25"
}
$ diff -u cpuminer-1.0.*/cfg.json
$ _
I tried removing the line that specifies 7 threads but that makes no difference (except for the log messages "Binding thread %d to cpu %d"). Am I omitting some step? The CPU is a "Intel(R) Xeon(R) CPU E5420 @2.50GHz". This is the layout of the CPUs/cores:
$ grep -E '^processor|^physical|^core.id|^$' /proc/cpuinfo
processor : 0
physical id : 0
core id : 0
processor : 1
physical id : 1
core id : 0
processor : 2
physical id : 0
core id : 2
processor : 3
physical id : 1
core id : 2
processor : 4
physical id : 0
core id : 1
processor : 5
physical id : 1
core id : 1
processor : 6
physical id : 0
core id : 3
processor : 7
physical id : 1
core id : 3
"siblings" and "cpu cores" both have the value 4 in all entries.