SlideShare une entreprise Scribd logo
1  sur  37
Télécharger pour lire hors ligne
Ether Mining 101
Conor Svensson
@conors10
What
• Ether is the fuel of Ethereum
• Pays for smart contract execution in the
Ethereum Virtual Machine (EVM)
• Also a stand alone crypto currency (Gemini
recently licensed for trading it by NY regulators)
Why?
• Speculation
• Where will Ether be in a year?
• Fun
• Combines DIY, computer hardware assembly,
operating system installation/management,
scripting + Ethereum
Price Performance
• Highly Volatile (68–95–99.7 rule)
• Annualised standard deviation (volatility)
119.63%
• ASX volatility during this period 21.95%
USD/ETH Price History
How does it work?
• Miners continually trying to verify blocks for the blockchain
• 5 ether reward for each solution
• Based on Cryptographic hash function
hash(<block>) =>
a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82
d80a4b80f8434a
• Miners applying hash function millions (mega) of times/sec = MH/s
• Single GPU generates 5-30 MH/s
• CPU ~ 0.25 MH/s
Ethash Algorithm
• Ethash Proof of Work algorithm (formerly Dagger
Hashimoto)
• SHA3-256 variant hashing function
• Memory-hard computation
• Memory-easy validation
• Can’t use ASICs (Application Specific Integrated Circuits)
• Uses 4GB directed acyclic graph file (DAG) regenerated
every 30000 blocks by miner
Proof of Work Difficulty
• Hashing blocks
• Difficulty - dynamically adjusts parameter defined originally in genesis block
(one block produced every 12s)
• Started at 0x400000000 (0.017 TH)
• Now at 0x3205AF767000 (55 TH)
• Simplified example:
nonce = random int
while hashimoto(block, nonce) * difficulty > threshold
increment nonce
return nonce
Fetches bytes from DAG +
combine with block
Returns SHA3-256 hash
Solution
Genesis Block
{
"nonce": "0x0000000000000042",
"timestamp": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x0",
"gasLimit": "0x8000000",
"difficulty": "0x400000000",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x3333333333333333333333333333333333333333",
"alloc": {
}
}
Set to a low value in test networks
Getting Started…
Profitability
Ether mined * ETH price
-
(Hardware + software + power + hosting + your
time)
= Profit
Hardware
Parts:
• 4-6 x GPUs - Radeon series (better OpenCL support), avoid Nvidia
• Motherboard - lots of PCIe slots
• PCI Risers (try fitting > 2 GPUs on a single board)
• Decent power supply ~ 1000W for 3 GPUs
• Cheap CPU
• 4-8GB RAM
• Power switch - to avoid this
Motherboard
PCIe slots
(ASRock H81 Pro BTC)
Risers
Motherboards can only hold 1-2 GPU cards
Case
• Build or buy?
• Considerations
• Budget
• How comfortable are you with DIY?
Case - Wood*
Cost ~$25 AUD
* Combusts at ~300°C
Case - Wood & Metal
Cost ~$50 AUD
Or even milk crates…
Case - Buy
$200 USD from GPU Shack
Software - OS
• Linux
• Ubuntu 14/15 with fglx AMD GPU driver
• Avoid Ubuntu 16 (http://www.omgubuntu.co.uk/
2016/03/ubuntu-drops-amd-catalyst-fglrx-driver-16-04)
• Windows
• EthOS ($40 USD)
• Ether mining Linux OS from GPU Shack
Software - Ethereum
• Geth/Eth
• Run full Ethereum node
• Or
• Connect to a mining pool (see next slide)
• ethminer
• C++ mining client
• Connects to Geth/eth
Mining Pools
• Block reward is 5 ether
• For small rigs => long wait (weeks)
• Steady stream of income (pool splits block reward between
contributing members)
• ~1% fee of all ether mined
• Provide UI for monitoring workers
• Usually go via a proxy (eth-proxy/qtMiner)
• Provides automatic failover in event of pool failure
Begin Mining
• Start proxy:
$ python eth-proxy.py
• Start the miner
$ ethminer --farm-recheck 200 -G -F http://
127.0.0.1:8080/<node-name>
Mining
Hashrate
Submit proof of work
http://ethermine.org/
Other Considerations
Power is Expensive in
Australia
Source:
https://www.ovoenergy.com/
guides/energy-guides/
average-electricity-prices-
kwh.html
Power
How much are you paying per kWh?
• Australian plans often have an advertised rate
cap - e.g. quarterly cap of 4000 kWh
• 1 x 1000W PSU (3-4 GPU rig) running 24/7:
1 * 24 * 30 = 720 kWh per month
Power Meters
Measures:
• Current
consumption (W)
• Consumption used
(kWh)
Costs ~$30
Managing Failure
Multiple points of rig failure
• Hardware - GPU x 4-6, risers x 2-5,
motherboard PCI slots => lots of variables
• Software - problematic device drivers
• Time consuming trial and error to isolate
issues - e.g. jumper cables required on some
model PCIe slots
Monitoring
Various components:
• Node or Pool connectivity
• ethminer
• it occasionally falls over
• GPU temperature
• On Linux requires X Server to be running
• CPU temperature
• OS crash
Monitoring
• You’ll need to write various scripts (or use
EthOS)
• Take action
• Send alerts - email/SMS
• Restart component
• Power off rig
What about the cloud?
You’ll need lots of AWS credit…
AWS Spot Instances
• g2.8xlarge instance contains 4 x Nvidia GPUs
• Hashrate of 24 MH/s
• 0.0077 Ether/hour ~ $0.10 USD/hour
• Low spot instance price $2.66 USD/hour
Proof of Stake
• Nodes with greater stake (e.g. total # of ether,
duration of holdings) more likely to generate
valid block
• No longer possible to profitably mine ether (if it
ever was…)
• Expected early 2017
Location
• Do you have space?
• Make sure you get partner/spouse approval…
Thanks
conor10@gmail.com
@conors10
Resources
• Mining algorithm
• https://github.com/ethereum/wiki/blob/master/Dagger-Hashimoto.md
• https://github.com/ethereum/wiki/wiki/Ethash
• Costs
• http://etherchain.org/api/statistics/price - Ether price history
• https://etherscan.io/ether-mining-calculator - Mining calculator
• Parts
• Ebay
• http://gpushack.com/collections/gpushack - ready made rigs (US based)
• Pools
• https://github.com/Atrides/eth-proxy
• http://ethpool.org/
• Rig building
• https://www.youtube.com/watch?v=Jnp9Ka8WVpA - metal/wood rig

Contenu connexe

Tendances

Painless ruby deployment on shelly cloud
Painless ruby deployment on shelly cloudPainless ruby deployment on shelly cloud
Painless ruby deployment on shelly cloudGiedrius Rimkus
 
Node.js - A practical introduction (v2)
Node.js  - A practical introduction (v2)Node.js  - A practical introduction (v2)
Node.js - A practical introduction (v2)Felix Geisendörfer
 
Nodejs a-practical-introduction-oredev
Nodejs a-practical-introduction-oredevNodejs a-practical-introduction-oredev
Nodejs a-practical-introduction-oredevFelix Geisendörfer
 
Scalable Socket Server by Aryo
Scalable Socket Server by AryoScalable Socket Server by Aryo
Scalable Socket Server by AryoAgate Studio
 
Nodejs - Should Ruby Developers Care?
Nodejs - Should Ruby Developers Care?Nodejs - Should Ruby Developers Care?
Nodejs - Should Ruby Developers Care?Felix Geisendörfer
 
VirtualBox networking explained
VirtualBox networking explainedVirtualBox networking explained
VirtualBox networking explainedMaarten Smeets
 
Blockchain Workshop - Software Freedom Day 2017
Blockchain Workshop - Software Freedom Day 2017Blockchain Workshop - Software Freedom Day 2017
Blockchain Workshop - Software Freedom Day 2017Zied GUESMI
 
Esx versions diff 3.5
Esx versions diff 3.5Esx versions diff 3.5
Esx versions diff 3.5Vasanth Reddy
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to RedisKnoldus Inc.
 
Disruptor 2015-12-22 @ java.il
Disruptor 2015-12-22 @ java.ilDisruptor 2015-12-22 @ java.il
Disruptor 2015-12-22 @ java.ilAmir Langer
 
Warp 10 Platform Presentation - Criteo Beer & Tech 2016-02-03
Warp 10 Platform Presentation - Criteo Beer & Tech 2016-02-03Warp 10 Platform Presentation - Criteo Beer & Tech 2016-02-03
Warp 10 Platform Presentation - Criteo Beer & Tech 2016-02-03Mathias Herberts
 
The steps to building a computer
The steps to building a computerThe steps to building a computer
The steps to building a computerjtmccollum
 
The steps to building a computer
The steps to building a computerThe steps to building a computer
The steps to building a computerjtmccollum
 
Scaling IO-bound microservices
Scaling IO-bound microservicesScaling IO-bound microservices
Scaling IO-bound microservicesSalo Shp
 
Deploying Percona XtraDB Cluster in Openshift
Deploying Percona XtraDB Cluster in OpenshiftDeploying Percona XtraDB Cluster in Openshift
Deploying Percona XtraDB Cluster in OpenshiftAlexander Rubin
 

Tendances (19)

Painless ruby deployment on shelly cloud
Painless ruby deployment on shelly cloudPainless ruby deployment on shelly cloud
Painless ruby deployment on shelly cloud
 
Node.js - A practical introduction (v2)
Node.js  - A practical introduction (v2)Node.js  - A practical introduction (v2)
Node.js - A practical introduction (v2)
 
Nodejs a-practical-introduction-oredev
Nodejs a-practical-introduction-oredevNodejs a-practical-introduction-oredev
Nodejs a-practical-introduction-oredev
 
Scalable Socket Server by Aryo
Scalable Socket Server by AryoScalable Socket Server by Aryo
Scalable Socket Server by Aryo
 
Nodejs - Should Ruby Developers Care?
Nodejs - Should Ruby Developers Care?Nodejs - Should Ruby Developers Care?
Nodejs - Should Ruby Developers Care?
 
VirtualBox networking explained
VirtualBox networking explainedVirtualBox networking explained
VirtualBox networking explained
 
Blockchain Workshop - Software Freedom Day 2017
Blockchain Workshop - Software Freedom Day 2017Blockchain Workshop - Software Freedom Day 2017
Blockchain Workshop - Software Freedom Day 2017
 
Docker Insight
Docker InsightDocker Insight
Docker Insight
 
Nodejs - A-quick-tour-v3
Nodejs - A-quick-tour-v3Nodejs - A-quick-tour-v3
Nodejs - A-quick-tour-v3
 
Kvm optimizations
Kvm optimizationsKvm optimizations
Kvm optimizations
 
Esx versions diff 3.5
Esx versions diff 3.5Esx versions diff 3.5
Esx versions diff 3.5
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to Redis
 
Disruptor 2015-12-22 @ java.il
Disruptor 2015-12-22 @ java.ilDisruptor 2015-12-22 @ java.il
Disruptor 2015-12-22 @ java.il
 
Warp 10 Platform Presentation - Criteo Beer & Tech 2016-02-03
Warp 10 Platform Presentation - Criteo Beer & Tech 2016-02-03Warp 10 Platform Presentation - Criteo Beer & Tech 2016-02-03
Warp 10 Platform Presentation - Criteo Beer & Tech 2016-02-03
 
The steps to building a computer
The steps to building a computerThe steps to building a computer
The steps to building a computer
 
The steps to building a computer
The steps to building a computerThe steps to building a computer
The steps to building a computer
 
Scaling IO-bound microservices
Scaling IO-bound microservicesScaling IO-bound microservices
Scaling IO-bound microservices
 
Nodejs - A quick tour (v5)
Nodejs - A quick tour (v5)Nodejs - A quick tour (v5)
Nodejs - A quick tour (v5)
 
Deploying Percona XtraDB Cluster in Openshift
Deploying Percona XtraDB Cluster in OpenshiftDeploying Percona XtraDB Cluster in Openshift
Deploying Percona XtraDB Cluster in Openshift
 

Similaire à Ether Mining 101

Introduction to Parallel Distributed Computer Systems
Introduction to Parallel Distributed Computer SystemsIntroduction to Parallel Distributed Computer Systems
Introduction to Parallel Distributed Computer SystemsMrMaKKaWi
 
Exadata_X10M-Hardware-Overview.pdf
Exadata_X10M-Hardware-Overview.pdfExadata_X10M-Hardware-Overview.pdf
Exadata_X10M-Hardware-Overview.pdfKoko842772
 
The Power of HPC with Next Generation Supermicro Systems
The Power of HPC with Next Generation Supermicro Systems The Power of HPC with Next Generation Supermicro Systems
The Power of HPC with Next Generation Supermicro Systems Rebekah Rodriguez
 
Servers Technologies and Enterprise Data Center Trends 2014 - Thailand
Servers Technologies and Enterprise Data Center Trends 2014 - ThailandServers Technologies and Enterprise Data Center Trends 2014 - Thailand
Servers Technologies and Enterprise Data Center Trends 2014 - ThailandAruj Thirawat
 
AWS Summit Bogotá Track Avanzado: EC2 avanzado
AWS Summit Bogotá Track Avanzado: EC2 avanzadoAWS Summit Bogotá Track Avanzado: EC2 avanzado
AWS Summit Bogotá Track Avanzado: EC2 avanzadoAmazon Web Services
 
Where Did My Cpu Go?
Where Did My Cpu Go?Where Did My Cpu Go?
Where Did My Cpu Go?Enkitec
 
Building a robot with the .Net Micro Framework
Building a robot with the .Net Micro FrameworkBuilding a robot with the .Net Micro Framework
Building a robot with the .Net Micro FrameworkDucas Francis
 
Nick Fisk - low latency Ceph
Nick Fisk - low latency CephNick Fisk - low latency Ceph
Nick Fisk - low latency CephShapeBlue
 
Как построить видеоплатформу на 200 Гбитс / Ольховченков Вячеслав (Integros)
Как построить видеоплатформу на 200 Гбитс / Ольховченков Вячеслав (Integros)Как построить видеоплатформу на 200 Гбитс / Ольховченков Вячеслав (Integros)
Как построить видеоплатформу на 200 Гбитс / Ольховченков Вячеслав (Integros)Ontico
 
Building an ethereum miner workshop
Building an ethereum miner workshopBuilding an ethereum miner workshop
Building an ethereum miner workshopJose Hernandez
 
HD5870 Matrix Factory
HD5870 Matrix FactoryHD5870 Matrix Factory
HD5870 Matrix FactoryJawedAshraf
 
OOW 2013: Where did my CPU go
OOW 2013: Where did my CPU goOOW 2013: Where did my CPU go
OOW 2013: Where did my CPU goKristofferson A
 
MemVerge: Memory Expansion Without Breaking the Budget
MemVerge: Memory Expansion Without Breaking the BudgetMemVerge: Memory Expansion Without Breaking the Budget
MemVerge: Memory Expansion Without Breaking the BudgetMemory Fabric Forum
 
RedGateWebinar - Where did my CPU go?
RedGateWebinar - Where did my CPU go?RedGateWebinar - Where did my CPU go?
RedGateWebinar - Where did my CPU go?Kristofferson A
 
Red Hat Storage Day Seattle: Supermicro Solutions for Red Hat Ceph and Red Ha...
Red Hat Storage Day Seattle: Supermicro Solutions for Red Hat Ceph and Red Ha...Red Hat Storage Day Seattle: Supermicro Solutions for Red Hat Ceph and Red Ha...
Red Hat Storage Day Seattle: Supermicro Solutions for Red Hat Ceph and Red Ha...Red_Hat_Storage
 
Modern network servers
Modern network serversModern network servers
Modern network serversAPNIC
 

Similaire à Ether Mining 101 (20)

Ether mining 101 v2
Ether mining 101 v2Ether mining 101 v2
Ether mining 101 v2
 
Introduction to Parallel Distributed Computer Systems
Introduction to Parallel Distributed Computer SystemsIntroduction to Parallel Distributed Computer Systems
Introduction to Parallel Distributed Computer Systems
 
Exadata_X10M-Hardware-Overview.pdf
Exadata_X10M-Hardware-Overview.pdfExadata_X10M-Hardware-Overview.pdf
Exadata_X10M-Hardware-Overview.pdf
 
Programming Models for Heterogeneous Chips
Programming Models for  Heterogeneous ChipsProgramming Models for  Heterogeneous Chips
Programming Models for Heterogeneous Chips
 
The Power of HPC with Next Generation Supermicro Systems
The Power of HPC with Next Generation Supermicro Systems The Power of HPC with Next Generation Supermicro Systems
The Power of HPC with Next Generation Supermicro Systems
 
Servers Technologies and Enterprise Data Center Trends 2014 - Thailand
Servers Technologies and Enterprise Data Center Trends 2014 - ThailandServers Technologies and Enterprise Data Center Trends 2014 - Thailand
Servers Technologies and Enterprise Data Center Trends 2014 - Thailand
 
AWS Summit Bogotá Track Avanzado: EC2 avanzado
AWS Summit Bogotá Track Avanzado: EC2 avanzadoAWS Summit Bogotá Track Avanzado: EC2 avanzado
AWS Summit Bogotá Track Avanzado: EC2 avanzado
 
Where Did My Cpu Go?
Where Did My Cpu Go?Where Did My Cpu Go?
Where Did My Cpu Go?
 
Building a robot with the .Net Micro Framework
Building a robot with the .Net Micro FrameworkBuilding a robot with the .Net Micro Framework
Building a robot with the .Net Micro Framework
 
Nick Fisk - low latency Ceph
Nick Fisk - low latency CephNick Fisk - low latency Ceph
Nick Fisk - low latency Ceph
 
Как построить видеоплатформу на 200 Гбитс / Ольховченков Вячеслав (Integros)
Как построить видеоплатформу на 200 Гбитс / Ольховченков Вячеслав (Integros)Как построить видеоплатформу на 200 Гбитс / Ольховченков Вячеслав (Integros)
Как построить видеоплатформу на 200 Гбитс / Ольховченков Вячеслав (Integros)
 
Building an ethereum miner workshop
Building an ethereum miner workshopBuilding an ethereum miner workshop
Building an ethereum miner workshop
 
Presentation1
Presentation1Presentation1
Presentation1
 
HD5870 Matrix Factory
HD5870 Matrix FactoryHD5870 Matrix Factory
HD5870 Matrix Factory
 
OOW 2013: Where did my CPU go
OOW 2013: Where did my CPU goOOW 2013: Where did my CPU go
OOW 2013: Where did my CPU go
 
MemVerge: Memory Expansion Without Breaking the Budget
MemVerge: Memory Expansion Without Breaking the BudgetMemVerge: Memory Expansion Without Breaking the Budget
MemVerge: Memory Expansion Without Breaking the Budget
 
RedGateWebinar - Where did my CPU go?
RedGateWebinar - Where did my CPU go?RedGateWebinar - Where did my CPU go?
RedGateWebinar - Where did my CPU go?
 
Red Hat Storage Day Seattle: Supermicro Solutions for Red Hat Ceph and Red Ha...
Red Hat Storage Day Seattle: Supermicro Solutions for Red Hat Ceph and Red Ha...Red Hat Storage Day Seattle: Supermicro Solutions for Red Hat Ceph and Red Ha...
Red Hat Storage Day Seattle: Supermicro Solutions for Red Hat Ceph and Red Ha...
 
GPU for DL
GPU for DLGPU for DL
GPU for DL
 
Modern network servers
Modern network serversModern network servers
Modern network servers
 

Plus de Conor Svensson

Building Java and Android apps on the blockchain
Building Java and Android apps on the blockchain Building Java and Android apps on the blockchain
Building Java and Android apps on the blockchain Conor Svensson
 
Blockchain - Navigating this Game-Changing Technology
Blockchain - Navigating this Game-Changing TechnologyBlockchain - Navigating this Game-Changing Technology
Blockchain - Navigating this Game-Changing TechnologyConor Svensson
 
Java and the blockchain - introducing web3j
Java and the blockchain - introducing web3jJava and the blockchain - introducing web3j
Java and the blockchain - introducing web3jConor Svensson
 
Cloud Native Microservices with Spring Cloud
Cloud Native Microservices with Spring CloudCloud Native Microservices with Spring Cloud
Cloud Native Microservices with Spring CloudConor Svensson
 
Cloud Native Microservices with Spring Cloud
Cloud Native Microservices with Spring CloudCloud Native Microservices with Spring Cloud
Cloud Native Microservices with Spring CloudConor Svensson
 
Java Microservices with Netflix OSS & Spring
Java Microservices with Netflix OSS & Spring Java Microservices with Netflix OSS & Spring
Java Microservices with Netflix OSS & Spring Conor Svensson
 

Plus de Conor Svensson (10)

web3j Overview
web3j Overviewweb3j Overview
web3j Overview
 
Building Java and Android apps on the blockchain
Building Java and Android apps on the blockchain Building Java and Android apps on the blockchain
Building Java and Android apps on the blockchain
 
Web3j 2.0 Update
Web3j 2.0 UpdateWeb3j 2.0 Update
Web3j 2.0 Update
 
Blockchain - Navigating this Game-Changing Technology
Blockchain - Navigating this Game-Changing TechnologyBlockchain - Navigating this Game-Changing Technology
Blockchain - Navigating this Game-Changing Technology
 
web3j 1.0 update
web3j 1.0 updateweb3j 1.0 update
web3j 1.0 update
 
Java and the blockchain - introducing web3j
Java and the blockchain - introducing web3jJava and the blockchain - introducing web3j
Java and the blockchain - introducing web3j
 
web3j overview
web3j overviewweb3j overview
web3j overview
 
Cloud Native Microservices with Spring Cloud
Cloud Native Microservices with Spring CloudCloud Native Microservices with Spring Cloud
Cloud Native Microservices with Spring Cloud
 
Cloud Native Microservices with Spring Cloud
Cloud Native Microservices with Spring CloudCloud Native Microservices with Spring Cloud
Cloud Native Microservices with Spring Cloud
 
Java Microservices with Netflix OSS & Spring
Java Microservices with Netflix OSS & Spring Java Microservices with Netflix OSS & Spring
Java Microservices with Netflix OSS & Spring
 

Dernier

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Dernier (20)

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

Ether Mining 101

  • 1. Ether Mining 101 Conor Svensson @conors10
  • 2. What • Ether is the fuel of Ethereum • Pays for smart contract execution in the Ethereum Virtual Machine (EVM) • Also a stand alone crypto currency (Gemini recently licensed for trading it by NY regulators)
  • 3. Why? • Speculation • Where will Ether be in a year? • Fun • Combines DIY, computer hardware assembly, operating system installation/management, scripting + Ethereum
  • 4. Price Performance • Highly Volatile (68–95–99.7 rule) • Annualised standard deviation (volatility) 119.63% • ASX volatility during this period 21.95%
  • 6. How does it work? • Miners continually trying to verify blocks for the blockchain • 5 ether reward for each solution • Based on Cryptographic hash function hash(<block>) => a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82 d80a4b80f8434a • Miners applying hash function millions (mega) of times/sec = MH/s • Single GPU generates 5-30 MH/s • CPU ~ 0.25 MH/s
  • 7. Ethash Algorithm • Ethash Proof of Work algorithm (formerly Dagger Hashimoto) • SHA3-256 variant hashing function • Memory-hard computation • Memory-easy validation • Can’t use ASICs (Application Specific Integrated Circuits) • Uses 4GB directed acyclic graph file (DAG) regenerated every 30000 blocks by miner
  • 8. Proof of Work Difficulty • Hashing blocks • Difficulty - dynamically adjusts parameter defined originally in genesis block (one block produced every 12s) • Started at 0x400000000 (0.017 TH) • Now at 0x3205AF767000 (55 TH) • Simplified example: nonce = random int while hashimoto(block, nonce) * difficulty > threshold increment nonce return nonce Fetches bytes from DAG + combine with block Returns SHA3-256 hash Solution
  • 9. Genesis Block { "nonce": "0x0000000000000042", "timestamp": "0x0", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "extraData": "0x0", "gasLimit": "0x8000000", "difficulty": "0x400000000", "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x3333333333333333333333333333333333333333", "alloc": { } } Set to a low value in test networks
  • 11. Profitability Ether mined * ETH price - (Hardware + software + power + hosting + your time) = Profit
  • 12. Hardware Parts: • 4-6 x GPUs - Radeon series (better OpenCL support), avoid Nvidia • Motherboard - lots of PCIe slots • PCI Risers (try fitting > 2 GPUs on a single board) • Decent power supply ~ 1000W for 3 GPUs • Cheap CPU • 4-8GB RAM • Power switch - to avoid this
  • 14. Risers Motherboards can only hold 1-2 GPU cards
  • 15. Case • Build or buy? • Considerations • Budget • How comfortable are you with DIY?
  • 16. Case - Wood* Cost ~$25 AUD * Combusts at ~300°C
  • 17. Case - Wood & Metal Cost ~$50 AUD
  • 18. Or even milk crates…
  • 19. Case - Buy $200 USD from GPU Shack
  • 20. Software - OS • Linux • Ubuntu 14/15 with fglx AMD GPU driver • Avoid Ubuntu 16 (http://www.omgubuntu.co.uk/ 2016/03/ubuntu-drops-amd-catalyst-fglrx-driver-16-04) • Windows • EthOS ($40 USD) • Ether mining Linux OS from GPU Shack
  • 21. Software - Ethereum • Geth/Eth • Run full Ethereum node • Or • Connect to a mining pool (see next slide) • ethminer • C++ mining client • Connects to Geth/eth
  • 22. Mining Pools • Block reward is 5 ether • For small rigs => long wait (weeks) • Steady stream of income (pool splits block reward between contributing members) • ~1% fee of all ether mined • Provide UI for monitoring workers • Usually go via a proxy (eth-proxy/qtMiner) • Provides automatic failover in event of pool failure
  • 23. Begin Mining • Start proxy: $ python eth-proxy.py • Start the miner $ ethminer --farm-recheck 200 -G -F http:// 127.0.0.1:8080/<node-name>
  • 27. Power is Expensive in Australia Source: https://www.ovoenergy.com/ guides/energy-guides/ average-electricity-prices- kwh.html
  • 28. Power How much are you paying per kWh? • Australian plans often have an advertised rate cap - e.g. quarterly cap of 4000 kWh • 1 x 1000W PSU (3-4 GPU rig) running 24/7: 1 * 24 * 30 = 720 kWh per month
  • 29. Power Meters Measures: • Current consumption (W) • Consumption used (kWh) Costs ~$30
  • 30. Managing Failure Multiple points of rig failure • Hardware - GPU x 4-6, risers x 2-5, motherboard PCI slots => lots of variables • Software - problematic device drivers • Time consuming trial and error to isolate issues - e.g. jumper cables required on some model PCIe slots
  • 31. Monitoring Various components: • Node or Pool connectivity • ethminer • it occasionally falls over • GPU temperature • On Linux requires X Server to be running • CPU temperature • OS crash
  • 32. Monitoring • You’ll need to write various scripts (or use EthOS) • Take action • Send alerts - email/SMS • Restart component • Power off rig
  • 33. What about the cloud? You’ll need lots of AWS credit… AWS Spot Instances • g2.8xlarge instance contains 4 x Nvidia GPUs • Hashrate of 24 MH/s • 0.0077 Ether/hour ~ $0.10 USD/hour • Low spot instance price $2.66 USD/hour
  • 34. Proof of Stake • Nodes with greater stake (e.g. total # of ether, duration of holdings) more likely to generate valid block • No longer possible to profitably mine ether (if it ever was…) • Expected early 2017
  • 35. Location • Do you have space? • Make sure you get partner/spouse approval…
  • 37. Resources • Mining algorithm • https://github.com/ethereum/wiki/blob/master/Dagger-Hashimoto.md • https://github.com/ethereum/wiki/wiki/Ethash • Costs • http://etherchain.org/api/statistics/price - Ether price history • https://etherscan.io/ether-mining-calculator - Mining calculator • Parts • Ebay • http://gpushack.com/collections/gpushack - ready made rigs (US based) • Pools • https://github.com/Atrides/eth-proxy • http://ethpool.org/ • Rig building • https://www.youtube.com/watch?v=Jnp9Ka8WVpA - metal/wood rig