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

Configurable tree file-based layers buffer size #227

Merged
merged 7 commits into from
Jan 27, 2023

Conversation

poszu
Copy link
Contributor

@poszu poszu commented Jan 19, 2023

Added two new configuration flags:

  1. --lps to configure the estimated leaves per second (it's different per platform)
    It's important for the poet service to estimate the size of proof tree upfront.
  2. --tree-file-buffer to configure the buffer size for file-base (bottom) layers of the proof tree.

@poszu poszu requested a review from pigmej January 19, 2023 15:40
@poszu poszu requested a review from fasmat January 20, 2023 12:38
cmd/bench/bench.go Outdated Show resolved Hide resolved
Comment on lines +99 to +101
if treeCfg.MinMemoryLayer < LowestMerkleMinMemoryLayer {
treeCfg.MinMemoryLayer = LowestMerkleMinMemoryLayer
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this behaviour documented somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is. It just means that at least 1 tree layer (the base layer) will be stored on a disk. Please note, that I just moved this condition from service.go (there is no behaviour change).

@poszu poszu merged commit 7a62374 into develop Jan 27, 2023
@poszu poszu deleted the configurable-tree-file-layers-buffer branch January 27, 2023 10:27
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.

3 participants