-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libstore: add load-limit setting to control parallelism
Closes: #7091 Closes: #6855 Closes: #8105 Co-authored-by: Alex Wied <[email protected]>
- Loading branch information
1 parent
c4213f0
commit 34f2477
Showing
10 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Release X.Y (202?-??-??) | ||
|
||
- Add a `load-limit` setting to control builder parallelism. This has | ||
also been backported to the 2.18 and later release branches. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
with import ./config.nix; | ||
|
||
mkDerivation { | ||
name = "load-limit"; | ||
buildCommand = '' | ||
printf '%s' "''${NIX_LOAD_LIMIT-unset}" > "$out" | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
source common.sh | ||
|
||
TODO_NixOS | ||
|
||
clearStore | ||
|
||
outPath=$(nix-build --load-limit 100 load-limit.nix --no-out-link) | ||
text=$(cat "$outPath") | ||
if test "$text" != "100"; then exit 1; fi | ||
|
||
clearStore | ||
|
||
outPath=$(nix-build --load-limit 0 load-limit.nix --no-out-link) | ||
text=$(cat "$outPath") | ||
if test "$text" != "0"; then exit 1; fi | ||
|
||
clearStore | ||
|
||
outPath=$(nix-build --load-limit none load-limit.nix --no-out-link) | ||
text=$(cat "$outPath") | ||
if test "$text" != "unset"; then exit 1; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters