Skip to content
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

Gradually grow mdb file size #289

Merged
merged 4 commits into from
May 26, 2015
Merged

Gradually grow mdb file size #289

merged 4 commits into from
May 26, 2015

Conversation

tewinget
Copy link
Contributor

Working on Windows and Arch Linux.

Default (minimum) size is 1GiB, the map is resized to 150% of current when it becomes 80% full. Set to check every 1000 blocks.

tewinget added 4 commits May 15, 2015 20:42
Some filesystems (*cough* NTFS *cough*) aren't good with sparse files,
so this makes LMDB dynamically resize its mapsize as needed.  Note: the
check interval is currently every 10 blocks (for testing) and will
probably need to change to 1000 or something.  Default mapsize set to
1GiB.

Blockchain conversion tools using batching will probably segfault, I'll
fix that in the next commit.
(this was 10 for testing purposes)
@fluffypony fluffypony merged commit 01076ae into monero-project:master May 26, 2015
fluffypony added a commit that referenced this pull request May 26, 2015
01076ae Check if LMDB needs resize every 1000 blocks (Thomas Winget)
b0d849e null out batch txn pointer as needed (BlockchainLMDB) (Thomas Winget)
7b7ef73 LMDB should now dynamically resize the mapsize (Thomas Winget)
ac79502 Move mdb_txn_safe implementation to cpp file (Thomas Winget)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants