Skip to content

Enable cgroups delegation for systemd#11414

Merged
edolstra merged 1 commit intoNixOS:masterfrom
parkerhoyes:cgroups-delegation
Sep 4, 2024
Merged

Enable cgroups delegation for systemd#11414
edolstra merged 1 commit intoNixOS:masterfrom
parkerhoyes:cgroups-delegation

Conversation

@parkerhoyes
Copy link
Contributor

Motivation

When use-cgroups is enabled, the nix daemon creates sub-cgroups for the build processes (and itself if #11412 is merged, see #9675). Delegate should be set to prevent systemd from messing with the nix service's cgroups (https://github.com/systemd/systemd/blob/main/docs/CGROUP_DELEGATION.md) and ensure the OOM killer only targets the offending derivation and not the entire service (#10374).

Context

Also submitted a PR for the same change to NixOS: NixOS/nixpkgs#339310

Priorities and Process

Add 👍 to pull requests you find important.

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

@edolstra edolstra enabled auto-merge September 4, 2024 10:59
@edolstra edolstra merged commit 357cec9 into NixOS:master Sep 4, 2024
@parkerhoyes parkerhoyes deleted the cgroups-delegation branch September 4, 2024 17:42
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.

2 participants