Revert "workflows/eval: disable swap"#432286
Merged
wolfgangwalther merged 2 commits intoNixOS:masterfrom Aug 9, 2025
Merged
Conversation
Contributor
Author
|
One PR where we hit this was #428706. Another one was, when I tested all Lix / Nix versions on updates to |
This reverts commit f2648b2. While the idea to never use swap was fine, in practice this meant that when nix ran OOM, some other process was killed instead. This lead to the job not being possible to be cancelled anymore and thus needing to timeout, before subsequent jobs could be scheduled. This can take up to 6 hours for GitHub Actions by default. Re-enabling the swap file to catch this case more gracefully. It's still the goal to never actually *use* the swap file during Eval and just a safeguard. Keeping the changed chunkSize and not reverting it - this makes it slightly less likely to hit the swap file when running with Lix.
None of our jobs is expected to run for 6 hours, the GitHub limit. These limits are generous and take into accounts that some jobs need to wait for others. If jobs exceed these times, most likely something else is wrong and needs investigation.
5755176 to
436d541
Compare
philiptaron
approved these changes
Aug 9, 2025
Contributor
philiptaron
left a comment
There was a problem hiding this comment.
There are likely tricks that we can run with systemd’s and Linux’s OOM knobs and adjustments, but the immediate restoration of swap combined with data-derived timeouts is where the smart money lands.
Contributor
|
Successfully created backport PR for |
1 task
13 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This reverts commit f2648b2.
While the idea to never use swap was fine, in practice this meant that when nix ran OOM, some other process was killed instead. This lead to the job not being possible to be cancelled anymore and thus needing to timeout, before subsequent jobs could be scheduled. This can take up to 6 hours for GitHub Actions by default.
Re-enabling the swap file to catch this case more gracefully. It's still the goal to never actually use the swap file during Eval and just a safeguard.
Keeping the changed
chunkSizeand not reverting it - this makes it slightly less likely to hit the swap file when running with Lix.Also setting sensible timeouts for all jobs to make sure that if we ever hit that again, these PRs are not blocked for 6 hours...
Things done
Add a 👍 reaction to pull requests you find important.