From aca674cdb319dc0b5dbb9ad1538f708c42c8216d Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Fri, 10 May 2024 10:04:01 +0700 Subject: [PATCH] increase dirty-space for chaindb --- node/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/node.go b/node/node.go index 5bbfd9b14c2..9fb91cf4332 100644 --- a/node/node.go +++ b/node/node.go @@ -348,7 +348,7 @@ func OpenDatabase(ctx context.Context, config *nodecfg.Config, label kv.Label, n if config.MdbxGrowthStep > 0 { opts = opts.GrowthStep(config.MdbxGrowthStep) } - opts = opts.DirtySpace(uint64(128 * datasize.MB)) + opts = opts.DirtySpace(uint64(512 * datasize.MB)) case kv.ConsensusDB: if config.MdbxPageSize.Bytes() > 0 { opts = opts.PageSize(config.MdbxPageSize.Bytes())