Set GOMAXPROCS when parallelism is configured
- Dominant language
- Go
- Stars
- 9.6k
- Forks
- 954
- Avg merge
- 23h 27m
- Merged PRs (30d)
- 48
Description
**What would you like to be added**:
In order to make behavior more predictable, if a user configures parallelism, it might be a good idea to set [GOMAXPROCS](https://pkg.go.dev/runtime#GOMAXPROCS) to limit the number of system threads.
**Why is this needed**:
More predictable performance characteristics.
**Additional context**:
This stemmed from a [discussion on discourse](https://anchorecommunity.discourse.group/t/limiting-the-number-of-threads-used/442).
Contributor guide
Research direction
No source file or test is named. Start by tracing where configured parallelism is parsed and applied, then read the linked GOMAXPROCS documentation and discourse discussion. Done means the configured behavior is implemented with clear semantics and verified by relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100