Hot answers tagged

52

DAG stands for Directed Acyclic Graph. In Ethereum, a DAG is created every epoch using a version of the Dagger-Hashimoto Algorithm combining Vitalik Buterin's Dagger algorithm and Thaddeus Dryja's Hashimoto algorithm. There are quite a few places where the DAG is defined in the docs and literature. These are collated below: From the yellow paper: ...d ...


20

The DAG started at 1 GB at the time of the Frontier launch, and increases by approximately 0.73x per year. That puts the current size at roughly 1.35 GB as of mid-January 2016 (feel free to comment with an exact link if anyone has one). Following the same crude approximation: The 2GB limit will be hit around mid-December 2016 The 3GB limit will be hit ...


15

Ethereum uses Ethash (Proof of Work system). Ethash PoW is memory hard, making it basically ASIC resistant. This basically means that calculating the PoW requires choosing subsets of a fixed resource dependent on the nonce and block header. This resource (a few gigabyte size data) is called a DAG. Sourced from here.


15

DAG stands for Dagger Hashimoto It is a proposed spec for the mining algorithm for Ethereum 1.0. Dagger Hashimoto aims to simultaneously satisfy two goals: ASIC-resistance: the benefit from creating specialized hardware for the algorithm should be as small as possible, ideally to the point that even in an economy where ASICs have been ...


12

I usually avoid copy pasting info from docs, as many here do, but here I think its appropriate: Ethash uses a DAG (directed acyclic graph) for the proof of work algorithm, this is generated for each epoch, i.e every 30000 blocks (100 hours). The DAG takes a long time to generate. If clients only generate it on demand, you may see a long wait at each ...


12

As of June of 2017, the DAG size had grown past 2 GB. This other Q & A thread (Where do I see the current dag size) will tell you how to find the exact up-to-date number.


9

The Ethash DAG is not related to merkle trees (the word "merkle" does not appear on either wiki page). The Ethash DAG only serves as a big dataset (i.e. too big to fit in memory) for making Ethash mining be "memory-hard". Ethereum's merkle tree is what keeps track of the state of all accounts and contracts. The state of all accounts is not directly related ...


8

I see that no one mentioned what the DAG really is. As from the description of what the DAG file contains you can see that DAG stands for directed acyclic graph. This is represented in the file as a matrix.


8

If you need DAG size tracker you can visit investoon.com/tools/dag_size there you can see current DAG size and important epochs.


7

The DAG size is actually calculated by a fixed formula. You can find more details here. The function that does the calculation is: def get_full_size(block_number): sz = DATASET_BYTES_INIT + DATASET_BYTES_GROWTH * (block_number // EPOCH_LENGTH) sz -= MIX_BYTES while not isprime(sz / MIX_BYTES): sz -= 2 * MIX_BYTES return sz To make ...


6

You can check it yourself on your miner: $ ls -l ~/.ethash/ total 1048584 -rw-rw-r-- 1 richard richard 1073739912 Mar 10 20:36 full-R23-0000000000000000 ...... (If you're running a standalone miner, then the file is generated locally, not downloaded from somewhere.)


5

I'm pretty sure you can't mine on an Intel integrated graphics. Also yes, you are correct your GPU has not enough memory to load the entire DAG file.


4

It seems the HD6950 is limited to a 512MB allocation even with much more RAM onboard. C:\Program Files\Ethereum 0.9.41\Release>ethminer --list-devices Listing OpenCL devices. FORMAT: [deviceID] deviceName [0] Cayman CL_DEVICE_TYPE: GPU CL_DEVICE_GLOBAL_MEM_SIZE: 2147483648 CL_DEVICE_MAX_MEM_ALLOC_SIZE: 536870912 ...


4

Try ethminer.exe -G --list-devices It will list openCL compatible devices. You have to check that both MEMORY and MAX_ALLOC sizes are bigger than the current DAG (a bit more than 1.4 Gb at the moment). On an Intel card it wouldn't surprise me that the MAX_ALLOC is too low even if the memory is ok. A nice alternative is Goldminer which will ...


4

No. You don't have to sync to the blockchain if you are mining on a pool. The pool will provide your miner with the appropriate information for your miner to generate the DAG file required for it's mining computation. Details The pool will be running an Ethereum node, normally geth (see https://www.ethernodes.org/network/1). Your miner will call the ...


4

Setting the --autodag option to false doesn't seem to work. I typed this command in the JS console and it worked: miner.stopAutoDAG() Output: I0708 11:01:29.112749 eth/backend.go:498] Automatic pregeneration of ethash DAG OFF (ethash dir: ~/.ethash)


4

I think you may be confusing the DAG with the other chain data. The DAG is only used for mining and will only take up about 2GB. What is taking up the space is the whole blockchain, which you are currently downloading (that's what "syncing" is. 40 GB is about right, and until light clients become available, that's just something you'll have to deal with. The ...


4

Every Merkle is a directed acyclic graph (DAG) because each node is accessed by its name. Each branch of Merkle is the hash of its local data, because its fast to access instead of accessing by its original content. This will helps to prevents cycles (lets assuming there are no hash collisions), because one cannot link the first created node to the last node ...


3

There seems to be an open bug related to the issue-issue-3056 The present solution which works for me , I run folowing command before mining again geth makedag <blocknumber> <ethash dir path> then start mining again.


3

Just to add to the accepted answer... The --autodag flag doesn't take a value, so it can't be set to false. The DAG will always be pregenerated if mining is enabled from the CLI using the --mine flag. What the --autodag flag allows you to do is pregenerate the DAG even if mining is not enabled. The pertinent part of the code is in flags.go: AutoDAG: ...


3

Perhaps it depends on the mining software but with ethminer using a pool you don't have to sync at all. The pool does the sync and send you the data to compute. You only have to prepare it and share it on your GPUs.


3

Unfortunately, it might be impossible because of 2GB of RAM. Although current DAG is 1.4 GB in size and should fit the OpenCL implementation might not allow such big allocation for this GPU. You might try the following: Try running from console without starting graphical desktop environment (if on Linux). Try benchmark ethminer -G -M that will use 1 GB DAG....


3

The solution I found was to parse my wallet's page on dwarfpool looking for the string "DAG corrupted" in its content with a little Node.JS script. It should work with any pool. Obviously if you do not write code it's not that easy. GoldMiner does check DAG corruption and automatically restarts mining, it has a cool interface, great for non-coders imho.


3

Scaling proposals can be put into 2 categories: off-chain and on-chain. Off-chain proposals generally involve netting small transactions between 2 or more parties outside the blockchain. After a certain time the involved parties will settle the net amount on the blockchain, if they agree with each other. On-chain proposals involve a more efficient way to ...


3

what is the difference between blockchain size and dag file size? These are two different things. The 670 GB in your explanation is the blockchain (state) data, which includes all the blocks and their headers. Depending on which client you're using, and which pruning mode, this will vary in size. See: What are the Ethereum disk space needs? What is the ...


2

I'm assuming you're on develop :) That DAG is not the big mining DAG, but a tiny (1MB) one used for verifying blocks. We did an optimization that handles these verification caches better, and maintains 3 instead of only 1 as previously. The log you are seeing is when all three goes stale and the oldest is replaced with a new one. It's just a debug log, that ...


2

Okay found the answer on another forum. It just means the next phase of the DAG is happening soon, apparently this takes place every 30,000 blocks. It becomes bigger. At the time of writing this question the block didn't exist yet as it was still in the 1070000's - just one minute ago it happened.


2

DAG If your miner sent bad shares, there is a high chance that you have a corrupted DAG file. You need delete it and restart miner: DAG files in OSX and Linux are here: ~/.ethash DAG files in Windows are here: C:\Users\___\AppData\Local\Ethash See the pool FAQ.


2

If you need DAG size tracker you can visit investoon.com/tools/dag_size there you can see current DAG size and important epochs.


2

I think what you can do is to remove your current DAG files and your miner will download it again. DAG files in OSX and Linux are here: ~/.ethash DAG files in Windows are here: \~\AppData\Ethash


Only top voted, non community-wiki answers of a minimum length are eligible