diff --git a/eth/stagedsync/stage_headers.go b/eth/stagedsync/stage_headers.go index 7ac006dba1e..3c7a362021f 100644 --- a/eth/stagedsync/stage_headers.go +++ b/eth/stagedsync/stage_headers.go @@ -1102,8 +1102,8 @@ func DownloadAndIndexSnapshotsIfNeed(s *StageState, ctx context.Context, tx kv.R if workers < 1 { workers = 1 } - if workers > 4 { - workers = 4 + if workers > 2 { + workers = 2 // 4 workers get killed on 16Gb RAM } if err := snapshotsync.BuildIndices(ctx, cfg.snapshots, cfg.snapshotDir, *chainID, cfg.tmpdir, cfg.snapshots.IndicesAvailable(), workers, log.LvlInfo); err != nil { return err