!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

902 Members
For people hacking on the Nix package manager itself189 Servers

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


SenderMessageTime
23 Aug 2024
@roberthensing:matrix.orgroberth
In reply to @joerg:thalheim.io
Robert Hensing (roberth): Do you have access to macOS or do you need something like a flamegraph for nix 2.18 vs 2.24?
not a true x86_64 one
17:28:10
@roberthensing:matrix.orgroberthI'm fairly confident that 2.18 is faster because we added a cache we're not taking much (or any?) advantage of yet. The reason is we're moving to a setup that will be faster than 2.18 but that's taking longer than expected to get there. I think we should look into disabling that for now, but I haven't found the time to confirm this yet, so caveat.17:34:13
@joerg:thalheim.ioMic92 @roberthensing:matrix.org: i could try to get you ssh access to one in 1-2 weeks. What also works very well is this: https://github.com/Mic92/dotfiles/blob/main/.github/workflows/os-ondemand.yaml 18:12:06
@joerg:thalheim.ioMic92It's also a nice devenv for windows 18:12:28
@joerg:thalheim.ioMic92GitHub still does x86 for Mac. So that's probably the easiest option 18:13:11
@joerg:thalheim.ioMic92If you can point me to the cache I.e the commit, I can check if disabling it performs better18:14:53
@emilazy:matrix.orgemilyI think that GitHub Actions thing is against the Actions terms of service FWIW (your judgement call to make: just making it known)18:21:43
@jade_:matrix.orgjade_i would personally recommend a certain "osx-kvm" which is at least only a license violation of macOS purely on your own computer18:23:31
@roberthensing:matrix.orgroberth
In reply to @joerg:thalheim.io
If you can point me to the cache I.e the commit, I can check if disabling it performs better

Not sure if useful but it'd be

  • originally https://github.com/NixOS/nix/pull/9485
  • however, performance was improved in a later PR
  • and as you know may be improved again by https://github.com/NixOS/nix/pull/11330

So I don't know how representative the delta of that PR would be anymore

18:24:22
@emilazy:matrix.orgemilywell, also probably a more serious copyright violation to obtain the things you need to use it unless you already own a Mac…18:24:50
@emilazy:matrix.orgemilybut sure, YMMV18:24:51
@emilazy:matrix.orgemilyI can still be pinged for "running commands that print out numbers" purposes18:25:18
@9999years:matrix.org@9999years:matrix.org left the room.18:25:19
@emilazy:matrix.orgemily the patch Robert Hensing (roberth) asked me to benchmark looked pretty good 18:25:24
@emilazy:matrix.orgemilydunno if it restores things to 2.18 perf though18:25:30
@niksnut:matrix.orgniksnutNote that the Git-based tarball cache only got merged in 2.21 or so, so it doesn't explain the performance regression in 2.1918:25:52
@roberthensing:matrix.orgroberthyeah I think that's the question Mic92 is trying to help with18:25:57
@jade_:matrix.orgjade_
In reply to @niksnut:matrix.org
Note that the Git-based tarball cache only got merged in 2.21 or so, so it doesn't explain the performance regression in 2.19
oh that's caused in part by an ill advised migration to string_view in Value that we dropped from lix due to performance regression
18:27:46
@roberthensing:matrix.orgroberthI think for a more productive, actionable measurement, we could try using the store as a "tarball cache" instead. That seems like a viable stop gap to improve performance until we have lazy source semantics18:28:22
@niksnut:matrix.orgniksnut
In reply to @jade_:matrix.org
oh that's caused in part by an ill advised migration to string_view in Value that we dropped from lix due to performance regression
How does that explain the minutes-long slowdown on macOS and some docker containers?
18:29:38

Show newer messages


Back to Room ListRoom Version: 6