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

Respect max-substitution-jobs again (backport #11402) #11408

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Sep 3, 2024

Motivation

This broke in #11005. Any number of PathSubstitutionGoals would be woken up by a single build slot becoming available. If there are a lot of substitution goals active, this could lead to us running out of file descriptors (especially on macOS where the default limit is 256).

Note: we have a bit of a thundering herd problem here, since it's pretty inefficient to wake up potentially hundreds of goals, most of which will immediately go to sleep again. Ideally waitForBuildSlot() would wake up only one co-routine of the right type.

Context

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.


This is an automatic backport of pull request #11402 done by [Mergify](https://mergify.com).

This broke in #11005. Any number of PathSubstitutionGoals would
be woken up by a single build slot becoming available. If there
are a lot of substitution goals active, this could lead to us
running out of file descriptors (especially on macOS where the
default limit is 256).

(cherry picked from commit a33cb8a)
Slight cleanup.

(cherry picked from commit b7acd1c)
@mergify mergify bot requested a review from Ericson2314 as a code owner September 3, 2024 11:36
@mergify mergify bot added the merge-queue label Sep 3, 2024
@edolstra edolstra enabled auto-merge September 3, 2024 11:36
@edolstra edolstra merged commit f1ab41b into 2.24-maintenance Sep 3, 2024
23 checks passed
@edolstra edolstra deleted the mergify/bp/2.24-maintenance/pr-11402 branch September 3, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant