Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set reasonable concurrency levels for pgzip #850

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

jonjohnsonjr
Copy link
Contributor

pgzip's default is GOMAXPROCS(0)

This is fine for single builds, but we will starve CPU for larger builds. 8 is our max because modern laptops tend to have ~8 performance cores, and large CI machines tend to have ~64 cores.

This gives us near 100% utility on workstations, allows us to do ~8 concurrent builds on giant machines, and uses only 1 core on tiny machines.

@jonjohnsonjr jonjohnsonjr requested a review from a team as a code owner August 17, 2023 18:04
@jonjohnsonjr jonjohnsonjr requested review from joshrwolf and removed request for a team August 17, 2023 18:04
pgzip's default is GOMAXPROCS(0)

This is fine for single builds, but we will starve CPU for larger builds.
8 is our max because modern laptops tend to have ~8 performance cores, and
large CI machines tend to have ~64 cores.

This gives us near 100% utility on workstations, allows us to do ~8
concurrent builds on giant machines, and uses only 1 core on tiny machines.

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
@jonjohnsonjr jonjohnsonjr merged commit 18245f1 into chainguard-dev:main Aug 17, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants