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

Smaller disk usage on start #471

Open
dpc opened this issue Nov 20, 2023 · 1 comment
Open

Smaller disk usage on start #471

dpc opened this issue Nov 20, 2023 · 1 comment

Comments

@dpc
Copy link

dpc commented Nov 20, 2023

At Fedimint we test against esplora as one of the support backends. This makes it part of our integration tests and "devimint" dev environment, and we spin up and down such environment frequently.

On start devimint environment would have less than 200 empty regtest blocks, yet:

15:49:11 …esplora/regtest/newindex
> du -cksh *
286M    cache
286M    history
286M    txstore
858M    total

That's kind of a lot for indexing... practically nothing yet. Is this some pre-allocation or is it supposed to be this way? If it's a tunable could there be (is there) an option to minimize it? In our test env we're not really concerned about raw throughput.

@dpc
Copy link
Author

dpc commented Nov 21, 2023

https://github.com/Blockstream/electrs/blob/fd35014283c7d3a7a85c77b9fd647c9f09de12c9/src/new_index/db.rs#L92 I think.

I'm sorry. I think I should have opened this issue in that repo.

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

No branches or pull requests

1 participant