Thought I would share an example of a CPU auto algo switching script. It comprises of a main algo loop script, and a wrapper launcher script that allows the selection of the number of threads to use, and launches the algo loop script on low priority so you can still use your computer to do other things. It uses two different cpu miners, a multi miner which covers every algorithm (but is shockingly poor on scrypt performance compared to the original cpu pooler miner), and an x11 optimised miner which kicks ass on that algorithm. The normalisation factors are simply kH/s * 10. Some algos get a better performance boost using multi threads than others, probably dependent on how memory intensive the algo is (and thus the threads are sharing memory bandwidth). Note, I don't use the sleep statement as per the example ccminer page, its pointless. It is also worthwhile setting difficulty setting on CPU miners, as the stratum auto diff takes too long to drop the difficulty. In many cases this is the lowest allowed.
@ECHO OFF
SETLOCAL
IF %1.==. (
SET /P threads=Number of threads?
) ELSE (
SET threads=%1
)
START "DGB Mining at zpool (CPU) - %threads% Threads" /LOW CPU-AlgoSwitch-Loop.bat %threads%
ENDLOCAL
EXIT /B 0
@ECHO OFF
SETLOCAL
SET threads=%1
SET username=
REM 1 thread normalisation string for multi miner only
REM SET password=c=DGB,scrypt=36,x11=456,x13=334,x15=310,c11=456,lyra2v2=853,quark=865,qubit=730,myr-gr=3730,neoscrypt=30,groestl=2440,blake=25650,blakecoin=47900
REM 1 Thread
REM SET password=c=DGB,scrypt=145,x11=1125,x13=334,x15=310,c11=456,lyra2v2=853,quark=865,qubit=730,myr-gr=3730,neoscrypt=30,groestl=2440,blake=25650,blakecoin=47900
REM 4 Threads
SET password=c=DGB,scrypt=525,x11=4100,x13=825,x15=771,c11=1117,lyra2v2=1937,quark=2184,qubit=1711,myr-gr=7570,neoscrypt=69,groestl=5157,blake=67030,blakecoin=105600
CD ..\..
:START
CD cpuminer-1.3
minerd-corei7-avx.exe -r 0 -a scrypt -o stratum+tcp://mine.zpool.ca:3433 -u %username% -p d=4,%password% -t %threads%
minerd-corei7-avx.exe -r 0 -a X11 -o stratum+tcp://mine.zpool.ca:3533 -u %username% -p d=0.001,%password% -t %threads%
CD ..
CD cpuminer-multi-1-2-dev
cpuminer.exe -r 0 -a x13 -o stratum+tcp://mine.zpool.ca:3633 -u %username% -p d=0.001,%password% -t %threads%
cpuminer.exe -r 0 -a x15 -o stratum+tcp://mine.zpool.ca:3733 -u %username% -p d=0.001,%password% -t %threads%
cpuminer.exe -r 0 -a c11 -o stratum+tcp://mine.zpool.ca:3573 -u %username% -p d=0.001,%password% -t %threads%
cpuminer.exe -r 0 -a lyra2v2 -o stratum+tcp://mine.zpool.ca:4533 -u %username% -p d=0.1,%password% -t %threads%
cpuminer.exe -r 0 -a quark -o stratum+tcp://mine.zpool.ca:4033 -u %username% -p d=0.001,%password% -t %threads%
cpuminer.exe -r 0 -a qubit -o stratum+tcp://mine.zpool.ca:4733 -u %username% -p d=0.001,%password% -t %threads%
cpuminer.exe -r 0 -a myr-gr -o stratum+tcp://mine.zpool.ca:5433 -u %username% -p d=0.001,%password% -t %threads%
cpuminer.exe -r 0 -a neoscrypt -o stratum+tcp://mine.zpool.ca:4233 -u %username% -p d=4,%password% -t %threads%
cpuminer.exe -r 0 -a groestl -o stratum+tcp://mine.zpool.ca:5333 -u %username% -p d=0.3,%password% -t %threads%
cpuminer.exe -r 0 -a blake -o stratum+tcp://mine.zpool.ca:5733 -u %username% -p d=0.01,%password% -t %threads%
cpuminer.exe -r 0 -a blakecoin -o stratum+tcp://mine.zpool.ca:5743 -u %username% -p d=0.02,%password% -t %threads%
CD ..
GOTO START
CD zpool\DGB
ENDLOCAL
EXIT /B 0