- What Is GPU Mining?
- Table of Contents
- What Is GPU Crypto Mining?
- NVIDIA GeForce GTX 1070: The Most Popular Cryptocurrency Mining GPU
- How Does GPU Mining Work?
- The Sha-256 Hash Function
- GPU Mining Algorithms
- SHA-256 Algorithm:
- Scrypt Algorithm:
- X11 Algorithm:
- Ethash Algorithm:
- GPU Mining Software
- Claymore Miner
- WildRig Multi Miner
- KawPoW Miner
- What to Mine With GPUs
- Best Crypto to Mine With GPU
- Grin (GRIN)
- Bitcoin Gold (BTG)
- Litecoin (LTC)
- Why a GPU mines faster than a CPU
- Contents
- Short Answer
- A CPU is an executive
- A GPU is a laborer
- Analogy
- Why are AMD GPUs faster than Nvidia GPUs?
- NVIDIA Releases NEW Generations of GPU Cards
What Is GPU Mining?
You can mine cryptocurrencies in many different ways, with many different types of hardware — here, we go into the specifics of GPU mining.
Table of Contents
Crypto mining or “cryptomining,” as some call it, is a very popular topic in the crypto space today. However, mining is nothing new — it has obviously been around since Bitcoin was first launched in 2009, because mining is how new Bitcoin are made!
Crypto mining involves solving complex cryptographic equations through the use of computers to get cryptocurrencies as a reward. The computer resource used in solving these complex cryptographic equations determines the type of mining.
The most basic form of crypto mining involves mining with the computing power of an application-specific integrated circuit (ASIC), a central processing unit (CPU). However, today, it is also possible to mine cryptocurrencies with a GPU or graphics processing unit.
What Is GPU Crypto Mining?
GPU mining involves the use of a gaming computer’s graphics processing unit to solve complex math problems to verify electronic transactions on a blockchain.
Normally, to mine a cryptocurrency, digital coins must be built on a blockchain architecture that supports proof-of-work (PoW) mining. Cryptocurrencies like Bitcoin (BTC), Ethereum (ETH), Monero (XMR), Litecoin (LTC) and Dogecoin (DOGE) are examples of coins that can be mined.
NVIDIA GeForce GTX 1070: The Most Popular Cryptocurrency Mining GPU
While there are a lot of different graphics cards in the markets, the cards used for crypto mining are those specially designed for gaming, not for video rendering. Shares in GPU manufacturing companies like NVIDIA and AMD have skyrocketed as miners look to earn cryptos with their computing powers. The NVIDIA GeForce GTX 1070 is one of the most popular mining rigs, when considering both its electricity usage, although there are other models out there if you do your own research into will can work for you.
While it used to be possible mine Bitcoin and other cryptocurrencies at home with your laptop, that’s no longer an option for most cryptos due to the rising interest in mining, along with the Bitcoin reward halvings. Most mining operations, including the use of graphics cards and specialized mining rigs, are now conducted in shared pools, where participants combine their computing powers into a big group to generate results more quickly. Rewards are handed out to miners after a block of the currency has been mined.
All the participants in a shared pool get a share in the profits based on how much computing power they contributed. In this way, individual computers represent workers in a mine getting paid for searching for the treasure, the block reward.
How Does GPU Mining Work?
GPU mining became a hot topic in 2017 after Bitcoin zapped past its previous highs to peak at just under $20,000 (a little less than half of what it would later reach in January 2021!). Since then, individuals from around the world have sought the best GPUs to get their share of crypto block rewards.
The complex maths functions solved by computers are usually SHA-256 hash functions. In mining, the computer takes the SHA-256 — an encrypted mathematical algorithm — and turn it into an output. The output is always a 256-bit number.
The Sha-256 Hash Function
Encrypted in the SHA-256 problems solved by computers are details of electronic payments and algorithms necessary to secure a blockchain network from attackers wishing to «double-spend.» For partaking in the security of the blockchain network, miners are rewarded with crypto coins.
When the computational problem is solved by the mining card, the product is a seemingly-random 64 character output called a hash. On the Bitcoin network, miners have to find a hash that starts with approximately seventeen zeroes. To get this number, a computer has to try multiple times.
Once the hash is found, the block is closed, and the miner/pool of miners are rewarded with newly-created Bitcoin and transaction fees. On any blockchain, the hash rate is the speed at which a miner arrives and finds a hash. The hash rate is measured in giga hashes (GH/s).
GPU Mining Algorithms
Just as there are different cryptocurrencies built on different blockchains, there are different types of cryptocurrency mining algorithms available. The hash (the product of mining) differs on the different types of blockchain.
A hashing algorithm is a cryptographic hash function that maps data of any random size to a hash of a fixed size. These mathematical functions condense data to a fixed size. Because they are smaller, it is more convenient for a computer to compute hashes and solve the problems in the files or data string.
The hashing algorithms available that support GPU mining are the following.
SHA-256 Algorithm:
SHA-256, also known as cryptographic hash algorithm, is a cryptographic function. SHA-256 algorithms function on a 512-bit message block and a 256-bit intermediate hash value. The hash rate for the SHA-256 algorithm is measured in gigahashes (GH/s).
The product of mining a SHA-256 algorithm is a 32-byte (256-bit) signature for text strings. The block time varies between 6 to 10 minutes. Bitcoin (BTC), Bitcoin Cash (BCH), Terracoin (TRC) and Peercoin (PPC) are based on the SHA-256 algorithm.
Scrypt Algorithm:
The Scrypt hash function is used by Litecoin (LTC) as an alternative to the more power-hungry SHA-256 algorithm. Solving the Scrypt algorithm is a lot faster than the SHA-256 algorithm. The hash rate of the Scrypt algorithm is measured in kilohashes (KH/s).
Scrypt runs on password-based key functions, which were created for the Tarsnap online backup service by Colin Percival. This algorithm creates many pseudorandom numbers for storing in RAM locations, which makes it almost impossible for large-scale hardware attacks to be performed on a network.
Scrypt was first implemented in cryptocurrency by an anonymous programmer called ArtForz in Tenebrix, then Fairbrix and Litecoin shortly after.
The block generation time of the Scrypt function is 2.5 minutes for many cryptocurrencies. As a result, they can be performed on the GPUs of computers. Dogecoin (DOGE), Latium (LAT) and Bitmark (BTM) are some other cryptocurrencies based on the Scrypt algorithm.В
X11 Algorithm:
This is the most energy-efficient mining algorithm for GPUs. With the X11 Algorithm, the GPUs can run on 30% less wattage. Proof-of-work blockchains that implement this algorithm run on a sequence of eleven hashing algorithms.В
This algorithm was implemented in the Darkcoin protocol (later renamed to Dash)В in 2014, specifically made by Evan Duffield to be resistant to ASIC mining.
The hash rate of the X11 Algorithm is measured in megahashes (MH/s). Some of the cryptocurrencies that use the X11 algorithm are Dash (DASH), StartCoin (START), CannabisCoin (CANN) and XCurrency (XC).
Ethash Algorithm:
The most well-known cryptocurrency to implement the Ethash Algorithm is Ethereum (ETH), the crypto for which this algorithm was initially created. DaggerHashimoto was the name of the first version of the Ethash algorithm, designed by Vitalik Buterin and the Ethereum team to be ASIC-resistant.
DaggerHashimoto is a combination of two other algorithms. The first, the Dagger algorithm, was built as an alternative for memory-intensive algorithms like Scrypt. However, Dagger is susceptible to pressure in shared memory hardware acceleration. The Hashimoto algorithm was designed to attain ASIC resistance by being IO-bound.
The hash rate for the DaggerHashimoto algorithm is measured in megahashes (MH/s). The popular cryptocurrencies that are based on it include Ethereum, Ethereum Classic and Expanse.
GPU Mining Software
GPU hardware is only one part of the equation in mining. To get the most out of a GPU, you would require a mining software equally as good and optimized to produce the best results.В
Some of the best mining software available for GPUs are the following.
Claymore Miner
Claymore miner was one of the most efficient Ethash GPU miners, but when Ethereum hit DAG epoch 384, it no longer worked, as it did not support past epoch 385. The DaggerHashimoto algorithm increases the DAG file every 30,000 blocks, which makes up one epoch — this increase then increases the GPU memory requirements needed for mining.
Claymore software is built with a dual Ethereum miner for mining cryptocurrencies with a similar algorithm without compromising on the hash rate.
Claymore was also famous for constantly rolling out new updates and being well- optimized. Claymore’s Dual Ethereum v15.0 is available for AMD and NVIDIA-based GPU miners. Although specially designed for Ethash, Claymore works excellently with other similar mining algorithms, but it’s unclear if it will still work for Ethereum after epoch 384 at this time (February 2021).
WildRig Multi Miner
The WildRig Multi Miner software for GPU mining supports more than 30 different algorithms. WildRig Multi focuses on modern AMD GPUs and is supported on both Linux and Windows systems. The developer fee on the network is set to 2 percent.
KawPoW Miner
KawPow is very popular among miners because of its support for any type of mining pool. The major drawback of this mining software is its lack of compatibility for AMD GPU devices. The Kawpow Miner 1.2.3 is the latest version of this all-purpose mining software as of February 2021.
What to Mine With GPUs
Choosing a cryptocurrency to mine with GPUs is one of the major problems new miners face. In making the decision, one of the most frequently asked questions has been how much one can make from mining cryptocurrencies with GPUs.
To start, the project must be built on a blockchain architecture that supports proof-of-work (PoW) before it can be mined with GPUs. Also, different factors affect how much rewards one can make from GPU, including the block rewards.
The block reward is the amount of crypto given to a miner/pool of miners for completing a block of cryptographic equations on a blockchain.В
For example, when Bitcoin launched in 2009, mining one block would earn you 50 BTC. However, in 2012, the block reward was halved to 25 BTC. By 2016, this was halved again to 12.5 BTC. Finally, in May 2020, the reward halved again to 6.25 BTC.
The best cryptos to mine are those that give rewards that can cover the electricity charges used in mining and the cost of the mining device/rigs.
Best Crypto to Mine With GPU
Some of the best cryptos to mine with GPU in 2021 are the following.
Grin (GRIN)
Grin is a relatively new cryptocurrency with high block rewards. Although the complexity of mining changes dynamically on the Grin network, mining is relatively easy and the project offers unlimited coins — a joy for miners. 60 GRIN is rewarded per block mined. A grin coin currently trades at $0.34 as of Feb. 1, 2021.
Bitcoin Gold (BTG)
This is one of the few cryptocurrencies created specifically for GPU mining. The architecture is perfectly optimized to support GPU mining. It is also one of the few non-stablecoin cryptos that have a relatively stable price.
Bitcoin Gold implements the Zhash hashing function and offers 12.5 BTG for a mined block. A BTG currently trades at $10.65 as of Feb. 1, 2021.
Litecoin (LTC)
Litecoin was one of the first users of the Scrypt protocol, meaning the network is best suited for GPU mining. Litecoin can be mined without an ASIC because it uses the SCRYPT protocol. The network also provides high-speed transactions with low fees.
Completing a block earns you a 12.5 LTC. Litecoin is currently valued at $132 as of Feb. 1, 2021.
Now that you’ve learned how to mine with GPUs, check out upcoming guide into mining with ASICs.
This article contains links to third-party websites or other content for information purposes only (“Third-Party Sites”). The Third-Party Sites are not under the control of CoinMarketCap, and CoinMarketCap is not responsible for the content of any Third-Party Site, including without limitation any link contained in a Third-Party Site, or any changes or updates to a Third-Party Site. CoinMarketCap is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement, approval or recommendation by CoinMarketCap of the site or any association with its operators. This article is intended to be used and must be used for informational purposes only. It is important to do your own research and analysis before making any material decisions related to any of the products or services described. This article is not intended as, and shall not be construed as, financial advice. The views and opinions expressed in this article are the author’s [company’s] own and do not necessarily reflect those of CoinMarketCap.
Источник
Why a GPU mines faster than a CPU
Some Bitcoin users might wonder why there is a huge disparity between the mining output of a CPU versus a GPU.
First, just to clarify, the CPU, or central processing unit, is the part of the computer that performs the will of the software loaded on the computer. It’s the main executive for the entire machine. It is the master that tells all the parts of the computer what to do — in accordance with the program code of the software, and, hopefully, the will of the user.
Most computers have multi-core CPUs nowadays (which is almost the same thing as having multiple CPU’s in a single physical package)., and some computers even have multiple CPUs.
The CPU is usually a removable component that plugs into the computer’s main circuit board, or motherboard and sits underneath a large, metallic heat sink which usually has a fan, a few are cooled by water.
The GPU, or graphics processing unit, is a part of the video rendering system of a computer. The typical function of a GPU is to assist with the rendering of 3D graphics and visual effects so that the CPU doesn’t have to.
Servers usually have very limited or no GPU facilities as they are mostly managed over a text-based remote interface. Most mainstream computers have much slower but less power consuming and cheaper IGPs (Integrated Graphics Processor), which are GPUs as well but integrated directly into the chipset and soldered onto the motherboard, rather than separate, more powerful but power consuming AGP or PCIe cards with GPUs, but separate GPUs. Powerful GPUs are needed mostly for graphic intensive tasks such as gaming or video editing. For example, the translucent windows in Windows 7, or technologies like Mac OS X’s Quartz, which powers the Aqua desktop and its beautiful, water-like graphical effects and animations such as bulging the Dock in a smooth animation when the mouse is moved to the lower edge of the screen or «sucking» windows into the Dock when they are minimized — these are powered by GPUs.
A GPU is like a CPU, but there are important internal differences that make them suited toward their special tasks. These are the differences that make Bitcoin mining far more favorable on a GPU.
Contents
Short Answer
A CPU core can execute 4 32-bit instructions per clock (using a 128-bit SSE instruction) or 8 via AVX (256-Bit), whereas a GPU like the Radeon HD 5970 can execute 3200 32-bit instructions per clock (using its 3200 ALUs or shaders). This is a difference of 800 (or 400 in case of AVX) times more instructions per clock. As of 2011, the fastest CPUs have up to 6, 8, or 12 cores and a somewhat higher frequency clock (2000-3000 MHz vs. 725 MHz for the Radeon HD 5970), but one HD5970 is still more than five times faster than four 12-core CPUs at 2.3GHz (which would also set you back about $4700 rather than $350 for the HD5970).
A CPU is an executive
A CPU is designed primarily to be an executive and make decisions, as directed by the software. For example, if you type a document and save it, it is the CPU’s job to turn your document into the appropriate file type and direct the hard disk to write it as a file. CPU’s can also do all kinds of math, as inside every CPU is one or more «Arithmetic/Logic Units» (ALU’s). CPU’s are also highly capable of following instructions of the «if this, do that, otherwise do something else». A large bulk of the structures inside a CPU are concerned with making sure that the CPU is ready to deal with having to switch to a different task on a moment’s notice when needed.
CPU’s also have to deal with quite a few other things which add complexity, including:
- enforcing privilege levels and the boundaries between user programs and the operating system
- creating the illusion of «virtual memory» to programs
- for the most popular processors, being backwards compatible with legacy code
A GPU is a laborer
A GPU is very different. Yes, a GPU can do math, and can also do «this» and «that» based on specific conditions. However, GPU’s have been designed so they are very good at doing video processing, and less executive work.
Video processing is a lot of repetitive work, since it is constantly being told to do the same thing to large groups of pixels on the screen. In order to make this run efficiency, video processors are far heavier on the ability to do repetitive work, than the ability to rapidly switch tasks.
GPU’s have large numbers of ALU’s, more so than CPU’s. As a result, they can do large amounts of bulky mathematical labor in a greater quantity than CPU’s.
Analogy
One way to visualize it is a CPU works like a small group of very smart people who can quickly do any task given to them. A GPU is a large group of relatively dumb people who aren’t individually very fast or smart, but who can be trained to do repetitive tasks, and collectively can be more productive just due to the sheer number of people.
It’s not that a CPU is fat, spoiled, or lazy. Both CPUs and GPUs are creations made from billions of microscopic transistors crammed on a small piece of silicon. On silicon chips, size is expensive. The structures that make CPUs good at what they do take up lots of space. When those structures are omitted, that leaves plenty of room for many «dumb» ALU’s, which individually are very small.
The ALUs of a GPU are partitioned into groups, and each group of ALUs shares management, so members of the group cannot be made to work on separate tasks. They can either all work on nearly identical variations of one single task, in perfect sync with one another, or nothing at all. Trying different hashes repeatedly — the process behind Bitcoin mining — is a very repetitive task suitable for a GPU, with each attempt varying only by the changing of one number (called a «nonce») in the data being hashed.
The ATI Radeon 5970 is a popular video card for Bitcoin mining and, to date, offers the best known performance of any video card for this purpose.
This particular card has 3,200 «Stream Processors», which can be thought of as 3,200 very dumb execution units that can be trained to all do the same repetitive task, just so long as they don’t have to make any decisions that interrupts their flow. Those execution units are contained in blocks. The 5970 uses a VLIW-5 architecture, which means the 3,200 Stream Processors are actually 640 «Cores,» Each able to process 5 instruction per clock cycle. Nvidia would call these cores «Cuda Cores», but as mentioned in this article, they are not VLIW, meaning they cannot do as much work per cycle. This is why comparing graphics cards by core count alone is not an accurate method of determining performance, and this is also why nVidia lags so far behind ATI in SHA-256 hashing.
Since ALU’s are what do all the work of Bitcoin mining, the number of available ALU’s has a direct effect on the hash output. Compare that to a 4-core CPU that can switch tasks on a dime, but has ALU’s in some small multiple of four, if not just four ALU’s alone. Trying a single SHA256 hash in the context of Bitcoin mining requires around 1,000 simple mathematical steps that must be performed entirely by ALU’s.
That, in a nutshell, is why GPU’s can mine Bitcoins so much faster than CPU’s. Bitcoin mining requires no decision making — it is repetitive mathematical work for a computer. The only decision making that must be made in Bitcoin mining is, «do I have a valid block» or «do I not». That’s an excellent workload to run on a GPU.
Why are AMD GPUs faster than Nvidia GPUs?
Firstly, AMD designs GPUs with many simple ALUs/shaders (VLIW design) that run at a relatively low frequency clock (typically 1120-3200 ALUs at 625-900 MHz), whereas Nvidia’s microarchitecture consists of fewer more complex ALUs and tries to compensate with a higher shader clock (typically 448-1024 ALUs at 1150-1544 MHz). Because of this VLIW vs. non-VLIW difference, Nvidia uses up more square millimeters of die space per ALU, hence can pack fewer of them per chip, and they hit the frequency wall sooner than AMD which prevents them from increasing the clock high enough to match or surpass AMD’s performance. This translates to a raw ALU performance advantage for AMD:
- AMD Radeon HD 6990: 3072 ALUs x 830 MHz = 2550 billion 32-bit instruction per second
- Nvidia GTX 590: 1024 ALUs x 1214 MHz = 1243 billion 32-bit instruction per second
This approximate 2x-3x performance difference exists across the entire range of AMD and Nvidia GPUs. It is very visible in all ALU-bound GPGPU workloads such as Bitcoin, password bruteforcers, etc.
Secondly, another difference favoring Bitcoin mining on AMD GPUs instead of Nvidia’s is that the mining algorithm is based on SHA-256, which makes heavy use of the 32-bit integer right rotate operation. This operation can be implemented as a single hardware instruction on AMD GPUs (BIT_ALIGN_INT), but requires three separate hardware instructions to be emulated on Nvidia GPUs (2 shifts + 1 add). This alone gives AMD another 1.7x performance advantage (
1900 instructions instead of
3250 to execute the SHA-256 compression function).
Combined together, these 2 factors make AMD GPUs overall 3x-5x faster when mining Bitcoins.
NVIDIA Releases NEW Generations of GPU Cards
NVIDIA’s new flagship card «GeForce GTX 690» is now beefier than it’s younger sibling — GTX 590. EVGA has also decided to use the same chipset on its flagship card «EVGA GeForce GTX 690 Signature». But what are the comparitive figures for the AMD and new NVIDIA GPU’s ? See Some Performance Specs Below:
GeForce GTX 690 (4,096MB):
GPU Clock (MHz) 915 (1,019), GFLOPS 5,621 Single Precision, Double Precision Figures unavailable, ALU’s 3072 (manufacturer refer to this as CUDA Cores)
AMD Radeon HD 6990:
830MHz Engine Clock, 5,100 GFLOPs Single Precision , 1,270 GFLOPs Double Precision, ALU’s 3072
Источник