Skip to content

Comments

Remove CPU locking#5821

Merged
edolstra merged 1 commit intoNixOS:masterfrom
edolstra:remove-affinity
Dec 22, 2021
Merged

Remove CPU locking#5821
edolstra merged 1 commit intoNixOS:masterfrom
edolstra:remove-affinity

Conversation

@edolstra
Copy link
Member

This was already accidentally disabled in ba87b08. It also no longer appears to be beneficial, and in fact slow things down, e.g. when evaluating a NixOS system configuration:

elapsed time:       median =      3.8170  mean =      3.8202  stddev =      0.0195  min =      3.7894  max =      3.8600  [rejected, p=0.00000, Δ=0.36929±0.02513]

Fixes #3345. Closes #3346.

This was already accidentally disabled in ba87b08. It also no longer
appears to be beneficial, and in fact slow things down, e.g. when
evaluating a NixOS system configuration:

  elapsed time:       median =      3.8170  mean =      3.8202  stddev =      0.0195  min =      3.7894  max =      3.8600  [rejected, p=0.00000, Δ=0.36929±0.02513]
@layus
Copy link
Member

layus commented Dec 22, 2021

LGTM. Nothing that can go wrong without being catched by the compiler. I made sure to look closely at the daemon protocol part. That one may go wrong.

@edolstra edolstra merged commit 7feb741 into NixOS:master Dec 22, 2021
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/tweag-nix-dev-update-24/17230/1

roberth added a commit to hercules-ci/hercules-ci-agent that referenced this pull request Feb 25, 2022
Presumably these were required for compilation at some point, but
have been removed in Nix 2.6: NixOS/nix#5821
roberth added a commit to hercules-ci/hercules-ci-agent that referenced this pull request Feb 25, 2022
Presumably these were required for compilation at some point, but
have been removed in Nix 2.6: NixOS/nix#5821
roberth added a commit to hercules-ci/hercules-ci-agent that referenced this pull request Feb 25, 2022
Presumably these were required for compilation at some point, but
have been removed in Nix 2.6: NixOS/nix#5821
roberth added a commit to hercules-ci/hercules-ci-agent that referenced this pull request Feb 25, 2022
Presumably these were required for compilation at some point, but
have been removed in Nix 2.6: NixOS/nix#5821
roberth added a commit to hercules-ci/hercules-ci-agent that referenced this pull request Feb 25, 2022
Presumably these were required for compilation at some point, but
have been removed in Nix 2.6: NixOS/nix#5821
roberth added a commit to hercules-ci/nix that referenced this pull request Feb 5, 2023
roberth added a commit to hercules-ci/nix that referenced this pull request Feb 5, 2023
roberth added a commit to hercules-ci/nix that referenced this pull request Apr 7, 2023
roberth added a commit to hercules-ci/nix that referenced this pull request Apr 7, 2023
roberth added a commit to hercules-ci/nix that referenced this pull request Apr 7, 2023
roberth added a commit to hercules-ci/nix that referenced this pull request Apr 7, 2023
@edolstra edolstra deleted the remove-affinity branch December 9, 2024 12:23
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.

nix-shell inherits single CPU affinity when derivation has import from derivation

3 participants