| 12 Nov 2025 |
Winter | and i actually see 4 workers being spawned | 20:03:19 |
Winter | and my memory+cpu being hammered | 20:03:29 |
Winter | 😉 | 20:03:34 |
ma27 | but, what are you referring to in the readme? afaiu it doesn't say something else (or rather, nothing on the default), no? | 20:06:53 |
Winter | By default, nix-eval-jobs spawns as many worker processes as there are hardware threads in the system and limits the memory usage for each worker to 4GB.
| 20:07:22 |
Winter | By default, nix-eval-jobs spawns as many worker processes as there are hardware threads in the system and limits the memory usage for each worker to 4GB.
| 20:07:30 |
ma27 | ah right. | 20:08:51 |
ma27 | yeah no you're right. | 20:09:17 |
ma27 | feel free to file a cl :) | 20:09:21 |
Winter | do we want to simply remove that note from the readme, or change nrWorkers to actually default to nproc? | 20:12:19 |
ma27 | my personal preference would be to keep the behavior as-is and just fix the docs. | 20:15:45 |
Winter | gotcha | 20:45:11 |
Winter | learning that n-e-j doesn | 20:45:15 |
Winter | ...'t die on sigpipe and groaning | 20:45:23 |
raitobezarius | i think there's a bunch of CL improvements from aloisw on n-e-j | 21:56:52 |
| 13 Nov 2025 |
aloisw | SIGPIPE is not in it though. Also it seems like the entirety of Lix just ignores it completely. I think the best way forward would not be to special-case it in nix-eval-jobs, but to treat as an interrupt like SIGTERM and SIGHUP. | 05:59:10 |
Winter | i believe i only looked at nix but it appears that they’re not explicitly ignoring it at least, instead just saying to use the OS’ default signal handler for it? | 06:15:06 |
Winter | and yeah, agreed | 06:15:10 |
Winter | guess i could write a patch for that pretty easily | 06:15:40 |
Winter | once i wrap my head around the current state of affairs described above | 06:15:49 |
aloisw | In reply to @winter:catgirl.cloud i believe i only looked at nix but it appears that they’re not explicitly ignoring it at least, instead just saying to use the OS’ default signal handler for it? https://git.lix.systems/lix-project/lix/src/commit/78bdc60c11031d2293b2e77a0e44140ff7b88f12/lix/libutil/signals.cc#L189-L197 | 07:25:58 |
aloisw | The solution I imagined above was just adding SIGPIPE here: https://git.lix.systems/lix-project/lix/src/commit/78bdc60c11031d2293b2e77a0e44140ff7b88f12/lix/libutil/signals.cc#L119 | 07:26:54 |
aloisw | Of course that's not going to work because SIGPIPE is only sent to the writing thread. | 11:45:10 |
| Alicia joined the room. | 22:44:56 |
| 15 Nov 2025 |
| Katie joined the room. | 18:22:52 |
| 16 Nov 2025 |
Grimmauld (any/all) | Quick heads-up: I believe https://git.lix.systems/lix-project/lix/src/commit/e101400359558ec89f0a3afa29631ca1b6546fd3/lix/libutil/processes.cc#L20-L22 should be unconditional. On glibc gcc this header is included implicitly. On musl llvm, that include is needed or otherwise SYS_capset (https://git.lix.systems/lix-project/lix/src/commit/243836ed0a0b963eebd033d109e6cb817d67fde4/lix/libutil/processes.cc#L414) is undefined. | 08:49:40 |
Sergei Zimmerman (xokdvium) | On my dev machine I'm getting:
+(tarball.sh:31) nix-build -o /tmp/nix-test/tarball/result -E 'import (fetchTarball { url = "file:///does-not-exist/must-remain-unused//tmp/nix-test/tarball/tarball.tar"; sha256 = "sha256-PRgXPIzueCAIFHesj5pSLlDYbJsrGmUD8B9gpbs9p9Q="; })'
++(tarball.sh:36) mktemp -d
+(tarball.sh:36) export HOME=/tmp/tmp.0S4oIlI3Xo
+(tarball.sh:36) HOME=/tmp/tmp.0S4oIlI3Xo
tarball.sh: line 37: TMPDIR: unbound variable
Seems like function tests need to provide a sensible default for TMPDIR if it's not set
| 23:49:08 |
Sergei Zimmerman (xokdvium) | * On my dev machine I'm getting:
+(tarball.sh:31) nix-build -o /tmp/nix-test/tarball/result -E 'import (fetchTarball { url = "file:///does-not-exist/must-remain-unused//tmp/nix-test/tarball/tarball.tar"; sha256 = "sha256-PRgXPIzueCAIFHesj5pSLlDYbJsrGmUD8B9gpbs9p9Q="; })'
++(tarball.sh:36) mktemp -d
+(tarball.sh:36) export HOME=/tmp/tmp.0S4oIlI3Xo
+(tarball.sh:36) HOME=/tmp/tmp.0S4oIlI3Xo
tarball.sh: line 37: TMPDIR: unbound variable
Seems like functional tests need to provide a sensible default for TMPDIR if it's not set
| 23:49:27 |
| 17 Nov 2025 |
raitobezarius | Can you open an issue with this trace so I don't forget about it? Thanks! | 00:03:55 |
Sergei Zimmerman (xokdvium) | https://git.lix.systems/lix-project/lix/issues/1035 | 00:09:21 |