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

nix-daemon: increase SoftResourceLimits.NumberOfFiles #940

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

zowoq
Copy link
Contributor

@zowoq zowoq commented Apr 24, 2024

Copy link
Collaborator

@Enzime Enzime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Enzime Enzime merged commit 230a197 into LnL7:master Apr 24, 2024
6 checks passed
@zowoq zowoq deleted the nix-daemon branch April 24, 2024 08:18
@@ -51,7 +51,7 @@ in
serviceConfig.ProcessType = config.nix.daemonProcessType;
serviceConfig.LowPriorityIO = config.nix.daemonIOLowPriority;
serviceConfig.Label = "org.nixos.nix-daemon"; # must match daemon installed by Nix regardless of the launchd label Prefix
serviceConfig.SoftResourceLimits.NumberOfFiles = mkDefault 4096;
serviceConfig.SoftResourceLimits.NumberOfFiles = mkDefault 1048576;
Copy link

@Artturin Artturin Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In nixpkgs stdenv room we're wondering if this is even doing anything

It did not work before NixOS/nix#6645 as shown by issue NixOS/nix#6557

Weird stuff going on

$ nix build --impure --expr 'with (builtins.getFlake "nixpkgs").legacyPackages.x86_64-darwin; runCommand "x" {} "ulimit -a > $out"' -L
$ cat result
core file size              (blocks, -c) 0
data seg size               (kbytes, -d) unlimited
file size                   (blocks, -f) unlimited
max locked memory           (kbytes, -l) unlimited
max memory size             (kbytes, -m) unlimited
open files                          (-n) 1048576
pipe size                (512 bytes, -p) 1
stack size                  (kbytes, -s) 8192
cpu time                   (seconds, -t) unlimited
max user processes                  (-u) 5568
virtual memory              (kbytes, -v) unlimited

NixOS/nixpkgs#351783

Seems to be a hydra problem https://matrix.to/#/!OqhvaDMJdKYUicLDiE:nixos.org/$NueHaidIZChpEHdOYgyDIDNHVrhq6eyQm7wF1fNzhQU?via=nixos.org&via=matrix.org&via=nixos.dev

https://matrix.to/#/!RROtHmAaQIkiJzJZZE:nixos.org/$WPYUK97WnwZiFGQMaiGrU0cjIJyG07GtfzLW058S8R0?via=nixos.org&via=matrix.org&via=nixos.dev

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.

3 participants