!PbtOpdWBSRFbEZRLIf:numtide.com

Nix Community Projects

602 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/issues158 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
20 Jul 2024
@traxys:familleboyer.netTraxys I tried this command: nix run nixpkgs#nix-eval-jobs -- --workers 1 --check-cache-status --force-recurse --flake 'github:nix-community/nixvim#checks' and that's what used ~4.7 GiB 20:46:40
@traxys:familleboyer.netTraxysWell not github though, a local checkout of the PR removing a link farm20:47:36
@joerg:thalheim.ioMic92Doesn't sound that crazy20:51:12
@joerg:thalheim.ioMic92is your link farm aggregating all plugins in one attribute?20:51:25
@traxys:familleboyer.netTraxysYeah20:51:47
@joerg:thalheim.ioMic92Sounds like something that would actually make parallel evaluation slower20:51:50
@traxys:familleboyer.netTraxysI'd say it had about 300 derivations?20:52:12
@traxys:familleboyer.netTraxys(as a 1000 checks were with all 4 architectures)20:52:54
@traxys:familleboyer.netTraxys We had a link farm I think mostly for the reason fixed by https://github.com/nix-community/buildbot-nix/pull/217
Though I have a question, why does using a link farm consume more RAM than splitting them up? Shouldn't we expect the same result in-fine ?
20:56:38
@magic_rb:matrix.redalder.orgmagic_rbIirc nix doesnt really do GC that well20:59:08
@magic_rb:matrix.redalder.orgmagic_rbSo it doesnt GC as much as you would think it should20:59:23
@aidalgol:matrix.orgaidalgolDo you mean the nix store, or nix the language and runtime?21:38:51
@aidalgol:matrix.orgaidalgol * Do you mean the nix store, or the nix language runtime?21:40:34
@tomberek:matrix.orgtomberekThe language GC (to help control memory usage) is quite costly. It is also very conservative, so it is not as beneficial as it might be if we had a dedication allocation and GC system that understood Nix semantics. With additional strictness or linearity analysis it is possible we could collect many more values. Nixpkgs is also a big to blame here, it is built in a way that makes it harder to GC things.21:41:35
@tomberek:matrix.orgtomberek * The language GC (to help control memory usage) is quite costly. It is also very conservative, so it is not as beneficial as it might be if we had a dedication allocation and GC system that understood Nix semantics. With additional strictness or linearity analysis it is possible we could collect many more values. Nixpkgs is also a bit to blame here, it is built in a way that makes it harder to GC things.21:41:49
@zowoq:matrix.orgzowoq
In reply to @traxys:familleboyer.net
zowoq I tried running the command you provided with this PR and I get a Maximum Resident Set Size of 4.7 GiB, is this more acceptable?
Yes, that will fix it.
23:42:44
21 Jul 2024
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @tomberek:matrix.org
The language GC (to help control memory usage) is quite costly. It is also very conservative, so it is not as beneficial as it might be if we had a dedication allocation and GC system that understood Nix semantics. With additional strictness or linearity analysis it is possible we could collect many more values. Nixpkgs is also a big to blame here, it is built in a way that makes it harder to GC things.
How does nixpkgs contribute to the problem?
08:01:54
@emilazy:matrix.orgemilyeverything is circular08:16:41
@aloisw:kde.org@aloisw:kde.org
In reply to @magic_rb:matrix.redalder.org
How does nixpkgs contribute to the problem?
Nixpkgs derivations remember too much of their inputs.
08:29:44
@traxys:familleboyer.netTraxys zowoq we merged the PR that reduced the memory usage. We'd need to ask all open PRs to rebase on main, and we should be good to re-enable buildbot 13:22:20
@mattsturg:matrix.orgMatt SturgeonWas our stable branch affected by the issue? Do we need to disable buildbot on that branch until the change is backported, or since it is a low traffic branch is it enough that we simply avoid triggering any CI builds on stable for now?13:39:16
@traxys:familleboyer.netTraxysI don't really know :/14:00:57
@mattsturg:matrix.orgMatt Sturgeon

I'm out and about so can't check right now, but we can try running the eval command on our stable branch to see?

nix run nixpkgs#nix-eval-jobs -- --workers 1 --check-cache-status --force-recurse --flake 'github:nix-community/nixvim/nixos-24.05#checks'

Or just enable buildbot and test it on the branch when someone's around to restart it if it crashes?

14:44:58
@zowoq:matrix.orgzowoqI think you'll need https://github.com/nix-community/buildbot-nix/pull/217 as well to avoid the rate limit problems https://github.com/nix-community/buildbot-nix/issues/178?22:24:25
22 Jul 2024
@traxys:familleboyer.netTraxysWhen I launched a job I did not encounter that, but that may be because it was a single job, and if we switched on buildbot we would have issues due with many PRs08:11:48
@traxys:familleboyer.netTraxys(and I think our stable branch is affected too, so we need to backport some of this)08:12:07
@clumsily6239:matrix.orgClumsily6239Can I login into a user without triggering their ~/.config/autostart and systemd user services?12:38:36
@k900:0upti.meK900Depends on your definition of "login"12:38:58
@clumsily6239:matrix.orgClumsily6239the standard login from tty? I thought that was the only "login".12:40:09
@k900:0upti.meK900 Log in as root, sudo -u <your user> 12:40:39

Show newer messages


Back to Room ListRoom Version: 6