STH-Dev / linux-bench

STH Linux benchmarking script
http://linux-bench.com
26 stars 14 forks source link

ARM - Beter detection of cores and apps use them properly #62

Open chuckleb opened 9 years ago

chuckleb commented 9 years ago

https://forums.servethehome.com/index.php?threads/arm-benchmarks.4634/#post-39358

Thanks for looking into the issue(s)! Another quick observation: something is keeping UnixBench from recognizing the multiple cores in multi-core ARM chips. I've run the bench on a Banana Pi (2 Cores) and an ODROID-C1 (4 cores) but both times UnixBench only ran the single thread benchmarks. Looking at the logs:

SysInfo (lscpu) reports the correct # of cpus (cores/threads/sockets) in its test. HardInfo doesn't report the number of cores/cpus. UnixBench self-reports 0 (zero) CPUs and runs only the single-thread benchmark C-Ray greps /proc/cpuinfo to find out how many threads to use Stream greps /proc/cpuinfo OpenSSL calls nproc SysBench calls nproc - even through nproc returns the correct number of CPUs/cores, sysbench runs the multi-thread benchmark on one core REDIS doesn't appear to care about threads/cores NPB is non-functional, but greps /proc/cpuinfo for cpus/cores NAMD is non-functional, but greps /proc/cpuinfo for cpus/cores p7zip does not seem to care

Maybe there needs to be a standardized way of determining the core/cpu count and passing that to the benchmarks, to ensure that all cores are used on the multi-core benchmarks.

chuckleb commented 9 years ago

Still pending: Hardinfo Unixbench

Standardized overall