How to (mining) benchmark a system (not single core)?


#1

Hey there, I know there are many threads discussing hashrates and benchmarks. But there must be a way to benchmark not a single-thread equihash round but a full system with all CPU cores (or GPU cores) and all memory taken into account.

How are you comparing mining software anyways? There must be a way other than zcbenchmark solveequihash 20, thanks!


Watching zcash mine, a timelapse
#2

I've been trying to figure out the same thing. You can provide a thread count parameter to zcbenchmark:

~/zcash/src/zcash-cli zcbenchmark solveequihash 20 4

I quickly made a script to run several tests with zcbenchmark. I'm still not certain this will get us the answer that we want though. My main goal with this script is to verify that four threads is the best setup for my machine. At this time, I understand that this script is searching for the point where memory bandwidth and CPU are maxed out. These appear to be the key resources for equihash.

Script: https://github.com/KR77/zcashHashTest/blob/master/zcashHashTest.sh

Also, if you haven't found it, this thread is a good place to start: https://forum.zcashcommunity.com/t/equihash-ongoing-memory-requirement-adjustments/519/18


#3

Damn useful, thanks. I wasn't aware of the threads parameter.


#4

And I should have mentioned that you can set the number of cores for actual mining in the ~/.zcash/zcash.conf with the genproclimit parameter. I'm not certain how that plays with the second numeric argument for solveequihash....

While mining with genproclimit=4 in my config, all four CPUs on my machine are maxed out. Then, I stopped mining with the command ~/zcash/src/zcash-cli setgenerate false and performed the following two tests:

  1. With genproclimit=4 in my config and a command with 'solveequihash 2' -- only one CPU is at 100%.

  2. With genproclimit=4 in my config and a command with 'solveequihash 2 2' -- two CPUs are at 100%.

So, it looks like solveequihash uses 1 CPU/thread unless directed to do otherwise. The genproclimit does not impact solveequihash.