From 24000016759cf19f046e1182bd3949d0ab23cd91 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sat, 25 Jun 2016 23:13:34 +0200 Subject: [PATCH] More conservative settings for rocksdb. (#1440) --- util/src/kvdb.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/src/kvdb.rs b/util/src/kvdb.rs index c1be5c691..67a7243de 100644 --- a/util/src/kvdb.rs +++ b/util/src/kvdb.rs @@ -20,10 +20,10 @@ use std::default::Default; use rocksdb::{DB, Writable, WriteBatch, IteratorMode, DBVector, DBIterator, IndexType, Options, DBCompactionStyle, BlockBasedOptions, Direction}; -const DB_FILE_SIZE_BASE: u64 = 128 * 1024 * 1024; -const DB_FILE_SIZE_MULTIPLIER: i32 = 1; -const DB_BACKGROUND_FLUSHES: i32 = 4; -const DB_BACKGROUND_COMPACTIONS: i32 = 4; +const DB_FILE_SIZE_BASE: u64 = 16 * 1024 * 1024; +const DB_FILE_SIZE_MULTIPLIER: i32 = 5; +const DB_BACKGROUND_FLUSHES: i32 = 2; +const DB_BACKGROUND_COMPACTIONS: i32 = 2; /// Write transaction. Batches a sequence of put/delete operations for efficiency. pub struct DBTransaction {