Browse Source

leveldb3: adjust memory allocation for each bucket

pull/2694/head
chrislu 3 years ago
parent
commit
56da3494cb
  1. 4
      weed/filer/leveldb3/leveldb3_store.go

4
weed/filer/leveldb3/leveldb3_store.go

@ -72,8 +72,8 @@ func (store *LevelDB3Store) loadDB(name string) (*leveldb.DB, error) {
} }
if name != DEFAULT { if name != DEFAULT {
opts = &opt.Options{ opts = &opt.Options{
BlockCacheCapacity: 4 * 1024 * 1024, // default value is 8MiB
WriteBuffer: 2 * 1024 * 1024, // default value is 4MiB
BlockCacheCapacity: 16 * 1024 * 1024, // default value is 8MiB
WriteBuffer: 8 * 1024 * 1024, // default value is 4MiB
Filter: bloom, Filter: bloom,
} }
} }

Loading…
Cancel
Save