added on local at 2026-07-12 23:17:39
| 1 | <div class="page-head"> | |
| 2 | <span class="page-eyebrow"><span class="dot"></span> GC audit</span> | |
| 3 | <h1 class="page-title">Orphan blobs</h1> | |
| 4 | <p class="page-subtitle">BLOB_STORE rows not referenced by any FILE_CHANGES row and not pinned by any named release. Purely informational — this page never deletes anything. All deletions go through <a href="/purge_log.cgi">/purge_log.cgi</a>.</p> | |
| 5 | </div> | |
| 6 | ||
| 7 | <div class="kpi-row" style="margin-bottom:20px"> | |
| 8 | <div class="kpi-tile"> | |
| 9 | <div class="kpi-label">Total blobs</div> | |
| 10 | <div class="kpi-value">$tot_blobs</div> | |
| 11 | </div> | |
| 12 | <div class="kpi-tile"> | |
| 13 | <div class="kpi-label">Referenced by FILE_CHANGES</div> | |
| 14 | <div class="kpi-value" style="color:var(--accent-ok)">$tot_refs</div> | |
| 15 | </div> | |
| 16 | <div class="kpi-tile"> | |
| 17 | <div class="kpi-label">Total on-disk (gz)</div> | |
| 18 | <div class="kpi-value">$tot_mb MB</div> | |
| 19 | </div> | |
| 20 | <div class="kpi-tile"> | |
| 21 | <div class="kpi-label">Orphans (this window)</div> | |
| 22 | <div class="kpi-value" style="color:var(--accent-warn-hi)">$orphan_ct</div> | |
| 23 | <div class="kpi-sub" style="color:var(--text-muted);font-size:11px">$orphan_mb MB reclaimable</div> | |
| 24 | </div> | |
| 25 | </div> | |
| 26 | ||
| 27 | [if:!$has_orphans] | |
| 28 | <div class="module glow-emerald"> | |
| 29 | <div class="module-head"><div class="left"> | |
| 30 | <div class="module-title">Zero orphans — storage is clean</div> | |
| 31 | <span class="module-subtitle">Every blob is either currently referenced or explicitly pinned to a release. _purge.pl is doing its job.</span> | |
| 32 | </div></div> | |
| 33 | </div> | |
| 34 | [/if] | |
| 35 | ||
| 36 | [if:$has_orphans] | |
| 37 | <div class="module glow-amber"> | |
| 38 | <div class="module-head"><div class="left"> | |
| 39 | <div class="module-title">$orphan_ct orphan blob[if:$orphan_ct]s[/if] — $orphan_mb MB reclaimable</div> | |
| 40 | <span class="module-subtitle"> | |
| 41 | These blobs exist but nothing points at them. Next _purge.pl run should evict them. | |
| 42 | [if:$truncated]<strong style="color:var(--accent-warn-hi)"> (showing first 500)</strong>[/if] | |
| 43 | </span> | |
| 44 | </div></div> | |
| 45 | <div class="module-body tight"> | |
| 46 | <table class="tbl"> | |
| 47 | <thead><tr> | |
| 48 | <th style="width:160px">SHA (prefix)</th> | |
| 49 | <th style="width:100px">Size (gz)</th> | |
| 50 | <th style="width:180px">Captured</th> | |
| 51 | </tr></thead> | |
| 52 | <tbody> | |
| 53 | [loop:@orphans] | |
| 54 | <tr> | |
| 55 | <td class="mono" style="font-size:11px">$blob_short</td> | |
| 56 | <td class="mono dim">$gzlen_kb KB</td> | |
| 57 | <td class="mono dim"><span class="ts" data-ts="$captured_epoch" data-fmt="datetime">$first_seen_at</span></td> | |
| 58 | </tr> | |
| 59 | [/loop] | |
| 60 | </tbody> | |
| 61 | </table> | |
| 62 | </div> | |
| 63 | </div> | |
| 64 | [/if] |