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

Bring LimitNOFILE back down to 1024 * 1024 due to the performance impact of too many FDs #1128

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading