Boinc Mods/Hacks/Helps


Boinc Service Control task boincD:

  1. Copy the script to /etc/rc.d/init.d/boincD
  2. chmod 777
  3. Edit BOINCDIR to point at where you installed Boinc
  4. Use chkconfig to set run levels (defaults to run @ levels 3,4, and 5)
  5. Start service with: service boincD start
  6. Stop with: service boincD stop
boincD



Boinc
Boinc Benchmark Project- fair_bench

A project undertaken because the Windows and Linux benchmarked vastly differently.

Boinc Version problems-
* Linux uses a fork command to call the benchmarks, inherits priority from caller.
* Uses cpu clock not wall clock.
* Inner loops to long, runtime varies +/- almost a second in some cases.
* Move time check inside inner loop instead of a conditional on the outer loops.


Boinc Benchmark code, stand-alone versions
1) Run whetstone for 20 sec wall time, store MIPS to file.
2) Run dhrystone for 20 sec wall time, store dhrystones/sec and VAX_MIPS to file. (Boinc uses Vax MIPS for some reason).
3) Display results.

Files (either format contains both the Windows (VS8 or Intel C++) and Linux (g++) versions) :
BBench.tar.gz
BBench.zip

Windows:
* Defaulted to SSE2 (VS does not have a SSE3 option)
* Compile with VS2005 (VS-8). May need to change output dir, currently set to D:\BBench\Release.
* Edit B-Bench.bat to reflect # of CPUs (BBench 2 :: 2 CPUs)
* Run B-Bench.bat

Linux:
* Edit makefile to select desired CPU (Athlon_FX, Pentium4, Prescott, or Core2Duo)
* make gcc
* Edit B-Bench.sh to reflect # of CPUs (./BBench 2 :: 2 CPUs)
* Run B-Bench.sh

To install into Boinc Client code:
1) Copy /BOINC/fair_bench.c to ./client dir.
2) Find procedure
int cpu_benchmarks(BENCHMARK_DESC * bdp)
in routine cs_benchmark. Comment out this procedure and replace with
#include "fair_bench.c"
3) Compile as normal.
4) Copy whetestone and dhrystone to the same directory with boinc (or boinc.exe for Windows)

Enjoy.
PS- If compiled with the Intel compiler, both the Windows and the Linux versions gain about 30%.


Next projects-
1) Change code to use CPUID calls so Boinc recognizes SSE3 (currently takes Bill Gate's
word for it, and Win XP lies!) Also Linux may not report properly either.
2) Modify to run under Cluster Control SW.

Test other misc stuff:

KWSN City Stats: XML