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

No parallelism in nix run shells #2418

Closed
ElvishJerricco opened this issue Sep 13, 2018 · 2 comments
Closed

No parallelism in nix run shells #2418

ElvishJerricco opened this issue Sep 13, 2018 · 2 comments

Comments

@ElvishJerricco
Copy link
Contributor

Spawning multiple tasks in a nix run shell puts all of them on the same CPU, because nix run pins itself to a single CPU (presumably for unrelated Nix build reasons), thus pinning all children to that CPU.

$ stress -c 4

4 CPUs will be at 100%

$ nix run nixpkgs.hello -c stress -c 4

1 CPU will be at 100%

@edolstra
Copy link
Member

I think this was fixed in cc7b438.

@ElvishJerricco
Copy link
Contributor Author

Ah! My bad. That's almost certainly it. Thanks.

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