-
Notifications
You must be signed in to change notification settings - Fork 86
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
Figure out good value for snapEvery
parameter for LedgerDB
#1026
Comments
This is not essential for the first mainnet release. |
Note that this ticket is about the in-memory snapshots; see #1264 for the on-disk snapshots. |
This was referenced Jan 10, 2020
The special case of 1 looks like it may be useful for:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The ledger DB stores a snapshot in-memory after every
snapEvery
blocks. A high value means faster rollback, but also more memory usage: we might lose opportunities for garbage collection, not only due to the UTxO (or other data structures) shrinking but also from the recreated spines of these data structures when updating or extending them. It is however not at all obvious how this parameter affects performance and memory usage in absolute values; we should measure this and setsnapEvery
accordingly.This is not too relevant for Byron, as rollbacks there are basically absent, but will be important for Praos.
(If it turns out that we do want a relatively high value for
snapEvery
, we might want to consider treating thetip-1
ledger state special also, to have specific support for the common case of rollbacks of 1.)The text was updated successfully, but these errors were encountered: