Nixpkgs Stdenv | 220 Members | |
| 70 Servers |
| Sender | Message | Time |
|---|---|---|
| 27 Oct 2024 | ||
you definitely can't go above kern.maxfilesperproc so my expectation is that it's either doing nothing or getting silently capped | 23:54:01 | |
| and apparently not passing down to builds anyway(?) | 23:54:10 | |
| 28 Oct 2024 | ||
| Commented https://github.com/LnL7/nix-darwin/pull/940/files#r1818220494 | 00:02:36 | |
| we basically just aim to match the upstream plist there | 00:03:52 | |
| so probably it's an issue for Nix primarily | 00:04:06 | |
| Edited my comment | 00:05:41 | |
| It did not work before https://github.com/NixOS/nix/pull/6645 as shown by issue https://github.com/NixOS/nix/issues/6557 | 00:05:43 | |
| https://github.com/NixOS/nixpkgs/pull/351783 | 00:05:57 | |
In reply to @artturin:matrix.orgah, okay. wasn't sure on the relative timing | 00:06:08 | |
To check nix build --impure --expr '(import <nixpkgs> {}).runCommand "hi" {} "ulimit -a > $out" | 00:06:29 | |
| heh, I already constructed that when checking Linux | 00:06:43 | |
In reply to @emilazy:matrix.org seems like it gets capped based on
| 00:06:45 | |
| well no need for a redirection | 00:06:45 | |
In reply to @paparodeo:matrix.orgwith a launchd daemon? | 00:07:16 | |
In reply to @emilazy:matrix.org* seems like it gets capped based on
| 00:07:19 | |
| good to know. then it should be harmless to match NixOS | 00:07:23 | |
In reply to @emilazy:matrix.orgjust from shell. | 00:07:31 | |
ulimit -n 99999 failed for me on 10.12. | 00:07:43 | |
| uh, hang on | 00:07:51 | |
| 00:07:55 | |
I'm confused: why is ulimit -n 4096 ever fixing builds? it should be making the problem worse. | 00:08:24 | |
| I fear this is some kind of cursed environment difference. | 00:08:50 | |
How about nix build --impure --expr '(import <nixpkgs> {}).runCommand "hi" {} "bash -c \"ulimit -a\"" | 00:09:32 | |
* How about nix build --impure --expr '(import <nixpkgs> {}).runCommand "hi" {} "bash -c \"ulimit -a\""' | 00:09:55 | |
| same result. | 00:10:36 | |
| oh. | 00:10:48 | |
| I think I know what's going on. | 00:10:52 | |
| reno doesn't use nix-darwin, and maybe the Nix installation is old? | 00:10:59 | |
| no, wait, that doesn't explain it, since it used to be 4096 still. | 00:11:21 | |
What if in one of the places that require the ulimit to be set you set it to the linux number instead of 4096 | 00:11:29 | |