From 4b2f155f0a22179e46d2c55cb1bd074c885fd08e Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Thu, 6 Jul 2023 09:00:49 -0700 Subject: [PATCH 1/2] nix-daemon.service: Add TasksMax=infinity --- misc/systemd/nix-daemon.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/systemd/nix-daemon.service.in b/misc/systemd/nix-daemon.service.in index f46413630..4b4474475 100644 --- a/misc/systemd/nix-daemon.service.in +++ b/misc/systemd/nix-daemon.service.in @@ -10,6 +10,7 @@ ConditionPathIsReadWrite=@localstatedir@/nix/daemon-socket ExecStart=@@bindir@/nix-daemon nix-daemon --daemon KillMode=process LimitNOFILE=1048576 +TasksMax=infinity [Install] WantedBy=multi-user.target From d76bf29c5f55f63f10741290c8d415c880a80ac2 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Fri, 7 Jul 2023 07:52:16 -0700 Subject: [PATCH 2/2] Choose a reasonable number similar to LimitNOFile --- misc/systemd/nix-daemon.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/systemd/nix-daemon.service.in b/misc/systemd/nix-daemon.service.in index 4b4474475..45fbea02c 100644 --- a/misc/systemd/nix-daemon.service.in +++ b/misc/systemd/nix-daemon.service.in @@ -10,7 +10,7 @@ ConditionPathIsReadWrite=@localstatedir@/nix/daemon-socket ExecStart=@@bindir@/nix-daemon nix-daemon --daemon KillMode=process LimitNOFILE=1048576 -TasksMax=infinity +TasksMax=1048576 [Install] WantedBy=multi-user.target