Skip to content

Commit

Permalink
update to v0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
nemosminer authored Feb 27, 2018
1 parent 6f4607c commit 50a4ed6
Show file tree
Hide file tree
Showing 7 changed files with 179 additions and 38 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dstm's ZCash / Equihash Nvidia Miner
------------------------------------

Copyright (c) 2017 dstm
Copyright (c) 2018 dstm

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Expand Down
19 changes: 15 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Official site: Official site: https://bitcointalk.org/index.php?topic=2021765.0
- Supports stratum/pool based mining.
- Multi-GPU support.
- Supports remote monitoring
- Supports setup of failover pools
- Supports configuration using configuration files
- contains 2% development fee


Expand All @@ -24,7 +26,7 @@ Windows:
Usage
=====

To get a description about available options - launch zm without parameter.
To get a description about available options - launch zm without parameters.

Minimal example:
zm --server servername.com --port 1234 --user username
Expand All @@ -33,25 +35,28 @@ Packages for windows include a 'start.bat' for simplicity.
Don't forget to change your pool and login information.

$ zm --help
ZM 0.5.4, dstm's ZCASH/Equihash Cuda Miner
ZM 0.6, dstm's ZCASH/Equihash Cuda Miner

Usage:
zm --server hostname --port port_nr --user user_name
[--pass password] [options]...

zm --cfg-file[=path]

Stratum:
--server Stratum server hostname
prefix hostname with 'ssl://' for encrypted
connections - e.g. ssl://mypool.com
--port Stratum server port number
--user Username / Workername
--user Username
--pass Worker password

Options:
--help Print this help
--list-devices List available cuda devices to use
--dev Space separated list of cuda devices
--list-devices List available cuda devices
--time Enable output of timestamps
--color colorize the output
--logfile [=path] Append logs to the file named by 'path'
If 'path' is not given append to 'zm.log' in
current working directory.
Expand All @@ -68,6 +73,12 @@ Usage:
If no arguments are given the server listens on
127.0.0.1:2222 - Example: --telemetry=0.0.0.0:2222
Valid port range [1025-65535]

--cfg-file [=path] Use configuration file. All additional command
line options are ignored - configuration is done only
through configuration file. If 'path' is not given
use 'zm.cfg' in current working directory.

Example:
zm --server servername.com --port 1234 --user username

Expand Down
72 changes: 44 additions & 28 deletions json-rpc.txt
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
}
51 changes: 51 additions & 0 deletions start-no-cfg-file.bat
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
20 changes: 15 additions & 5 deletions start.bat
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
echo Don't forget to change your pool and login information.

zm --server eu1-zcash.flypool.org --port 3333 --user t1Ja3TR6QBRDUd897sLn1YSeKc8HnWmvHbu
@echo #######################################################
@echo Don't forget to change your pool and login information.
@echo #######################################################

zm.exe --cfg-file=zm.cfg

@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 / Workername
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 --list-devices List available 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.
Expand All @@ -37,5 +41,11 @@ REM can be accessed using a web browser(http) or by json-rp
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
53 changes: 53 additions & 0 deletions zm.cfg
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
Binary file modified zm.exe
Binary file not shown.

0 comments on commit 50a4ed6

Please sign in to comment.