From 73eca806a489692c6b13842f6d7f5f2ce3548365 Mon Sep 17 00:00:00 2001 From: qianbin Date: Mon, 20 Nov 2023 23:02:07 +0800 Subject: [PATCH 1/2] cmd/thor: set default cache size to 4GB --- cmd/thor/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/thor/flags.go b/cmd/thor/flags.go index c6d0599fe..3f04d83a0 100644 --- a/cmd/thor/flags.go +++ b/cmd/thor/flags.go @@ -126,7 +126,7 @@ var ( cacheFlag = cli.IntFlag{ Name: "cache", Usage: "megabytes of ram allocated to trie nodes cache", - Value: 2048, + Value: 4096, } disablePrunerFlag = cli.BoolFlag{ Name: "disable-pruner", From 1045b8ed246ec066dbceb56c52cf5e401e085e1c Mon Sep 17 00:00:00 2001 From: qianbin Date: Mon, 20 Nov 2023 23:06:00 +0800 Subject: [PATCH 2/2] cmd/thor: then we can increase the soft gas limit a bit --- cmd/thor/node/packer_loop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/thor/node/packer_loop.go b/cmd/thor/node/packer_loop.go index ea3097e54..b690fe1e6 100644 --- a/cmd/thor/node/packer_loop.go +++ b/cmd/thor/node/packer_loop.go @@ -19,7 +19,7 @@ import ( ) // gasLimitSoftLimit is the soft limit of the adaptive block gaslimit. -const gasLimitSoftLimit uint64 = 30_000_000 +const gasLimitSoftLimit uint64 = 40_000_000 func (n *Node) packerLoop(ctx context.Context) { log.Debug("enter packer loop")