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

mvdan opened this issue Oct 25, 2018 · 0 comments


Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.