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

Add per_job_mem_gb key so notorious memory hogs scale to available memory when building #78

Open
ermo opened this issue May 28, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@ermo
Copy link
Contributor

ermo commented May 28, 2024

Currently, we manually twiddle each known memory hog recipe with jobs = N that matches whatever system it is being compiled on.

This proposal is about adding a per_job_mem_gb key that, when present and strictly greater than zero, will check the currently available memory and divide it with per_job_mem_gb and then set %JOBS% to the floor of that value.

Code with this logic has been in limited production in the Serpent onboarding scripts for a couple of years now.

The benefit to Solus is that we can then set the proposed per_job_mem_gb key for known memory hogs and just have it work on both local systems and the builder going forward, with ypkg auto-handling setting the number of jobs accordingly.

@ermo ermo added the enhancement New feature or request label May 28, 2024
@ermo ermo added this to the v35 milestone Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant