| 19 Jun 2026 |
hexa (signing key rotation when) | running fast-nix-gc instead | 10:17:44 |
Mic92 | alright | 10:17:59 |
hexa (signing key rotation when) | ehhh, the queue-runner came back up | 10:20:02 |
hexa (signing key rotation when) | oh, socket activation | 10:20:18 |
Mic92 | oh my god: [root@mimas:~]# du -sh /nix/var/nix/db/db.sqlite
16G /nix/var/nix/db/db.sqlite
| 10:28:55 |
Mic92 | I was wondering why nix-fast-gc was taking so long in single-threaded mode | 10:29:32 |
hexa (signing key rotation when) | is this already a size where behaviors get pathological? :P | 10:29:33 |
Mic92 | no | 10:29:41 |
Mic92 | but you need the RAM | 10:29:45 |
Mic92 | I tried to make it efficient | 10:29:49 |
Mic92 | should be fine in this case | 10:29:53 |
hexa (signing key rotation when) | silly me tried --delete-old | 10:30:11 |
hexa (signing key rotation when) | will go for --ensure-free next time round | 10:30:16 |
Mic92 | it will read the sqlite db into memory in any case. | 10:36:09 |
hexa (signing key rotation when) | # nix run github:mic92/fast-nix-gc -- --ensure-free 100G
[INFO ] freeing at least 97.67 GiB to reach 100.00 GiB free
[INFO ] remounted /nix/store read-write
[INFO ] loading store graph...
[INFO ] 15409584 total valid paths
[INFO ] finding garbage collector roots...
[INFO ] found 1078966 roots
[INFO ] computing alive closure...
[INFO ] 4701564 alive paths
[INFO ] 10708020 dead paths
[INFO ] 251 unknown paths on disk not in DB
[INFO ] deleting garbage...
| 10:37:29 |
hexa (signing key rotation when) | do we have an idea, why it loaded multiple hundred GB into its nix store? | 10:40:56 |
hexa (signing key rotation when) |  Download | 10:41:45 |
hexa (signing key rotation when) | ~400GB | 10:42:25 |
Mic92 | I suspect this was my build product fix: https://github.com/NixOS/hydra/commit/a38b8062f8bd2f1a5e4dbb2efdd25afdb02261a6 | 10:43:56 |
Mic92 | From my understanding this was only to be triggered as a fallback if there is no db entry. | 10:45:27 |
hexa (signing key rotation when) | Ah, ok. | 10:46:14 |
hexa (signing key rotation when) | in the meantime I restarted fast-nix-gc with --ensure-free, so I can leave it running and leave | 10:47:02 |
hexa (signing key rotation when) | it sits at "deleting garbage..." for minutes | 10:47:20 |
hexa (signing key rotation when) | I'm sure it is fast, faster than nix-gc, but is mimas the endboss here? :D | 10:47:42 |
Mic92 | Yeah I think so. | 10:49:00 |
Mic92 | I run perf on it to see where it hangs | 10:49:18 |
Mic92 | In good news, I think my scheduler reconciliation fixes seem to work in staging hydra. | 10:54:17 |
Mic92 | I am doing the perf now on the fast-nix-gc | 10:54:32 |
Mic92 | hexa (signing key rotation when): oh, here is the catch: --no-vacuum | 10:55:24 |
Mic92 | you need this | 10:55:26 |