From cfebe57ace25515ca7b1b864b57c92a0a71c7c52 Mon Sep 17 00:00:00 2001 From: Wesley Shillingford Date: Tue, 5 Nov 2019 15:49:41 +0000 Subject: [PATCH] Incorrect total memtable size used (#2390) --- nano/node/rocksdb/rocksdb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nano/node/rocksdb/rocksdb.cpp b/nano/node/rocksdb/rocksdb.cpp index 0b9a4b0f..18457447 100644 --- a/nano/node/rocksdb/rocksdb.cpp +++ b/nano/node/rocksdb/rocksdb.cpp @@ -456,7 +456,7 @@ rocksdb::Options nano::rocksdb_store::get_db_options () const // Sets the compaction priority db_options.compaction_pri = rocksdb::CompactionPri::kMinOverlappingRatio; - // Start agressively flushing WAL files when they reach over 1GB + // Start aggressively flushing WAL files when they reach over 1GB db_options.max_total_wal_size = 1 * 1024 * 1024 * 1024LL; // Optimize RocksDB. This is the easiest way to get RocksDB to perform well @@ -467,7 +467,7 @@ rocksdb::Options nano::rocksdb_store::get_db_options () const db_options.enable_pipelined_write = rocksdb_config.enable_pipelined_write; // Total size of memtables across column families. This can be used to manage the total memory used by memtables. - db_options.db_write_buffer_size = rocksdb_config.total_memtable_size; + db_options.db_write_buffer_size = rocksdb_config.total_memtable_size * 1024 * 1024ULL; return db_options; }