Bitcoin Forum
October 19, 2017, 01:20:54 PM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Data directory size vs. blockchain size  (Read 1345 times)
jondo
Newbie
*
Offline Offline

Activity: 3


View Profile
April 13, 2013, 09:40:11 PM
 #1

Hi forum,

I am currently using bitcoin-qt from bitcoin-0.8.1-linux.tar.gz.
I am wondering why my data directory ".bitcoin" has a size (du -sh) of 9.7G, while the current blockchain size is only 6445 MB, according to http://blockchain.info/charts/blocks-size .

What's the size of your data directory?
1508419254
Hero Member
*
Offline Offline

Posts: 1508419254

View Profile Personal Message (Offline)

Ignore
1508419254
Reply with quote  #2

1508419254
Report to moderator
1508419254
Hero Member
*
Offline Offline

Posts: 1508419254

View Profile Personal Message (Offline)

Ignore
1508419254
Reply with quote  #2

1508419254
Report to moderator
1508419254
Hero Member
*
Offline Offline

Posts: 1508419254

View Profile Personal Message (Offline)

Ignore
1508419254
Reply with quote  #2

1508419254
Report to moderator
Unlike traditional banking where clients have only a few account numbers, with Bitcoin people can create an unlimited number of accounts (addresses). This can be used to easily track payments, and it improves anonymity.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508419254
Hero Member
*
Offline Offline

Posts: 1508419254

View Profile Personal Message (Offline)

Ignore
1508419254
Reply with quote  #2

1508419254
Report to moderator
1508419254
Hero Member
*
Offline Offline

Posts: 1508419254

View Profile Personal Message (Offline)

Ignore
1508419254
Reply with quote  #2

1508419254
Report to moderator
1508419254
Hero Member
*
Offline Offline

Posts: 1508419254

View Profile Personal Message (Offline)

Ignore
1508419254
Reply with quote  #2

1508419254
Report to moderator
Kluge
Donator
Legendary
*
Offline Offline

Activity: 1218


Michael, send me some coins before I hitman you


View Profile
April 13, 2013, 09:52:35 PM
 #2

Old Bitcoin's blockchain format took up more space, I believe after skimming through my Roaming folder. blk1-4 + index in Bitcoin folder = 8.6gB. blk1-5 in "Blocks" folder shows 6.79gB. An additional 879mB is in rev.dat files, 32mB in Bitcoin->blocks->index folder, and 200mB in Bitcoin->chainstate folder. 16.6gB total, but I believe that's because I didn't do a truly clean install. Perhaps you have some of the old mixing with the new?

(sorry to thread-jack -- can I delete blk1-4 + blkindex in Bitcoin folder? I installed .8 on top of .6 without deleting that folder. SSD's down to 12.6gB free space, so removing waste would be nice.)

Don't mix your coins someone said isn't legal
PStone
Newbie
*
Offline Offline

Activity: 11


View Profile
April 13, 2013, 10:02:33 PM
 #3

Hi forum,

I am currently using bitcoin-qt from bitcoin-0.8.1-linux.tar.gz.
I am wondering why my data directory ".bitcoin" has a size (du -sh) of 9.7G, while the current blockchain size is only 6445 MB, according to http://blockchain.info/charts/blocks-size .

What's the size of your data directory?


about the same...
deepceleron
Legendary
*
Offline Offline

Activity: 1512



View Profile WWW
April 13, 2013, 10:52:23 PM
 #4

(sorry to thread-jack -- can I delete blk1-4 + blkindex in Bitcoin folder? I installed .8 on top of .6 without deleting that folder. SSD's down to 12.6gB free space, so removing waste would be nice.)

You can remove blk0001.dat, blk0002.dat, blk0003.dat and blkindex.dat from the root data directory after a reindex is complete and you are caught up with the blockchain (and you don't plan on going back to an older version). Only blkindex should actually be using disk space, as the old BLK000x data are moved upon upgrade, and the blk000x.dat files you see there are hardlinks (shortcuts) on any filesystem that supports hardlinking.

The new database for v0.8.0+ is stored in two subdirectories, "blocks" (block data, with block id database in "blocks/index"), and "chainstate" (unspent output database). Do not mess with files in these subdirectories.

The current size of the blockchain database subdirectories is 7.83 GB, 6.76 GB of which is raw block data.

Kluge
Donator
Legendary
*
Offline Offline

Activity: 1218


Michael, send me some coins before I hitman you


View Profile
April 13, 2013, 10:58:38 PM
 #5

(sorry to thread-jack -- can I delete blk1-4 + blkindex in Bitcoin folder? I installed .8 on top of .6 without deleting that folder. SSD's down to 12.6gB free space, so removing waste would be nice.)

You can remove blk0001.dat, blk0002.dat, blk0003.dat and blkindex.dat from the root data directory after a reindex is complete and you are caught up with the blockchain (and you don't plan on going back to an older version). Only blkindex should actually be using disk space, as the old BLK000x data are moved upon upgrade, and the blk000x.dat files you see there are hardlinks (shortcuts) on any filesystem that supports hardlinking.

The new database for v0.8.0+ is stored in two subdirectories, "blocks" (block data, with block id database in "blocks/index"), and "chainstate" (unspent output database). Do not mess with files in these subdirectories.
Thanks.

Don't mix your coins someone said isn't legal
jondo
Newbie
*
Offline Offline

Activity: 3


View Profile
April 14, 2013, 08:59:25 AM
 #6

You can remove blk0001.dat, blk0002.dat, blk0003.dat and blkindex.dat from the root data directory after a reindex is complete and you are caught up with the blockchain (and you don't plan on going back to an older version). Only blkindex should actually be using disk space, as the old BLK000x data are moved upon upgrade, and the blk000x.dat files you see there are hardlinks (shortcuts) on any filesystem that supports hardlinking.

This answers my concerns about directory size. Thank you!
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!