!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

420 Members
Discussion about documentation improvements around the Nix ecosystem84 Servers

Load older messages


SenderMessageTime
28 Jun 2023
@zardian:matrix.org@zardian:matrix.org joined the room.06:32:32
@joerg:thalheim.io@joerg:thalheim.iopennae: so you are saying manual generation is already much faster? I haven't benchmarked in a while.12:36:56
@drupol:matrix.orgPolI just submitted a PR to fix the nixos manual 12:43:58
@drupol:matrix.orgPolhttps://github.com/NixOS/nixos-homepage/pull/108512:44:01
@drupol:matrix.orgPolBut this doesn't have impact on speed 12:44:13
@drupol:matrix.orgPolJust than the produced html is wrong atm12:44:25
@drupol:matrix.orgPol* Just that the produced html is wrong atm12:44:36
@drupol:matrix.orgPolThis PR actually https://github.com/NixOS/nixpkgs/pull/24032712:45:14
@pennae:matrix.eno.space@pennae:matrix.eno.space
In reply to @joerg:thalheim.io
pennae: so you are saying manual generation is already much faster? I haven't benchmarked in a while.
yeah, when we started out we cut about 40% of eval time off of it. can't remember how much the manual still costs, but it wasn't a substantial fraction or we would've probably gone there too.
(instead we went for the nix evaluator, and if that seems like the easier thing to do ...)
13:10:43
@joerg:thalheim.io@joerg:thalheim.ioRedacted or Malformed Event13:12:09
@nbp:mozilla.orgnbp Mic92: Nice password! Thanks for sharing ;) 13:13:45
@pennae:matrix.eno.space@pennae:matrix.eno.spacethere may still be gains to be had with pre-built docs that aren't necessarily accurate to the current system (turning of nixos docs and adding a cached docs package)? haven't benchmarked in a while either13:14:37
@joerg:thalheim.io@joerg:thalheim.ioHow do you measure stuff?13:15:24
@joerg:thalheim.io@joerg:thalheim.ioI find that super hard with nix.13:15:32
@joerg:thalheim.io@joerg:thalheim.io * How do you profile stuff?13:16:05
@pennae:matrix.eno.space@pennae:matrix.eno.spacemostly just enabling/disabling options and running a lot of clean uncached evals13:16:12
@joerg:thalheim.io@joerg:thalheim.ioSol It's a bit of a blind flight. NinjaTrappeur added enough instrumentation to nix to get proper stack samples.13:17:22
@joerg:thalheim.io@joerg:thalheim.ioThe flamegraphs from that looked way more useful.13:17:33
@joerg:thalheim.io@joerg:thalheim.io * So, it's a bit of a blind flight. NinjaTrappeur added enough instrumentation to nix to get proper stack samples.13:17:55
@pennae:matrix.eno.space@pennae:matrix.eno.spaceback then we also used the older nix profiling suite (NIX_COUNT_CALLS? was that the name?) to find the hot spot, but that didn't really help for much more than that13:18:41
@ninjatrappeur:alternativebit.fr@ninjatrappeur:alternativebit.frThe function-based profiler?13:19:01
@ninjatrappeur:alternativebit.fr@ninjatrappeur:alternativebit.fr andi- improved my not-so-fonctional ebpf profiler. I lost the branch though. 13:19:28
@ninjatrappeur:alternativebit.fr@ninjatrappeur:alternativebit.fr * andi- improved my not-so-fonctional ebpf profiler into something pretty fonctional. I lost the branch though. 13:19:37
@ninjatrappeur:alternativebit.fr@ninjatrappeur:alternativebit.frThe real issue is the viewer, there's too much information in these traces. We were tracing each and every thunk forcing.13:20:06
@andi:kack.itandi-
In reply to @ninjatrappeur:alternativebit.fr
andi- improved my not-so-fonctional ebpf profiler into something pretty fonctional. I lost the branch though.
https://github.com/andir/nix/tree/andir/profiling
13:21:05
@pennae:matrix.eno.space@pennae:matrix.eno.spacefwiw disabling docs on our current system makes no significant difference in eval time, disabling the spit options build adds 30%13:22:24
@sandro:supersandro.deSandro
In reply to @andi:kack.it
https://github.com/andir/nix/tree/andir/profiling
Does that improve the existing tracing or add a new one?
13:30:02
@andi:kack.itandi-new one, proper nix-internal call frames and all13:30:24
@sandro:supersandro.deSandro
In reply to @pennae:matrix.eno.space
fwiw disabling docs on our current system makes no significant difference in eval time, disabling the spit options build adds 30%
spit options? split options?
13:30:27
@sandro:supersandro.deSandro
In reply to @andi:kack.it
new one, proper nix-internal call frames and all
you just set NIX_SHOW_TRACE ?
13:30:46

Show newer messages


Back to Room ListRoom Version: 6