-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f4607c
commit 50a4ed6
Showing
7 changed files
with
179 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,44 @@ | ||
Request: | ||
-->{"id":1, "method":"getstat"} | ||
|
||
Response: | ||
<--{ | ||
"id": 1, | ||
"result": [{ | ||
"gpu_id": 0, // GPU CUDA id | ||
"temperature": 0, // current GPU temperature | ||
"sol_ps": 0.00, // current Sol/s | ||
"avg_sol_ps": 0.00, // average Sol/s | ||
"sol_pw": 0.00, // current Sol/s / Watt | ||
"avg_sol_pw": 0.00, // average Sol/s / Watt | ||
"power_usage": 0.00, // current power usage | ||
"avg_power_usage": 0.00, // average power usage | ||
"accepted_shares": 0, // total amount of accepted shares | ||
"rejected_shares": 0, // total amount of rejected shares | ||
"latency": 0 // network latency | ||
}], | ||
|
||
"uptime": 0, // uptime in seconds | ||
"contime": 0, // connection time in seconds (gets reset on reconnect) | ||
"server": "myserver.com", // server name | ||
"port": 0000, // port | ||
"user": "username", // username | ||
"version": "0.5.4", // zm version | ||
"error": null | ||
} | ||
ZM supports telemetry via json-rpc. | ||
Telemetry server isn't started by default - to start the telemetry server the | ||
'telemetry' option has to be given on the command line or the configuration file. | ||
|
||
To get telemetry data - open a socket write the json-rpc request as given below | ||
to it and parse the response. (note: json-rpc isn't transferred on top of http) | ||
|
||
For a quick test the following command can be used on unix systems. | ||
echo "{\"id\":1, \"method\":\"getstat\"}\n" |nc 127.0.0.1 2222 | ||
|
||
|
||
|
||
Request: | ||
-->{"id":1, "method":"getstat"} | ||
|
||
Response: | ||
<--{ | ||
"id": 1, | ||
"result": [{ | ||
"gpu_id": 0, // GPU CUDA id | ||
"gpu_name": "string", // GPU name | ||
"gpu_pci_bus_id": 0, // PCI bus id | ||
"gpu_pci_device_id": 0, // PCI device id | ||
"gpu_uuid": "string" // GPU UUID | ||
"temperature": 0, // current GPU temperature | ||
"sol_ps": 0.00, // current Sol/s | ||
"avg_sol_ps": 0.00, // average Sol/s | ||
"sol_pw": 0.00, // current Sol/s / Watt | ||
"avg_sol_pw": 0.00, // average Sol/s / Watt | ||
"power_usage": 0.00, // current power usage | ||
"avg_power_usage": 0.00, // average power usage | ||
"accepted_shares": 0, // total amount of accepted shares | ||
"rejected_shares": 0, // total amount of rejected shares | ||
"latency": 0 // network latency | ||
}], | ||
|
||
"uptime": 0, // uptime in seconds | ||
"contime": 0, // connection time in seconds (gets reset on reconnect) | ||
"server": "string", // server name | ||
"port": 0000, // port | ||
"user": "string", // username | ||
"version": "string", // zm version | ||
"error": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
@echo ####################################################### | ||
@echo Don't forget to change your pool and login information. | ||
@echo ####################################################### | ||
|
||
zm --server eu1-zcash.flypool.org --port 3333 --user t1Ja3TR6QBRDUd897sLn1YSeKc8HnWmvHbu --color | ||
|
||
@echo off | ||
REM Usage: | ||
REM zm --server hostname --port port_nr --user user_name | ||
REM [--pass password] [options]... | ||
REM | ||
REM zm --cfg-file[=path] | ||
REM | ||
REM Stratum: | ||
REM --server Stratum server hostname | ||
REM prefix hostname with 'ssl://' for encrypted | ||
REM connections - e.g. ssl://mypool.com | ||
REM --port Stratum server port number | ||
REM --user Username | ||
REM --pass Worker password | ||
REM | ||
REM Options: | ||
REM --help Print this help | ||
REM --list-devices List available cuda devices to use | ||
REM --dev Space separated list of cuda devices | ||
REM --time Enable output of timestamps | ||
REM --color colorize the output | ||
REM --logfile [=path] Append logs to the file named by 'path' | ||
REM If 'path' is not given append to 'zm.log' in | ||
REM current working directory. | ||
REM --noreconnect Disable automatic reconnection on network errors. | ||
REM | ||
REM --temp-target In C - If set, enables temperature controller. | ||
REM The workload of each GPU will be continuously | ||
REM adjusted such that the temperature stays around | ||
REM this value. It is recommended to set your fan speed | ||
REM to 100% when using this setting. | ||
REM | ||
REM --telemetry [=ip:port]. Starts telemetry server. Telemetry data | ||
REM can be accessed using a web browser(http) or by json-rpc. | ||
REM If no arguments are given the server listens on | ||
REM 127.0.0.1:2222 - Example: --telemetry=0.0.0.0:2222 | ||
REM Valid port range [1025-65535] | ||
REM | ||
REM --cfg-file [=path] Use configuration file. All additional command | ||
REM line options are ignored - configuration is done only | ||
REM through configuration file. If 'path' is not given | ||
REM use 'zm.cfg' in current working directory. | ||
REM | ||
REM Example: | ||
REM zm --server servername.com --port 1234 --user username |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# ZM supports configuration via configuration files. | ||
# Configuration files are used if the '--cfg-file' option is given on the | ||
# command line. All additional command line options are ignored in this case. | ||
# Options are grouped into sections - each option is a 'key=value(s)' pair. | ||
# Lists of values are separated by ',' (spaces are not allowed). | ||
# Comments start with '#'. | ||
|
||
# ZM supports the setup of multiple pools. | ||
# Pools are ordered by their priority. Higher priority pools are configured | ||
# above lower priority pools in this file. ZM connects to the highest priority | ||
# pool which is reachable. If a pool gets unreachable a lower priority pool will | ||
# be used. ZM reconnects to a higher priority pool automatically if it gets | ||
# reachable again. | ||
|
||
|
||
|
||
[GLOBAL] | ||
#dev=0,1,2 # Comma separated list of cuda devices | ||
time=1 # Enable output of timestamps | ||
color=1 # Colorize the output | ||
logfile=zm.log # Appends logs to the given file | ||
#noreconnect=1 # Disable reconnection on network errors | ||
|
||
|
||
telemetry=0.0.0.0:2222 # Starts telemetry server | ||
|
||
|
||
#intensity=0:0.9,1:0.85 # Reduce the load which is put on the gpu valid | ||
# range ]1.0-0.0[. Format: comma separated list | ||
# of dev_id:intensity values e.g '0:0.5,2:0.6' | ||
# Intensity uses performance data - it takes | ||
# some time till it gets applied. | ||
|
||
#temp-target=0:65,2:65 # In C - If set, enables temperature controller. | ||
# The workload of each GPU will be continuously | ||
# adjusted such that the temperature stays around | ||
# this value. Format: comma separated list of | ||
# of dev_id:temp-target values e.g '0:65,2:70' | ||
|
||
|
||
|
||
|
||
[POOL] | ||
server=eu1-zcash.flypool.org | ||
port=3333 | ||
user=t1Ja3TR6QBRDUd897sLn1YSeKc8HnWmvHbu | ||
#pass=x | ||
|
||
[POOL] | ||
server=ssl://eu1-zcash.flypool.org | ||
port=3443 | ||
user=t1Ja3TR6QBRDUd897sLn1YSeKc8HnWmvHbu | ||
#pass=x |