Containerized Zcash ZEC Mining with nvidia-docker

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

Patrick

Administrator
Staff member
Dec 21, 2010
12,511
5,792
113
Knocked this one out this evening since I know we now need crypto mining to go along with our deep learning nvidia cards.

Available Images

zcash.flypool.org
Code:
nvidia-docker run -itd -e username=<insert_t_address> servethehome/zec_flypool_ewbf:cuda
dwarfpool
Code:
nvidia-docker run -itd -e username=<insert_t_address> servethehome/zec_dwarfpool_ewbf:cuda
You can generate an address using Kraken or similar and use that as the username. Note these are using the EWBF 0.3.4b3 miner. It is much faster than the nheqminer from what I have seen. The EWBF is supposedly optimized for Pascal GPUs.

Additional nvidia-docker Launch Options
-e templimit=t
Replace t with degrees C for a GPU temperature limit. Default is 90C
-e devfee=d
Replace d with devfee % you want to give. Default is 2%

ZEC Reference NVIDIA GPU Zcash Benchmarks
A key here is that ZEC mining seems to be much higher earning/ day than Monero on NVIDIA GPUs.
ZEC Mining Paypack and Profitability
Here is a calculator Mining Calculator Bitcoin, Ethereum, Litecoin, Dash and Monero

One quick observation, on payback periods excluding power consumption:
  • The NVIDIA GTX 1080 8GB reference is about 4.5 months payback.
  • The NVIDIA GTX 1070 is around 3.75 months.
  • The NVIDIA GTX 1060 6GB payback is about 3.5 months given current pricing.
  • The NVIDIA GTX 1050 Ti 4GB has a payback of 3 months
If you compare Monero mining on the GTX 1080 and 1070 v. Zcash at current prices (May 12, 2017) Zcash earns about 3x per day. On the GTX 1060 6GB it is about 2x per day. The GTX 1070 looks awesome if you got a low-cost card like this.
 
Last edited:

Jeggs101

Well-Known Member
Dec 29, 2010
1,529
241
63
Hold up there cowboy. Does that mean zec is profitable on Nvidia? Monero on Nvidia sucks a fatty. That's the main reason I have bought a few RX cards. Scaling with Nvidia is terrible on Monero.
 
  • Like
Reactions: Joel

Patrick

Administrator
Staff member
Dec 21, 2010
12,511
5,792
113
@Jeggs101 I want something to run on the machine learning GPUs when idle. Someone told me Zcash works well. I also heard ETH may be good to look into.

Still, a GTX 1060 6GB card mining Zcash is earning the equivalent of 830H/s of Monero mining ($1.91/ day) at current prices.

Price wise here are the cheapest GTX 1060 and RX 580 cards on Amazon:
Similar gaming performance, similar pricing one gets CUDA, one does not.
 
  • Like
Reactions: gigatexal

Patrick

Administrator
Staff member
Dec 21, 2010
12,511
5,792
113
Working on adding 1070 8GB and 1050 Ti figures:

upload_2017-5-13_9-47-50.png

Added GTX 1070 and 1050 Ti to the mix.
 
Last edited:
  • Like
Reactions: Scalpel

MiniKnight

Well-Known Member
Mar 30, 2012
3,072
973
113
NYC
Maybe I'm dense but this means if I get a GTX 1070 it is the best gaming, AI and crypto mining card?
 

Patrick

Administrator
Staff member
Dec 21, 2010
12,511
5,792
113
@MiniKnight - that is somewhat accurate. The 1050 Ti is actually a better value but you give up gaming performance. On the other hand, the 1080 is better for just about everything. I do think if you wanted an all-around card, the 1070 if a good value so long as you are buying the lower-end cards.
 

Patrick

Administrator
Staff member
Dec 21, 2010
12,511
5,792
113
Tried an overclocked GTX 1080 (Gigabyte Gaming G1) today. It seems to be around 495 Sol/s. Voltages stock. 75C. There is some noise but not a ton. Payback due to the higher cost of the card is closer to 4.9 months.
 

sfrode

New Member
@Patrick - since you mentioned the G1 Gaming; here's my numbers with EBWF 0.3.3b:

Gigabyte 1080 G1 Gaming: 550 Sol/s @ 150w, +160 core, mem at 10 530 MHz
Gigabyte 1080 Windforce OC: 530 Sol/s @ 140w, +200 core, mem at 10 530 MHz
MSI 1080ti Gaming X 11G: 750 Sol/s @ 280w, +50 core, mem at 10 710 MHz

You can get the 1080ti to do approx 650 sol/s at 170-180w.

More numbers here: http://zcashbenchmarks.byethost16.com/
 
  • Like
Reactions: Patrick

Patrick

Administrator
Staff member
Dec 21, 2010
12,511
5,792
113
@sfrode much higher clocks than I am doing! Interesting though.how are you measuring power?

I need to get a 1080 Ti. I finally have a adversarial network training with Tensorflow that is looking good as a benchmark.
 

Patrick

Administrator
Staff member
Dec 21, 2010
12,511
5,792
113
@sfrode that is fairly awesome thanks! I updated the docker containers to have that.

GTX 1080 -> GTX 1070 -> GTX 1060 6GB -> GTX 1050 Ti
upload_2017-5-14_8-27-27.png

I pushed the GTX 1080 G1 Gaming to +152 clock and +402 mem at stock voltages and it is now about 198-202w 524 Sol/s and efficiency of 2.68 Sol/W.

That overclock makes it breakeven power wise at $0.73 per KWH.
 

Patrick

Administrator
Staff member
Dec 21, 2010
12,511
5,792
113
@Jeggs101 Yes. Very easy actually.

BTW @sfrode check out the EVGA Gaming (cheaper version of the reference design) that was $435-439 last week.

Code:
GPU0: 489 Sol/s
Total speed: 489 Sol/s
+-----+-------------+--------------+
| GPU | Power usage |  Efficiency   |
+-----+-------------+--------------+
|  0  |    158W     |  3.09 Sol/W  |
+-----+-------------+--------------+
Here is the calculator: Mining Calculator Bitcoin, Ethereum, Litecoin, Dash and Monero

$86/ month in earnings (excluding power.) Not bad actually.
 

Marsh

Moderator
May 12, 2013
2,642
1,496
113
I am wondering, since mining Zcash is more profitable than XMR.
Is there a reason to stay with Monero at this time?
 

Klee

Well-Known Member
Jun 2, 2016
1,289
396
83
I am wondering, since mining Zcash is more profitable than XMR.
Is there a reason to stay with Monero at this time?

I feel Zcash is for the short term and Monero is for the long term.
 

Patrick

Administrator
Staff member
Dec 21, 2010
12,511
5,792
113
Zcash is still much smaller and for AMD the profits are about the same. NVIDIA is much better on Zcash.

Personally, I want to diversify a bit more. I still have about 0.002% of outstanding XMR.

The reason I started looking at Zcash is that it works well even on larger NVIDIA GPUs. Since I wanted NVIDIA for ML workloads, that influenced me. Using fewer larger GPUs also helps require fewer PCIe slots.

I do want to try ETH as well.
 

Patrick

Administrator
Staff member
Dec 21, 2010
12,511
5,792
113
Added the ability to limit temperature and change the dev fee from 2%.
 

Patrick

Administrator
Staff member
Dec 21, 2010
12,511
5,792
113
Just as a heads-up, the EWBF miner is Pascal optimized. Maxwell runs Monero better than Zcash. Lower power consumption and more earnings/ day.
 

Klee

Well-Known Member
Jun 2, 2016
1,289
396
83
Just as a heads-up, the EWBF miner is Pascal optimized. Maxwell runs Monero better than Zcash. Lower power consumption and more earnings/ day.
I was not super impressed with mining Monero on a GTX 970.