From 2233fc531850892c7becf82d6906f3706090f8d7 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 24 Apr 2013 00:10:23 +0200 Subject: [PATCH] Reduce number of open LevelDB files to 64 --- src/leveldb.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/leveldb.cpp b/src/leveldb.cpp index b41764f5..e66f8514 100644 --- a/src/leveldb.cpp +++ b/src/leveldb.cpp @@ -30,6 +30,7 @@ static leveldb::Options GetOptions(size_t nCacheSize) { options.write_buffer_size = nCacheSize / 4; // up to two write buffers may be held in memory simultaneously options.filter_policy = leveldb::NewBloomFilterPolicy(10); options.compression = leveldb::kNoCompression; + options.max_open_files = 64; return options; }