From dd0c4a0a34ed9f82b8061e9d6d45ac3bb985c1e6 Mon Sep 17 00:00:00 2001 From: Phi Date: Tue, 28 Feb 2023 10:25:33 +0100 Subject: [PATCH] Tune down parallel reads Tuning down the default post-parallel-reads to a conservative number. --- cmd/lotus-worker/main.go | 2 +- documentation/en/cli-lotus-worker.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lotus-worker/main.go b/cmd/lotus-worker/main.go index bb7fa94d8..42f46c9d8 100644 --- a/cmd/lotus-worker/main.go +++ b/cmd/lotus-worker/main.go @@ -257,7 +257,7 @@ var runCmd = &cli.Command{ &cli.IntFlag{ Name: "post-parallel-reads", Usage: "maximum number of parallel challenge reads (0 = no limit)", - Value: 128, + Value: 32, EnvVars: []string{"LOTUS_WORKER_POST_PARALLEL_READS"}, }, &cli.DurationFlag{ diff --git a/documentation/en/cli-lotus-worker.md b/documentation/en/cli-lotus-worker.md index 992601719..2000b1978 100644 --- a/documentation/en/cli-lotus-worker.md +++ b/documentation/en/cli-lotus-worker.md @@ -47,7 +47,7 @@ OPTIONS: --no-local-storage don't use storageminer repo for sector storage (default: false) [$LOTUS_WORKER_NO_LOCAL_STORAGE] --no-swap don't use swap (default: false) [$LOTUS_WORKER_NO_SWAP] --parallel-fetch-limit value maximum fetch operations to run in parallel (default: 5) [$LOTUS_WORKER_PARALLEL_FETCH_LIMIT] - --post-parallel-reads value maximum number of parallel challenge reads (0 = no limit) (default: 128) [$LOTUS_WORKER_POST_PARALLEL_READS] + --post-parallel-reads value maximum number of parallel challenge reads (0 = no limit) (default: 32) [$LOTUS_WORKER_POST_PARALLEL_READS] --post-read-timeout value time limit for reading PoSt challenges (0 = no limit) (default: 0s) [$LOTUS_WORKER_POST_READ_TIMEOUT] --precommit1 enable precommit1 (default: true) [$LOTUS_WORKER_PRECOMMIT1] --precommit2 enable precommit2 (default: true) [$LOTUS_WORKER_PRECOMMIT2]