shrink memtable/arena limit

This commit is contained in:
abbycin 2026-03-18 11:45:48 +08:00
parent cbc1e24b08
commit 0fe2673791
Signed by: abby
GPG Key ID: B636E0F0307EF8EB
2 changed files with 6 additions and 6 deletions

View File

@ -779,7 +779,7 @@ int main(int argc, char *argv[]) {
cfo.min_blob_size = args.blob_size;
cfo.disable_auto_compactions = true;
cfo.write_buffer_size = 64 << 20;
cfo.max_write_buffer_number = 128;
cfo.max_write_buffer_number = 16;
auto cache = rocksdb::NewLRUCache(3 << 30);
rocksdb::BlockBasedTableOptions table_options{};
@ -1009,8 +1009,8 @@ int main(int argc, char *argv[]) {
return 1;
}
fmt::println(
"engine=rocksdb workload={} mode={} durability={} threads={} total_op={} ok_op={} err_op={} ops={} p99_us={} result_file={}",
fmt::println("engine=rocksdb workload={} mode={} durability={} threads={} total_op={} ok_op={} err_op={} ops={} "
"p99_us={} result_file={}",
row.workload_id, row.mode, durability_str(row.durability_mode), row.threads, row.total_op, row.ok_op,
row.err_op, static_cast<uint64_t>(row.ops), row.quantiles.p99_us, args.result_file);

View File

@ -716,7 +716,7 @@ fn main() {
opt.max_log_size = 1 << 30;
opt.wal_buffer_size = 64 << 20;
opt.wal_file_size = 128 << 20;
opt.default_arenas = 128;
opt.default_arenas = 16;
opt.gc_timeout = 600 * 1000;
opt.gc_eager = false;
opt.data_garbage_ratio = 50;