gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6dc08a8e6dc08a8eMerge branch 'p51-public-pr-reads' into mainGitoria6dc08a8e/reports/HL25-REPORT.md

3.0 KB

  1. # HL25 — live hl:heap snapshot for gitoria#25 (2026-11-09)
  2. **Deployed:** commit `2492a55` "Temporary keyed /__heap route for the live memory snapshot" (branch hl25-heap, fast-forwarded into main, pushed). New `lib/heap.hl` (+3 lines in project.hl: import, comment `// TEMPORARY gitoria#25 diagnostic, removed after the 320 MB snapshot`, route). `GET /__heap` answers 404 unless header `x-heap-key` equals the trimmed content of `<storage>/heap-key` (read per request, file missing → 404, `timingSafeEqual`, key never logged). JSON: `{ time, rssKb, hwmKb, heap = snapshot(&roots, 30) }` (VmRSS/VmHWM parsed digit-by-digit: the tab after the colon was the H25 bug). Roots: hpCache/hpSize/hpOrder, mdCache/mdSize/mdOrder, limitCounts, server.sessions, routes.
  3. **Key:** created on byrodin in `/CONTAINERS/projects/gitoria.worldapi.org/storage/heap-key` (root:root, 600, 49 bytes); value never printed.
  4. **Local proof (port 8730, own storage):** no key file → 404; no key → 404; wrong key → 404; right key → 200 JSON (rssKb 181784, hwmKb 215532). Gates (ports 8720–8729): `check-theme` 87 files 0 problems; `tests/browser.mjs` 299 passed, 0 failed.
  5. **Deploy:** `deploy-init.sh gitoria`, log /media/STORAGE/claude-scratch/gitoria/deploy-hl25.log. Runs 1–3 failed in `tests/browser.mjs` with "tickets did not come up" (tickets cold compile >120 s at machine load 15–22, not my code; run 1 was also cut by my own 590 s tool timeout). Run 4: boot-gate rc=0, all 19 gates 0 failed, `try 1 (1 s): 200`, **rc=0** (standby hand-over, no second restart). No FAILED in the final log.
  6. **Live proof (from byrodin, container port 127.0.0.1:45004):** no key 404; wrong key 404; right key 200 `application/json`. Public `https://gitoria.worldapi.org/__heap` without key → **404**.
  7. **First snapshot** `/media/STORAGE/claude-scratch/gitoria/heap-live-1.json` (container ~14 min after start): VmRSS 204 MB, VmHWM 256 MB (startup peak; RSS was 248 MB at 6 min, 198 MB at 14 min), GC heap 36,349,219 bytes, 560,217 objects, tracked 702,644, unreachable 142,427.
  8. Top types (bytes): Hybrid named 19.29 M (46,847 obj); String/key bytes 10.64 M (356,987); Hybrid ordered 3.48 M (37,787); String 2.82 M (117,448); Function 40.5 K (724); Environment 13.7 K; Instance WebFramework 12.7 K; Session 12.3 K (13); MPackDB 10.6 K (19); Cssvar 9.6 K.
  9. Roots (bytes): plugin/runtime 31.27 M (515,738 obj); sessions 4.89 M (42,836 obj); statics 143.9 K; routes 41.2 K; stack 6.9 K; hpCache/mdCache/limitCounts/etc. 40–64 bytes each (empty, nothing cached yet). Note: sessions already hold 4.9 MB / 42.8 k objects after 14 min — worth watching at 320 MB.
  10. So at 204 MB RSS the GC heap is ~36 MB (RSS minus heap ≈ 170 MB outside the GC heap's reachable data). Compare with the 320 MB snapshot.
  11. **Helper:** `tools/heap-live.sh <outfile>` (ssh byrodin, key read there, never echoed; prints RSS/VmHWM/heap bytes).
  12. **Remove the route:** `git revert 2492a55` (drops lib/heap.hl and the project.hl lines), push, `deploy-init.sh gitoria`; then `rm /CONTAINERS/projects/gitoria.worldapi.org/storage/heap-key` on byrodin and tools/heap-live.sh. Route NOT removed by me.

Branches

Latest commits

  • 6dc08a8eMerge branch 'p51-public-pr-reads' into mainGitoria
  • 7b88cfe0Type publicReaderOfRequest parameters (L10)Gitoria
  • 2a4b3dc1|||PR Anonymous reads of public repos' pulls and statusesmre
  • 21b2c141Merge branch 's25-no-session-on-login-error' into mainGitoria
  • 698458e2|||PR No session for cookieless login errors: READMEmre
  • cce7b785|||PR No session for cookieless login errorsmre
  • 678d6303Merge branch 'v59' into mainGitoria
  • 5803cf4f|||PR vendor: Hybriel set-day59 and GC budget 32 MiBmre
  • 9eff6627Merge branch 'f2-api-bugs' into mainGitoria
  • 26117255|||PR apps API: review comments on files with spaces in their namemre
  • b8796cecMerge branch 'f1-broken-json' into mainGitoria
  • 2f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre
  • f7c6ca07Merge branch 'ident-chooser-selector' into mainGitoria
  • 691abb8e|||PR tests: find ident identity choice without the removed .choose classmre
  • 16a3530fMerge branch 'heap-revert' into mainGitoria
  • 220a80e0|||PR Remove temporary /__heap route and heap helper; logmre
  • 13f0c342Merge branch 'hl25-records' into mainGitoria
  • a002ecb7|||PR records: HL25 report, heap helper, logmre
  • 2492a55cTemporary keyed /__heap route for the live memory snapshotmre
  • fefaedd2log: tracker PR-only, HL25 startedmre