4

Is there any theoretical requirement for RAM, storage size etc. when I run geth? I mean the real necessary hardware required to get geth running at the very least, but not the optimal or profitable configurations. Like if I run a private chain for experimental purpose, what is the absolute minimal hardware I need for each node? If yes, how are these requirements different in light mode/full node, miner and not miner?

  • 1
    do the nodes need to be mining? – Jaime Jun 5 '18 at 8:05
  • 1
    yes and no, what will be the difference for mining and non-mining setup? – tbraden Jun 5 '18 at 8:08
2

If you don't need to mine on the main network and you run your own private chain you can run the geth node on a Raspberry 2.

  • 1
    I have tried to run on a Raspberry Pi 3 with some 500MB free memory, but I got Failed to generate mapped ethash dataset epoch=0 err="cannot allocate memory" when trying to start mining a private chain – tbraden Jun 5 '18 at 8:39
  • 1
    Add a swap file to your machine digitalocean.com/community/tutorials/… – cleanunicorn Jun 6 '18 at 11:55
2

I have tried to run on a Raspberry Pi 3 with some 500MB free memory, but I got Failed to generate mapped ethash dataset epoch=0 err="cannot allocate memory" when trying to start mining a private

To mine ETH, you need enough RAM to build the DAG. Here is a link to more about the DAG.

The DAG size changes by epoch, and increases. As the above link shows, current ETH mainnet blocknumber is 5743248, and current DAG size is 2.49 GB.

So, with 500 MB free memory, depending on the details of how your private blockchain compares or relates to ETH mainnet, you may not have enough.

1

I am running geth using a device with a single core and 3Gb of ram in light mode, 10G of SSD drive. The load of the system is less than 10%.

Hope this helps

1

My machine, intel X38 , Q9650, 8GM ram, clocked at 3Ghz, 3Gbps SATA port running samsung 540GB SSD, can slowly catch up in sync in full node mode.

The hard drive is mostly over 50% occupied, and CPU is also over 50% occupied when sync old blocks

This made it too slow to catch up if you are 1 month behind, then you have to delete the whole chain data and do a fast sync, that goes a bit faster but would still take a few days

1

Add a swap file to your machine digitalocean.com/community/tutorials/…

I have added a 2 GB swap file to my Raspberry Pi 3. However, I still encounter OOM errors when I try to mine and the etash dataset is created. I have 927 MB of RAM and now another 3.1 GB of SWAP. Does anyone know what the problem there might be?

ERROR[05-12|20:51:40.300] Failed to generate mapped ethash dataset epoch=0 err="cannot allocate memory" runtime: out of memory: cannot allocate 2147483648-byte block (124649472 in use) fatal error: out of memory

  • I figured it out myself. I had an 32-bit OS running and geth requires 64-bit version to mine. Just if it helps anyone else :) – Kolja H May 12 at 21:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.