-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Add undocumented -forcecompactdb to force LevelDB compactions #10985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0acfeb2 to
b655dfe
Compare
|
The option names don't match. Pick one ;) |
b655dfe to
8842d1a
Compare
|
I tested it, it instantly ran a 20-minute compaction operation (spinning disk, encrypted/compressed ZFS volume). It slightly reduced the size (though it was only 2.something GB already). During the operation, the usage increased to 3.something GB and went down again. |
|
ACK 8842d1a Compaction of block index time with txindex: 1 hour 3 min Compaction of chainstate time: 10 min |
|
utACK |
gmaxwell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK.
2017-08-04 23:41:19 Starting database compaction of /home/gmaxwell/.bitcoin/blocks/index
2017-08-04 23:41:23 Finished database compaction of /home/gmaxwell/.bitcoin/blocks/index
2017-08-04 23:41:29 Starting database compaction of /home/gmaxwell/.bitcoin/chainstate
2017-08-04 23:45:54 Finished database compaction of /home/gmaxwell/.bitcoin/chainstate
on my slow laptop, which only had about 1GB free, now it has 4.3GB free!
Running it again when already compacted (and no new blocks processed) gave:
2017-08-04 23:55:20 Starting database compaction of /home/gmaxwell/.bitcoin/blocks/index
2017-08-04 23:55:20 Finished database compaction of /home/gmaxwell/.bitcoin/blocks/index
2017-08-04 23:55:25 Starting database compaction of /home/gmaxwell/.bitcoin/chainstate
2017-08-04 23:55:25 Finished database compaction of /home/gmaxwell/.bitcoin/chainstate
Then after syncing 174 blocks:
2017-08-05 00:04:41 Starting database compaction of /home/gmaxwell/.bitcoin/blocks/index
2017-08-05 00:04:44 Finished database compaction of /home/gmaxwell/.bitcoin/blocks/index
2017-08-05 00:04:49 Starting database compaction of /home/gmaxwell/.bitcoin/chainstate
2017-08-05 00:13:49 Finished database compaction of /home/gmaxwell/.bitcoin/chainstate
|
utACK 8842d1a |
…ctions 8842d1a Add undocumented -forcecompactdb to force LevelDB compactions (Pieter Wuille) Pull request description: Tree-SHA512: de91f3f574f75248fa6e5091089c840957fae5a972ebcd2b89493f7d777d4658560a6f5a3b43ab0c9b2c333ad98f9f185ae224c9caffc1a5e8df369cc414f123
…B compactions 8842d1a Add undocumented -forcecompactdb to force LevelDB compactions (Pieter Wuille) Pull request description: Tree-SHA512: de91f3f574f75248fa6e5091089c840957fae5a972ebcd2b89493f7d777d4658560a6f5a3b43ab0c9b2c333ad98f9f185ae224c9caffc1a5e8df369cc414f123
…B compactions 8842d1a Add undocumented -forcecompactdb to force LevelDB compactions (Pieter Wuille) Pull request description: Tree-SHA512: de91f3f574f75248fa6e5091089c840957fae5a972ebcd2b89493f7d777d4658560a6f5a3b43ab0c9b2c333ad98f9f185ae224c9caffc1a5e8df369cc414f123
…B compactions 8842d1a Add undocumented -forcecompactdb to force LevelDB compactions (Pieter Wuille) Pull request description: Tree-SHA512: de91f3f574f75248fa6e5091089c840957fae5a972ebcd2b89493f7d777d4658560a6f5a3b43ab0c9b2c333ad98f9f185ae224c9caffc1a5e8df369cc414f123
No description provided.