!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

954 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.202 Servers

Load older messages


SenderMessageTime
20 Jun 2026
@flokli:matrix.orgfloklizstd is in use. Don't know if it allows ranged reads.09:08:53
@pveierland:matrix.orgpveierlandDo you know why it was chosen over brotli?09:09:40
@flokli:matrix.orgflokliNo09:09:57
@flokli:matrix.orgflokliIdeally all the compression parts would be a content-encoding concern, so range requests wouldn't need to be complicated at all. That's what snix-nar-bridge does, it sends Compression: none and relies on libcurl to request zstd-compressed. That of course not realistic for the c.n.o situation, where we currently serve from the bucket "directly", as it would be even more costly than it already is.09:11:57
@flokli:matrix.orgflokliIf you're ok with the current caveats, you're welcome to use nixos.snix.store for the mynixos usecase as a fetch-through version. Gives you c.n.o with Compression: none and zstd content encoding.09:14:56
@pveierland:matrix.orgpveierlandInteresting, thank you 👍 I'll have a look. Do you know ~coverage/content available compared to c.n.o?09:17:03
@pveierland:matrix.orgpveierlandFound the stats 👍09:18:21
@flokli:matrix.orgflokliWe have "everything" in c.n.o. the first request from anyone to the Narinfo url is "slow" though, as it needs to ingest the NAR09:18:47
@pveierland:matrix.orgpveierlandAh, so it's just a lazy cache with better interface?09:19:24
@flokli:matrix.orgflokli
In reply to @pveierland:matrix.org
Ah, so it's just a lazy cache with better interface?
Check the landing page, and give it a few requests.
09:19:58
@pveierland:matrix.orgpveierlandWait, how many stores does it pull from?09:19:59
@flokli:matrix.orgflokliOnly c.n.o09:20:20
@flokli:matrix.orgflokli
In reply to @flokli:matrix.org
We have "everything" in c.n.o. the first request from anyone to the Narinfo url is "slow" though, as it needs to ingest the NAR
In your case, you probably don't do lots of stats for .narinfo, but want to often seek around in the same store path. That's quite cheap after the first request.
09:20:51
@flokli:matrix.orgflokliWe could add support for others too, using the same castore storage. It's mostly a question of restructuring the same components with a different config, and I didn't have a need for it.09:21:52
@flokli:matrix.orgflokliI'm using this in layered approaches, so I avoid having to download NARs when I do channel bumps while travelling in places with shitty connectivity. Cause my local nar-bridge can make use of the castore dedup it can accumulate locally.09:22:51
@pveierland:matrix.orgpveierland Do you know the ratio of castore storage encoding at scale? I.e. how effective is it in storage efficiency 09:23:25
@flokli:matrix.orgflokliThere's some synthetic benchmarks, but not for real-world access patterns.09:24:06
@flokli:matrix.orgflokliIt arguably could use expose a bit more metrics. And then we could compare total accumulated nar sizes with on-disk storage.09:24:50
@flokli:matrix.orgflokliAll I know is that this machine (or it's predecessors with the same data) has been up for a year or two, never deleted anything it ever fetched, and now accumulated a TB or two of deduped on disk.09:28:51
@flokli:matrix.orgflokliEither not enough people are using it, or it dedupes well :-D09:29:21
@pveierland:matrix.orgpveierlandDo you know c.n.o total storage size?09:29:30
@flokli:matrix.orgflokli500T? 600T?09:30:21
@hexa:lossy.networkhexa

600T

09:30:30
@hexa:lossy.networkhexaRedacted or Malformed Event09:30:32
@pveierland:matrix.orgpveierlandOh. Chunky 👍09:30:35
@flokli:matrix.orgflokliIt's not a fair comparison, we didn't pipe all store paths to it, we only lazily ingest what's requested.09:31:01
@flokli:matrix.orgflokliAnd there's still a bit of fine tuning on the parameters and on-disk format to do.09:31:21
@flokli:matrix.orgflokliBut what's in right now is a good dataset for real-world usage.09:31:44
@pveierland:matrix.orgpveierlandWill experiment a bit 👍 Provenance is important since the store for each artifact is tracked during indexing. The ranged read research is for client side file system09:44:17
@pveierland:matrix.orgpveierland * 09:44:44

There are no newer messages yet.


Back to Room ListRoom Version: 6