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

Increase scaling factor for reserved RAM to 5% #1826

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

henrymercer
Copy link
Contributor

Experimentally we are seeing that the 2.5% scaling factor is still causing OOMs on larger runners. This PR bumps this factor to 5%.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

@henrymercer henrymercer requested a review from a team as a code owner August 7, 2023 15:57
const scaledAmount = 0.025 * Math.max(totalMemoryMegaBytes - 8 * 1024, 0);
// Reserve an additional 5% of the amount of memory above 8 GB, since the amount used by the
// kernel for page tables scales with the size of physical memory.
const scaledAmount = 0.05 * Math.max(totalMemoryMegaBytes - 8 * 1024, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Future: pull this out into its own constant so you just need to modify that.

@henrymercer henrymercer merged commit 66dc883 into main Aug 7, 2023
344 checks passed
@henrymercer henrymercer deleted the henrymercer/increase-reserved-scaling-factor branch August 7, 2023 16:32
@github-actions github-actions bot mentioned this pull request Aug 8, 2023
6 tasks
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