!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

418 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.141 Servers

Load older messages


SenderMessageTime
28 Jul 2025
@jade_:matrix.orgjade_and also lix on normal macos i think, since cacert goes into the system profile02:25:44
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)NixOS already does something quite different02:25:47
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) which does not make any use of ssl-cert-file today? 02:25:55
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) nix-darwin does use ssl-cert-file and possibly this is a store path yeah 02:26:07
@jade_:matrix.orgjade_for CoW filesystems (most modern fs), if our file copy is implemented correctly we can just have the copy be equivalent to hardlink02:26:11
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)in practice02:26:20
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)copying from /etc to /nix/var/nix/builds/ may or may not end up being optimized away02:26:39
@jade_:matrix.orgjade_ i also agree that importing to the store should be able to be fast 02:26:42
@jade_:matrix.orgjade_and is definitely a good way to remove edge cases from the sandbox setup code02:27:17
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)importing to the store introduces other complexities02:27:45
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) but EsperLily [she/her] do you perceive there will be a performance issue with this whole thing? 02:29:53
@emilazy:matrix.orgemilythe bind mount in the store makes this stuff weird02:29:56
@emilazy:matrix.orgemily* the bind mount of the store makes this stuff weird02:29:59
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)i don't question the possibility for optimizations in the future02:30:01
@esperlily:matrix.orgEsperLily [she/her] it looks like this ultimately uses std::filesystem::copy. i sure hope that will use the appropriate call to make a copy-on-write clone, but that entirely depends on the std impl 02:30:01
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) but 500KB copied on every FOD doesn't seem THAT problematic yet to me 02:30:17
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)like the most it could do is add some latency I'd say02:31:09
@jade_:matrix.orgjade_llvm libc++ does https://github.com/llvm/llvm-project/blob/1b4db78d2eaa070b3f364a2d2b2b826a5439b892/libcxx/src/filesystem/operations.cpp#L30202:31:15
@jade_:matrix.orgjade_concur02:31:23
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)FOD work will probably be dominated by download speed and disk write speeds02:31:24
@esperlily:matrix.orgEsperLily [she/her]i don't know, i hope not, it just feels wasteful to be constantly copying a file around, especially when the file is in the nix store anyway. if Linux has been copying it the whole time then i suppose it's unlikely to be a performance problem02:31:53
@jade_:matrix.orgjade_ I think we have clear evidence that if we wanted to make lix much faster we have other places to look than a 500kb file copy 02:31:55
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)i mean, it might not be a performance problem now02:32:27
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)and maybe once we do enough scalability work02:32:32
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)it will become one02:32:33
@jade_:matrix.orgjade_and tbh i think that the most productive thing is to just pick a resolution of code that is not too complex and works and deal with the perf later as we build better tools (e.g. tracing) to have any idea what our perf is like02:32:48
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)and at that time, i hope we will be in a situation to make the "import to the store" solution work nicely02:32:49
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)this is the kind of tradeoffs i would like to make by not doing more optimization here02:33:02
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)obviously with Nix, we are mostly blind, for now02:33:25
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)once we have more DTrace USDT probes, I hope to add some eBPF exporter to some of the Lix infra and more to examine more things02:33:37

Show newer messages


Back to Room ListRoom Version: 10