!RROtHmAaQIkiJzJZZE:nixos.org

NixOS Infrastructure

470 Members
Next Infra call: 2024-07-11, 18:00 CEST (UTC+2) | Infra operational issues backlog: https://github.com/orgs/NixOS/projects/52 | See #infra-alerts:nixos.org for real time alerts from Prometheus.146 Servers

Load older messages


SenderMessageTime
19 Jun 2026
@joerg:thalheim.ioMic92should be fine in this case10:29:53
@hexa:lossy.networkhexa (signing key rotation when)silly me tried --delete-old10:30:11
@hexa:lossy.networkhexa (signing key rotation when)will go for --ensure-free next time round10:30:16
@joerg:thalheim.ioMic92it will read the sqlite db into memory in any case.10:36:09
@hexa:lossy.networkhexa (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:lossy.networkhexa (signing key rotation when)do we have an idea, why it loaded multiple hundred GB into its nix store?10:40:56
@hexa:lossy.networkhexa (signing key rotation when)
Download
10:41:45
@hexa:lossy.networkhexa (signing key rotation when)~400GB10:42:25
@joerg:thalheim.ioMic92I suspect this was my build product fix: https://github.com/NixOS/hydra/commit/a38b8062f8bd2f1a5e4dbb2efdd25afdb02261a610:43:56
@joerg:thalheim.ioMic92From my understanding this was only to be triggered as a fallback if there is no db entry.10:45:27
@hexa:lossy.networkhexa (signing key rotation when)Ah, ok.10:46:14
@hexa:lossy.networkhexa (signing key rotation when)in the meantime I restarted fast-nix-gc with --ensure-free, so I can leave it running and leave10:47:02
@hexa:lossy.networkhexa (signing key rotation when) it sits at "deleting garbage..." for minutes 10:47:20
@hexa:lossy.networkhexa (signing key rotation when)I'm sure it is fast, faster than nix-gc, but is mimas the endboss here? :D10:47:42
@joerg:thalheim.ioMic92Yeah I think so.10:49:00
@joerg:thalheim.ioMic92I run perf on it to see where it hangs10:49:18
@joerg:thalheim.ioMic92In good news, I think my scheduler reconciliation fixes seem to work in staging hydra.10:54:17
@joerg:thalheim.ioMic92I am doing the perf now on the fast-nix-gc10:54:32
@joerg:thalheim.ioMic92 hexa (signing key rotation when): oh, here is the catch: --no-vacuum 10:55:24
@joerg:thalheim.ioMic92you need this10:55:26
@joerg:thalheim.ioMic92I think something is still accessing sqlite10:55:35
@hexa:lossy.networkhexa (signing key rotation when)hah, can you add a log?10:55:45
@joerg:thalheim.ioMic92did it print this? log::info!("vacuuming database ({freelist} of {pages} pages free)...");10:56:33
@joerg:thalheim.ioMic92?10:56:35
@hexa:lossy.networkhexa (signing key rotation when)
[root@mimas:~]# 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...
^C
10:56:44
@joerg:thalheim.ioMic92mhm.10:57:11
@joerg:thalheim.ioMic92than it's something else10:57:15
@joerg:thalheim.ioMic92I will take over fast-nix-gc. I want to try some other options11:01:24
@dgrig:erethon.comdgrigIf it's related, after lots of GCs without a vacuum on the nix sqlite we saw something similar on the security tracker last year. I had opened https://github.com/NixOS/nixpkgs/pull/435438 to at the very least document this (linking to a patch by Trofi on Nixos/nix)12:02:52
@hexa:lossy.networkhexa (signing key rotation when)yeah, 16 GB is like factor 10 of my busy personal machines12:03:56

Show newer messages


Back to Room ListRoom Version: 6