Skip to content

Commit

Permalink
chore: increase paralelism and files opened (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
renancloudwalk authored Apr 3, 2024
1 parent b66490c commit bd09c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eth/storage/hybrid/rocks_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl<K: Serialize + for<'de> Deserialize<'de> + std::hash::Hash + Eq, V: Seriali
let mut block_based_options = BlockBasedOptions::default();

opts.create_if_missing(true);
opts.increase_parallelism(4);
opts.increase_parallelism(16);

match config {
DbConfig::LargeSSTFiles => {
Expand All @@ -36,7 +36,7 @@ impl<K: Serialize + for<'de> Deserialize<'de> + std::hash::Hash + Eq, V: Seriali
opts.set_max_write_buffer_number(4);
opts.set_write_buffer_size(64 * 1024 * 1024); // 64MB
opts.set_max_bytes_for_level_base(512 * 1024 * 1024); // 512MB
opts.set_max_open_files(100);
opts.set_max_open_files(1000);
}
DbConfig::Default => {
block_based_options.set_block_size(16 * 1024);
Expand Down

0 comments on commit bd09c0d

Please sign in to comment.