!CcTBuBritXGywOEGWJ:matrix.org

NixOS Binary Cache Self-Hosting

167 Members
About how to host a very large-scale binary cache and more57 Servers

Load older messages


SenderMessageTime
21 Oct 2025
@jonhermansen:matrix.orgjonhermansen joined the room.20:56:12
27 Oct 2025
@genadij.udarov:matrix.orggenadij.udarov joined the room.16:40:55
@joerg:thalheim.ioMic92https://github.com/Mic92/niks318:19:54
@joerg:thalheim.ioMic92Testing this now for two weeks in production.18:20:15
31 Oct 2025
@creepinson:matrix.orgTheo Paris joined the room.01:55:44
4 Nov 2025
@gradientvera:matrix.orgVera Gradient joined the room.08:34:39
7 Nov 2025
@emma:rory.gay@emma:rory.gay left the room.22:41:52
12 Nov 2025
@inayet:matrix.orgInayet changed their display name from inayet to Inayet.12:38:19
19 Nov 2025
@j0squ4red:matrix.orgjosqu4red joined the room.22:28:52
20 Nov 2025
@user12592851:matrix.orgJohn joined the room.06:46:09
@vengmark2:matrix.org@vengmark2:matrix.org left the room.12:04:50
21 Aug 2023
@cafkafk:nixos.devChristina Sørensen joined the room.08:50:44
@linus:schreibt.jetzt@linus:schreibt.jetzt
In reply to @julienmalka:matrix.org
Do we have measures of the total deduplication of an attic cache ?
attic doesn't currently have a built-in command for it but it should be pretty easy to get from the db
08:51:14
@linus:schreibt.jetzt@linus:schreibt.jetzt
attic=# select sum(file_size) / (select sum(nar_size) from nar) from chunk;
        ?column?
------------------------
 0.20098691256561418637
(1 row)
08:52:57
@linus:schreibt.jetzt@linus:schreibt.jetztso I guess I'm using 20% as much storage for nars as I would be without dedup08:53:15
@linus:schreibt.jetzt@linus:schreibt.jetzt*and compression08:53:30
@linus:schreibt.jetzt@linus:schreibt.jetztof course that isn't entirely representative of how much space the cache takes up including file metadata and the database08:54:44
@linus:schreibt.jetzt@linus:schreibt.jetztbut I think nars would be the bulk of my binary cache, so that's already a useful number ^^08:55:09
@julienmalka:matrix.orgJulien Given the state of things with AWS hosting it would be interesting to see how much of that dedup we could benefit from in the cache.nixos.org binary cache without asking for demesurate computationnal stress to the server 08:55:07
@linus:schreibt.jetzt@linus:schreibt.jetztyeah08:55:57
@linus:schreibt.jetzt@linus:schreibt.jetztI know some people were interested in looking into options there, do you know if anyone's actually doing anything on that front?08:56:25
@julienmalka:matrix.orgJulien To be honnest I thought that that was what people were doing on the group but I was only following the conversation from afar. I’m interested into doing experiments on that field though. 08:57:40
@linus:schreibt.jetzt@linus:schreibt.jetzt I guess raitobezarius is the most likely to know :D 08:58:26
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Linux Hackerman: Any suggestion on special_small_blocks value? I was thinking 8K since anything <=8K is worst case space efficiency on raidz2 (ashift=12) 09:04:45
@julienmalka:matrix.orgJulien
In reply to @linus:schreibt.jetzt
attic=# select sum(file_size) / (select sum(nar_size) from nar) from chunk;
        ?column?
------------------------
 0.20098691256561418637
(1 row)
On my own attic deployment I get 0.17052771681498935
09:04:49
@linus:schreibt.jetzt@linus:schreibt.jetzt
In reply to @elvishjerricco:matrix.org
Linux Hackerman: Any suggestion on special_small_blocks value? I was thinking 8K since anything <=8K is worst case space efficiency on raidz2 (ashift=12)
sounds reasonable, and I don't think many narinfos will be bigger than 8K
09:05:31
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgplus I think optane has 512B sectors, so ashift=9 on that vdev 😎09:05:39
@linus:schreibt.jetzt@linus:schreibt.jetztbut are you going to use raidz2 on your special too?09:05:39
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyou can't use raidz on special I'm pretty sure09:05:53
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgashift=9 on the special just means that small things get even smaller09:06:41

Show newer messages


Back to Room ListRoom Version: 10