From f69f7095bb558338188276d4f3c18c1ad9c8e64c Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Wed, 22 Mar 2023 10:17:03 +0700 Subject: [PATCH] e3: exec to use half of CPU's by default --- eth/ethconfig/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go index 4b753242e..254eb152f 100644 --- a/eth/ethconfig/config.go +++ b/eth/ethconfig/config.go @@ -71,7 +71,7 @@ var LightClientGPO = gasprice.Config{ var Defaults = Config{ Sync: Sync{ UseSnapshots: false, - ExecWorkerCount: 2, + ExecWorkerCount: estimate.ReconstituteState.WorkersHalf(), //only half of CPU, other half will spend for snapshots build/merge/prune ReconWorkerCount: estimate.ReconstituteState.Workers(), BodyCacheLimit: 256 * 1024 * 1024, BodyDownloadTimeoutSeconds: 30,