!PbtOpdWBSRFbEZRLIf:numtide.com

Nix Community Projects

591 Members
Meta discussions related to https://nix-community.org. (For project specific discussions use github issues or projects own matrix channel). Need help from an admin? Open an issue on https://github.com/nix-community/infra/issues155 Servers

Load older messages


SenderMessageTime
26 Jan 2025
@emilazy:matrix.orgemily might be good to lower cores/max-jobs though I don't know if it's already overloaded from other builds 21:24:55
@ihar.hrachyshka:matrix.orgIhar Hrachyshka emily: ok sorry, I'm obtuse :) you want me to hold off for now? that's fine, I can do something else. 21:24:59
@emilazy:matrix.orgemily could you just try with lower cores/max-jobs settings maybe? 21:25:21
@emilazy:matrix.orgemilythe default is 10 cores + 10 jobs, which can mean up to ~100 threads on a 10-core processor21:25:39
@emilazy:matrix.orgemily the stdenv build will take hours anyway so it's not urgent, but I don't want to throw more jobs at an already overloaded machine 21:26:08
@ihar.hrachyshka:matrix.orgIhar Hrachyshkait's 1 job for me. how do I limit the cores? is there a universal recipe or I patch cmake files?21:26:25
@emilazy:matrix.orgemily it's --option cores and --option max-jobs in Nix (-j for short on the latter) 21:28:41
@emilazy:matrix.orgemilythat said there are like 6 Python processes using up a huge amount of CPU so if you're only building one package I'm not sure it's the problem :)21:29:21
@ihar.hrachyshka:matrix.orgIhar HrachyshkaI think I know which package it is lol21:31:43
@ihar.hrachyshka:matrix.orgIhar Hrachyshkajax pretty sure21:31:48
@ihar.hrachyshka:matrix.orgIhar Hrachyshka you should probably ask Gaétan Lepage I believe he was looking at this derivation lately and we had some convos around the memory hogging / test timeouts there 21:32:27
@emilazy:matrix.orgemilyideally the builder would not be unusably overloaded every couple days :(21:33:28
@emilazy:matrix.orgemilyanyway, if you ^C'd your build then it's definitely not that (since the machine is still struggling)21:35:17
@emilazy:matrix.orgemilyso feel free to put it back21:35:25
@ihar.hrachyshka:matrix.orgIhar Hrachyshkayeah I'm not building most of the time.21:35:39
@ihar.hrachyshka:matrix.orgIhar Hrachyshkafor context on jax, I reported the build cpu hogging behavior here: https://github.com/NixOS/nixpkgs/pull/374810#issuecomment-2602217892 and I guess we are still not sure what's going on with the package. but tl;dr it's not even darwin specific, my nix-darwin builder vm also struggles the same way.21:36:38
@emilazy:matrix.orgemilyeven without memory hogging, >100% of available CPU cores regularly being used by one user on a community resource is just not fun to deal with21:37:23
@ihar.hrachyshka:matrix.orgIhar Hrachyshkathink the suggestion by SuperSandro to disable the test suite for jax until we have a grasp of what's going on may be a good one then https://github.com/NixOS/nixpkgs/pull/374810#discussion_r192839427321:39:53
@emilazy:matrix.orgemilyI mean, anyone can choose how many threads they use up on the builders, it's just a matter of adjusting the setting21:40:48
@emilazy:matrix.orgemily (except for packages that don't respect $NIX_BUILD_CORES at all, but that's a package bug) 21:41:01
@emilazy:matrix.orgemily zowoq: would it be possible to get some jobs killed on the Darwin builder? I had some free time tonight and am trying to test Darwin stdenv build fixes and Rust hash changes for the staging-next cycle in a couple of days, but with load average at 2× cores it can't handle the current load let alone piling on more. 21:50:19
@emilazy:matrix.orgemilylooks like it's doing a bit better now22:09:30
@glepage:matrix.orgGaétan Lepage

I ran some jax builds on darwin this afternoon.
I have reduced --max-jobs to 4 for the darwin builders, but when 4 "big" packages are built at the same time the load can grow too much for sure.
Btw, is there a way to set the --cores option from the remote builders configuration ? I couldn't find it.

Final question, how fare are we budget-wise from getting more mac builders ? I can probably manage to contribute to get us there...

23:39:00
@glepage:matrix.orgGaétan Lepage *

I ran some jax builds on darwin this afternoon.
I have reduced --max-jobs to 4 for the darwin builders, but when 4 "big" packages are built at the same time the load can grow too much for sure.
Btw, is there a way to set the --cores option from the remote builders configuration ? I couldn't find it.

Final question, how far are we budget-wise from getting more mac builders ? I can probably manage to contribute to get us there...

23:43:00
27 Jan 2025
@zowoq:matrix.orgzowoq

I have reduced --max-jobs to 4 for the darwin builders, but when 4 "big" packages are built at the same time the load can grow too much for sure.

Please set max-jobs to 1.

is there a way to set the --cores option from the remote builders configuration

No, not supported.

how far are we budget-wise from getting more mac builders

Not planning to get more mac builders and budget-wise we haven't covered the cost of the new aarch64-linux build box yet.

00:38:27
@zowoq:matrix.orgzowoqWe could try changing the defaults on the box? 00:39:34
@emilazy:matrix.orgemily does the nix.conf cores setting apply to remote builder use? 00:40:02
@emilazy:matrix.orgemilyseems like a good idea if so00:40:07
@emilazy:matrix.orgemily though picking a balance is always hard, it's the old big-parallel problem. but cores = jobs = nproc is probably not ideal for a shared machine 00:40:49
@zowoq:matrix.orgzowoqcores will apply to remote builds but everyone is trusted so it can be overridden if running builds directly on the box.00:47:25

Show newer messages


Back to Room ListRoom Version: 6