Skip to content

Commit

Permalink
Brin LimitNOFILE back down to 1024 * 1024 due to the performance impa…
Browse files Browse the repository at this point in the history
…ct of too many FDs (#1128)
  • Loading branch information
grahamc authored Aug 30, 2024
1 parent 74cdf22 commit e6dd0e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ fn generate_plist() -> DeterminateNixDaemonPlist {
standard_error_path: "/var/log/determinate-nix-daemon.log".into(),
standard_out_path: "/var/log/determinate-nix-daemon.log".into(),
soft_resource_limits: ResourceLimits {
number_of_files: 512 * 1024 * 1024,
number_of_files: 1024 * 1024,
number_of_processes: 1024 * 1024,
stack: 64 * 1024 * 1024,
},
hard_resource_limits: ResourceLimits {
number_of_files: 512 * 1024 * 1024,
number_of_files: 1024 * 1024,
number_of_processes: 1024 * 1024,
stack: 64 * 1024 * 1024,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ConditionPathIsReadWrite=/nix/var/nix/daemon-socket
[Service]
ExecStart=@/usr/local/bin/determinate-nixd determinate-nixd
KillMode=process
LimitNOFILE=536870912
LimitNOFILE=1048576
LimitSTACK=64M
TasksMax=1048576

Expand Down

0 comments on commit e6dd0e6

Please sign in to comment.