From f51ffb153059e1b54ba5c0e4ce011377b432580b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 9 Sep 2020 12:26:29 -0700 Subject: [PATCH] ircd::db: Tweak block restart toward more conservative interval. --- ircd/db.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircd/db.cc b/ircd/db.cc index f7ac6a739..ddc62d0a7 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -2156,7 +2156,7 @@ ircd::db::database::column::column(database &d, table_opts.format_version = 4; // RocksDB >= 5.16.x compat only; otherwise use 3. table_opts.index_type = rocksdb::BlockBasedTableOptions::kTwoLevelIndexSearch; - table_opts.index_block_restart_interval = 64; + table_opts.index_block_restart_interval = 16; table_opts.read_amp_bytes_per_bit = 8; // Specify that index blocks should use the cache. If not, they will be @@ -2186,7 +2186,7 @@ ircd::db::database::column::column(database &d, table_opts.block_size = this->descriptor->block_size; table_opts.metadata_block_size = this->descriptor->meta_block_size; table_opts.block_size_deviation = 50; - table_opts.block_restart_interval = 64; + table_opts.block_restart_interval = 32; //table_opts.data_block_index_type = rocksdb::BlockBasedTableOptions::kDataBlockBinaryAndHash; //table_opts.data_block_hash_table_util_ratio = 0.75;