From aaeecc2784859b615a446dfac9eae2686e1b71b5 Mon Sep 17 00:00:00 2001 From: Florian Sesser <florian@privatestorage.io> Date: Fri, 26 Mar 2021 00:10:41 +0000 Subject: [PATCH] Fix privatestorageops issue 278 Systemd sets soft limits by using a <soft:hard> range, see https://github.com/systemd/systemd/pull/1994. We want soft and hard limit to be the same, so we use the IMO defective former behavior of setting the limit once and have systemd set both. RedHat Bug 1351415 has more informatin about not being able to set soft limits within the systemd config in before https://bugzilla.redhat.com/show_bug.cgi?id=1351415 --- nixos/modules/tahoe.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nixos/modules/tahoe.nix b/nixos/modules/tahoe.nix index cd7306d6..33047491 100644 --- a/nixos/modules/tahoe.nix +++ b/nixos/modules/tahoe.nix @@ -229,13 +229,12 @@ in # listening ports and such. This currently doesn't factor into # our choice but perhaps it could somehow. # + # Tahoe-LAFS has no logic to raise soft limit to hard limit so + # make it the same. + # # There is only one IPv4 address assigned to each host right # now. So it makes sense to have the limit be 2^15 right now. LimitNOFILE = 32768; - - # Tahoe-LAFS has no logic to raise soft limit to hard limit so - # make it the same. - LimitNOFILESoft = 32768; }; preStart = let -- GitLab