From d95f24b9d2638522c89bc01da9ef87ca8e845741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 29 Mar 2022 13:22:58 -0400 Subject: [PATCH] config: Sane default parallel sector read defaults --- cmd/lotus-worker/main.go | 2 +- documentation/en/cli-lotus-worker.md | 2 +- documentation/en/default-lotus-miner-config.toml | 2 +- node/config/def.go | 4 ++++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cmd/lotus-worker/main.go b/cmd/lotus-worker/main.go index 39de995a535..12c5f8dc880 100644 --- a/cmd/lotus-worker/main.go +++ b/cmd/lotus-worker/main.go @@ -196,7 +196,7 @@ var runCmd = &cli.Command{ &cli.IntFlag{ Name: "post-parallel-reads", Usage: "maximum number of parallel challenge reads (0 = no limit)", - Value: 0, + Value: 128, }, &cli.DurationFlag{ Name: "post-read-timeout", diff --git a/documentation/en/cli-lotus-worker.md b/documentation/en/cli-lotus-worker.md index b5551286551..52445093ab6 100644 --- a/documentation/en/cli-lotus-worker.md +++ b/documentation/en/cli-lotus-worker.md @@ -50,7 +50,7 @@ OPTIONS: --windowpost enable window post (default: false) --winningpost enable winning post (default: false) --parallel-fetch-limit value maximum fetch operations to run in parallel (default: 5) - --post-parallel-reads value maximum number of parallel challenge reads (0 = no limit) (default: 0) + --post-parallel-reads value maximum number of parallel challenge reads (0 = no limit) (default: 128) --post-read-timeout value time limit for reading PoSt challenges (0 = no limit) (default: 0s) --timeout value used when 'listen' is unspecified. must be a valid duration recognized by golang's time.ParseDuration function (default: "30m") --help, -h show help (default: false) diff --git a/documentation/en/default-lotus-miner-config.toml b/documentation/en/default-lotus-miner-config.toml index 8dd29cc754b..4ddac8e0bbf 100644 --- a/documentation/en/default-lotus-miner-config.toml +++ b/documentation/en/default-lotus-miner-config.toml @@ -311,7 +311,7 @@ # # type: int # env var: LOTUS_PROVING_PARALLELCHECKLIMIT - #ParallelCheckLimit = 0 + #ParallelCheckLimit = 128 [Sealing] diff --git a/node/config/def.go b/node/config/def.go index 29374bd548e..10e29c17657 100644 --- a/node/config/def.go +++ b/node/config/def.go @@ -138,6 +138,10 @@ func DefaultStorageMiner() *StorageMiner { TerminateBatchWait: Duration(5 * time.Minute), }, + Proving: ProvingConfig{ + ParallelCheckLimit: 128, + }, + Storage: SealerConfig{ AllowAddPiece: true, AllowPreCommit1: true,