This repo is a set of helper scripts for pulling data out of the cgminer (or, preferably, sgminer) API and writing it to RRD files or a CSV. It's been developed on Linux, and may or may not work on other platforms.
python
2.7rrdtool-python
- Optionally,
R
andggplot2
sgminer
orcgminer
-sgminer
is preferable as it has more precision on the MHS API endpoint- The API enabled for the above (add
"api-listen" : true,
to your cgminer config file)
There are two primary usages of the scripts in this repo:
- Recording long-term performance and tuning data to RRD files for later graphing
- Actively fiddling with overclock settings while writing data to a CSV for later processing with
R
This is the, ironically, the less compelling usage of cgminer2rrd
at the moment. It basically dumps information from the cgminer
API to RRD files, ready for later graphing.
To run, use ./poll.py
, which will output very little, but poll the cgminer
API every 5 seconds
To view data, use ./graph.py
, which will render the more useful generated RRD files to graphs, ready for viewing.
To generate a heatmap of your core/mem clock hashrate output:
- Be aware of your card's stable range of core and memory clock settings
- Customize the top of clocks.py to specify these settings
- Run
./clocks.py
and wait several days - If
./clocks.py
crashes or you have to stop it, just restart it when you can - it won't retry settings that it has already tried - Once
./clocks.py
has finished, generate a graph withR --no-save < clocks.R