!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

233 Members
75 Servers

Load older messages


SenderMessageTime
27 Oct 2024
@emilazy:matrix.orgemilyit fails.23:48:30
@paparodeo:matrix.org@paparodeo:matrix.org
In reply to @emilazy:matrix.org
it turns out that it's 10240 on 10.12 so we probably can't go above that for now >:(
kern.maxfilesperproc: 98304
23:48:33
@emilazy:matrix.orgemilyand I don't want to implement conditional logic.23:48:36
@emilazy:matrix.orgemily
In reply to @paparodeo:matrix.org
kern.maxfilesperproc: 98304
wow they really just keep bumping it up
23:48:43
@emilazy:matrix.orgemilyok I'll put it at 10240 for now.23:48:49
@emilazy:matrix.orgemilyridiculous number.23:48:53
@artturin:matrix.orgArtturin ulimit || ulimit || ulimit 23:49:09
@emilazy:matrix.orgemilythey could at last have made it 1638423:49:14
@emilazy:matrix.orgemily
In reply to @artturin:matrix.org
ulimit || ulimit || ulimit
yeah. but otoh nothing in the tree sets it above 8196.
23:49:23
@emilazy:matrix.orgemilyso it doesn't seem worth it. I can bump it as a treat to myself every time I bump the minimum macOS version.23:49:35
@artturin:matrix.orgArtturinhttps://github.com/LnL7/nix-darwin/blob/5c0c6aaa797d6ccbb6cdab14de0248135735709d/modules/services/nix-daemon.nix#L5123:52:35
@artturin:matrix.orgArtturinnix-darwin has 104857623:52:40
@artturin:matrix.orgArtturinWonder if it's applying for them23:53:05
@emilazy:matrix.orgemilyhttps://github.com/LnL7/nix-darwin/commit/ec06ea883757c6075c61d1426f40719742d51f5923:53:24
@emilazy:matrix.orgemilywas just copied from Nix23:53:31
@emilazy:matrix.orgemily 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
@emilazy:matrix.orgemilyand apparently not passing down to builds anyway(?)23:54:10
28 Oct 2024
@artturin:matrix.orgArtturinCommented https://github.com/LnL7/nix-darwin/pull/940/files#r181822049400:02:36
@emilazy:matrix.orgemilywe basically just aim to match the upstream plist there00:03:52
@emilazy:matrix.orgemilyso probably it's an issue for Nix primarily00:04:06
@artturin:matrix.orgArtturinEdited my comment00:05:41
@artturin:matrix.orgArtturinIt did not work before https://github.com/NixOS/nix/pull/6645 as shown by issue https://github.com/NixOS/nix/issues/655700:05:43
@emilazy:matrix.orgemilyhttps://github.com/NixOS/nixpkgs/pull/35178300:05:57
@emilazy:matrix.orgemily
In reply to @artturin:matrix.org
It did not work before https://github.com/NixOS/nix/pull/6645 as shown by issue https://github.com/NixOS/nix/issues/6557
ah, okay. wasn't sure on the relative timing
00:06:08
@artturin:matrix.orgArtturin To check nix build --impure --expr '(import <nixpkgs> {}).runCommand "hi" {} "ulimit -a > $out" 00:06:29
@emilazy:matrix.orgemilyheh, I already constructed that when checking Linux00:06:43
@paparodeo:matrix.org@paparodeo:matrix.org
In reply to @emilazy:matrix.org
you definitely can't go above kern.maxfilesperproc so my expectation is that it's either doing nothing or getting silently capped

seems like it gets capped based on

include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>


int main(void)
{
    int count = 3;
    while (open("/dev/null", O_RDONLY) != -1) {
        count++;
    }
    printf("%s: %d\n", strerror(errno), count);
    return 0;
}
00:06:45
@artturin:matrix.orgArtturinwell no need for a redirection00:06:45
@emilazy:matrix.orgemily
In reply to @paparodeo:matrix.org

seems like it gets capped based on

include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>


int main(void)
{
    int count = 3;
    while (open("/dev/null", O_RDONLY) != -1) {
        count++;
    }
    printf("%s: %d\n", strerror(errno), count);
    return 0;
}
with a launchd daemon?
00:07:16
@paparodeo:matrix.org@paparodeo:matrix.org
In reply to @emilazy:matrix.org
you definitely can't go above kern.maxfilesperproc so my expectation is that it's either doing nothing or getting silently capped
*

seems like it gets capped based on

#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>


int main(void)
{
    int count = 3;
    while (open("/dev/null", O_RDONLY) != -1) {
        count++;
    }
    printf("%s: %d\n", strerror(errno), count);
    return 0;
}
00:07:19

Show newer messages


Back to Room ListRoom Version: 9