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

Feature request: limit CPU usage #173

Open
neunenak opened this issue Sep 3, 2023 · 1 comment
Open

Feature request: limit CPU usage #173

neunenak opened this issue Sep 3, 2023 · 1 comment

Comments

@neunenak
Copy link

neunenak commented Sep 3, 2023

When I apply a large update to multiple foreign hosts using colmena apply, if the update is large enough or involves nix packages requiring a significant amount of computation, every core on my local machine will get pegged with nix build operations and this can cause significant GUI slowdown or even crashes. I'd like it if there was a way to instruct colmena to avoid using every CPU core or otherwise deprioritize itself in favor of GUI operations (it's possible there's a way to do this with standard linux tooling that I'm simply not aware of, but if there is it would be nice if that was documented with colmena's other documentation).

@bjornfor
Copy link
Contributor

bjornfor commented Oct 2, 2023

Have you tried with colmena --nix-option max-jobs 1 --nix-option cores 1? It's supposed to work when doing local builds, which I think is the default.

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

No branches or pull requests

2 participants