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

x/build: add a "small" builder with limited resources #28388

Open
mvdan opened this issue Oct 25, 2018 · 0 comments
Open

x/build: add a "small" builder with limited resources #28388

mvdan opened this issue Oct 25, 2018 · 0 comments
Labels
Builders x/build issues (builders, bots, dashboards) FeatureRequest NeedsFix The path to resolution is known, but the work has not been done. new-builder
Milestone

Comments

@mvdan
Copy link
Member

mvdan commented Oct 25, 2018

Starting a new issue from #27739.

We tend to see issues building Go and running the tests if someone's machine has limited resources. For example, in #26867 I reported how go test net OOM'd with a few gigabytes of available memory.

We already have special builders like linux-amd64-noopt, so I propose adding a linux-amd64-small. Alternatively, we could add these qualities to an existing builder like linux-amd64-noopt, like @bradfitz suggested.

Some ideas to start with:

  • limiting the total memory to 4GB
  • limiting the total disk size to 10GB
  • limiting the CPU power, e.g. to dual-core 1GHz

With time, if the builder is stable, we could lower those numbers and add more restrictions, such as:

  • lowering the maximum number of open file descriptors
  • lowering the size of /tmp
  • lowering the maximum number of processes created by the user

/cc @dmitshur @bradfitz @andybons

@mvdan mvdan added the Builders x/build issues (builders, bots, dashboards) label Oct 25, 2018
@gopherbot gopherbot added this to the Unreleased milestone Oct 25, 2018
@bradfitz bradfitz added NeedsFix The path to resolution is known, but the work has not been done. FeatureRequest new-builder labels Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Builders x/build issues (builders, bots, dashboards) FeatureRequest NeedsFix The path to resolution is known, but the work has not been done. new-builder
Projects
None yet
Development

No branches or pull requests

3 participants