You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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%
The text was updated successfully, but these errors were encountered:
Spawning multiple tasks in a
nix run
shell puts all of them on the same CPU, becausenix run
pins itself to a single CPU (presumably for unrelated Nix build reasons), thus pinning all children to that CPU.4 CPUs will be at 100%
1 CPU will be at 100%
The text was updated successfully, but these errors were encountered: