From ca8a673b5fd2a051faefa3a1e21c440f3554ad5f Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 11 Feb 2021 19:15:59 +0200 Subject: [PATCH] adjust hot store options --- chain/store/splitstore/splitstore.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chain/store/splitstore/splitstore.go b/chain/store/splitstore/splitstore.go index 474ae2a50..f68fb5fed 100644 --- a/chain/store/splitstore/splitstore.go +++ b/chain/store/splitstore/splitstore.go @@ -62,10 +62,10 @@ func NewSplitStore(path string, ds dstore.Datastore, cold bstore.Blockstore) (*S path = filepath.Join(path, "hot.db") hot, err := lmdbbs.Open(&lmdbbs.Options{ Path: path, - InitialMmapSize: 256 << 20, // 256MiB. - MmapGrowthStepFactor: 1.25, // scale slower than the default of 1.5 - MmapGrowthStepMax: 512 << 20, // 512MiB. - MaxReaders: 32, + InitialMmapSize: 1 << 30, // 1GiB. + MmapGrowthStepFactor: 1.25, // scale slower than the default of 1.5 + MmapGrowthStepMax: 1 << 32, // 4GiB + MaxReaders: 192, }) if err != nil { return nil, err