-
Notifications
You must be signed in to change notification settings - Fork 220
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
Current SMT replacement strategy not sustainable #6243
Comments
The biggest contributor has been suggested by @stringhandler (thanks!) to be the serialization. I did not realize it so each of my trace logs serialized the SMT again to print the size, aggravating the issue. At 184MB sized SMT:
2024-04-03 05:56:45.448523900 [tari_core::chain_storage::lmdb_db::helpers] TRACE lmdb_replace - 184 MB, serialize check in 143.36ms, serialize in 466.61ms
2024-04-03 05:56:48.979679000 [tari_core::chain_storage::lmdb_db::helpers] TRACE lmdb_replace - 184 MB, serialize check in 144.74ms, serialize in 476.29ms
2024-04-03 05:56:49.048703000 [tari_core::chain_storage::lmdb_db::lmdb] TRACE lmdb_replace - 184 MB, lmdb write in 68.97ms
2024-04-03 05:56:49.667435300 [tari_core::chain_storage::lmdb_db::lmdb_db] TRACE Inserted 184 MB with key '08000000' into 'tip_utxo_smt' (size 908540) in 1.31s |
Improved in the latest commit in #6242 (much better but not optimal yet) 2024-04-03 08:54:38.424826600 [tari_core::chain_storage::lmdb_db::helpers] TRACE lmdb_replace - 184 MB, serialize check in 11.00µs, serialize in 458.09ms
2024-04-03 08:54:38.491925800 [tari_core::chain_storage::lmdb_db::lmdb] TRACE lmdb_replace - 184 MB, lmdb write in 67.04ms
2024-04-03 08:54:38.501529800 [tari_core::chain_storage::lmdb_db::lmdb_db] TRACE Inserted ~194 MB with key '08000000' into 'tip_utxo_smt' (size 908601) in 534.84ms |
fixed with #6265 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Time to update the SMT at the tip grows linearly with time, see stats below. For these tests the SMT database made up 5.87% of the total database size.
(Tests were conducted as part of #6242)
The text was updated successfully, but these errors were encountered: