Go-ethereum: SSD too small to store the blockchain : Create a second datadir ?

Created on 24 Oct 2017  路  2Comments  路  Source: ethereum/go-ethereum

System information

Geth version: 1.7.2
OS & Version: Linux

Issue

Many regular users have a computer with a rather small SSD and a large HDD.
For them, there are only 2 choices :

  • use the speed of the SSD and quickly run out of storage space
  • or use the space of HDD but basically never sync because it is too slow.
    Which is not really great !

Suggested enhancement :

In addition the existing --datadir parameter, add these 2 optional parameters :
--datadir_maxsize : max size in Gb of the main folder, typically on the SSD, storing the settings and the recent blocks of the blockchain
--data2dir : the second folder for storing the most of the blockchain

inactive

Most helpful comment

Hmm, an alternative would be to split the database between the stuff that's immutable and (almost) never changes such as blocks, transactions, receipts, bloom filters; and have a separate database for the state, which gets updated like crazy. This could have a potential benefit of rotating the state database from time to time, thus doing a somewhat guerrilla state pruning.

All 2 comments

Hmm, an alternative would be to split the database between the stuff that's immutable and (almost) never changes such as blocks, transactions, receipts, bloom filters; and have a separate database for the state, which gets updated like crazy. This could have a potential benefit of rotating the state database from time to time, thus doing a somewhat guerrilla state pruning.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vogelito picture vogelito  路  3Comments

AdrianScott picture AdrianScott  路  3Comments

JMaxU picture JMaxU  路  3Comments

wighawag picture wighawag  路  3Comments

362228416 picture 362228416  路  3Comments