-
Notifications
You must be signed in to change notification settings - Fork 65
starknet_patricia_storage: tune rocksDB config #11874
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
base: main-v0.14.1-committer
Are you sure you want to change the base?
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ArielElp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArielElp reviewed 1 file and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @nimrod-starkware).
crates/starknet_patricia_storage/src/rocksdb_storage.rs line 60 at r1 (raw file):
opts.set_write_buffer_size(WRITE_BUFFER_SIZE); opts.increase_parallelism(NUM_THREADS); opts.set_max_subcompactions(NUM_THREADS.try_into().unwrap());
(Non blocking) I thought you said this did not help much?
Also, are we sure about NUM_THREADS=MAX_BACKGROUND_JOBS=max_subcompactions? (worth verifying with cursor the numbers for 32 cores).
c8087eb to
e9fbd6c
Compare
06d36f7 to
5dd879e
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dorimedini-starkware reviewed 1 file and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @nimrod-starkware).
crates/starknet_patricia_storage/src/rocksdb_storage.rs line 70 at r2 (raw file):
block.set_partition_filters(true); block.set_block_size(DB_BLOCK_SIZE);
what was this and why is it removed?
Code quote:
block.set_block_size(DB_BLOCK_SIZE);crates/starknet_patricia_storage/src/rocksdb_storage.rs line 31 at r2 (raw file):
// memory). const BLOOM_FILTER_NUM_BITS: f64 = 10.0; const KEY_PREFIX_BYTES_LENGTH: usize = 32;
what is a "key prefix"?
our DB keys are always 64 bytes
Code quote:
const KEY_PREFIX_BYTES_LENGTH: usize = 32;e9fbd6c to
f4610dd
Compare
5dd879e to
0d4aa95
Compare
nimrod-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nimrod-starkware made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware).
crates/starknet_patricia_storage/src/rocksdb_storage.rs line 60 at r1 (raw file):
Previously, ArielElp wrote…
(Non blocking) I thought you said this did not help much?
Also, are we sure about NUM_THREADS=MAX_BACKGROUND_JOBS=max_subcompactions? (worth verifying with cursor the numbers for 32 cores).
I expected it to improve the 1k-constant flavor, but it didn't make it better or worst.
Cursor suggested to use it and set it to the number of cores the machine has.
Maybe the constant NUM_THREADS should be given from the committer config, @dorimedini-starkware wdyt?
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dorimedini-starkware made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArielElp and @nimrod-starkware).
crates/starknet_patricia_storage/src/rocksdb_storage.rs line 60 at r1 (raw file):
Previously, nimrod-starkware wrote…
I expected it to improve the 1k-constant flavor, but it didn't make it better or worst.
Cursor suggested to use it and set it to the number of cores the machine has.
Maybe the constantNUM_THREADSshould be given from the committer config, @dorimedini-starkware wdyt?
should be configurable, yes, as should (many?) other fields.
can one of you take this (in a separate PR)?
f4610dd to
6d02485
Compare
nimrod-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nimrod-starkware made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArielElp and @dorimedini-starkware).
crates/starknet_patricia_storage/src/rocksdb_storage.rs line 60 at r1 (raw file):
Previously, dorimedini-starkware wrote…
should be configurable, yes, as should (many?) other fields.
can one of you take this (in a separate PR)?
I can take it, added a todo.

No description provided.