!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

234 Members
75 Servers

Load older messages


SenderMessageTime
28 Oct 2024
@emilazy:matrix.orgemilygood to know. then it should be harmless to match NixOS00:07:23
@paparodeo:matrix.org@paparodeo:matrix.org
In reply to @emilazy:matrix.org
with a launchd daemon?
just from shell.
00:07:31
@emilazy:matrix.orgemily ulimit -n 99999 failed for me on 10.12. 00:07:43
@emilazy:matrix.orgemilyuh, hang on00:07:51
@emilazy:matrix.orgemily
emily@yuyuko ~> nix build --impure --expr 'with (builtins.getFlake "nixpkgs").legacyPackages.x86_64-darwin; runCommand "x" {} "ulimit -a > $out"' -L
emily@yuyuko ~> 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
00:07:55
@emilazy:matrix.orgemily I'm confused: why is ulimit -n 4096 ever fixing builds? it should be making the problem worse. 00:08:24
@emilazy:matrix.orgemilyI fear this is some kind of cursed environment difference.00:08:50
@artturin:matrix.orgArtturin How about nix build --impure --expr '(import <nixpkgs> {}).runCommand "hi" {} "bash -c \"ulimit -a\"" 00:09:32
@artturin:matrix.orgArtturin * How about nix build --impure --expr '(import <nixpkgs> {}).runCommand "hi" {} "bash -c \"ulimit -a\""' 00:09:55
@emilazy:matrix.orgemilysame result.00:10:36
@emilazy:matrix.orgemilyoh.00:10:48
@emilazy:matrix.orgemilyI think I know what's going on.00:10:52
@emilazy:matrix.orgemily reno doesn't use nix-darwin, and maybe the Nix installation is old? 00:10:59
@emilazy:matrix.orgemilyno, wait, that doesn't explain it, since it used to be 4096 still.00:11:21
@artturin:matrix.orgArtturin 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
@emilazy:matrix.orgemilyto check if too-high values are getting capped, or?00:12:44
@artturin:matrix.orgArtturinIf setting it above the limit is interpreted as 1 or something00:13:21
@artturin:matrix.orgArtturinwell it shouldn't be 1 because then all builds would fail 00:13:43
@artturin:matrix.orgArtturinhmm00:13:46
@artturin:matrix.orgArtturin How does ulimit for you show the number above the limit 00:14:10
@paparodeo:matrix.org@paparodeo:matrix.org
nb -E '(import <nixpkgs>{}).runCommand "foo" {} "ulimit -n"'  
this derivation will be built:
  /nix/store/15zc62jpxd2sszpaidzcsfxs4clpf4jc-foo.drv
building '/nix/store/15zc62jpxd2sszpaidzcsfxs4clpf4jc-foo.drv'...
1048576
00:14:28
@emilazy:matrix.orgemily
In reply to @artturin:matrix.org
How does ulimit for you show the number above the limit
so ulimit -n 122881 actually works on macOS 15, I guess it changed since 10.12. and it's reported as 122881. but presumably capped as reno described seeing
00:15:14
@emilazy:matrix.orgemily
In reply to @paparodeo:matrix.org
nb -E '(import <nixpkgs>{}).runCommand "foo" {} "ulimit -n"'  
this derivation will be built:
  /nix/store/15zc62jpxd2sszpaidzcsfxs4clpf4jc-foo.drv
building '/nix/store/15zc62jpxd2sszpaidzcsfxs4clpf4jc-foo.drv'...
1048576
I take it you didn't observe black going from failing to reliably passing with your PR, right? I'm wondering if actually the problem is just that Hydra has a messed up setup.
00:15:56
@artturin:matrix.orgArtturinI didn't really look in to it or monitor it00:16:27
@paparodeo:matrix.org@paparodeo:matrix.org
In reply to @emilazy:matrix.org
I take it you didn't observe black going from failing to reliably passing with your PR, right? I'm wondering if actually the problem is just that Hydra has a messed up setup.
it never failed for me.
00:16:31
@paparodeo:matrix.org@paparodeo:matrix.org
In reply to @emilazy:matrix.org
I take it you didn't observe black going from failing to reliably passing with your PR, right? I'm wondering if actually the problem is just that Hydra has a messed up setup.
* it never failed for me locally
00:16:43
@paparodeo:matrix.org@paparodeo:matrix.orgI had also assumed that the limit was 25600:16:56
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de left the room.00:20:05
@emilazy:matrix.orgemily the good news is that the Go compiler derivation runs ulimit -a. 00:20:06
@emilazy:matrix.orgemilyhttps://hydra.nixos.org/build/274250874/nixlog/100:20:08

Show newer messages


Back to Room ListRoom Version: 9