gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmainfe209ffeMerge branch 'w56-owner-members' into mainGitoriamain/missions/H25-heap-snapshot.md

2.3 KB

  1. # H25 — heap snapshot: what makes live gitoria grow ~85 MB/h (gitoria#25)
  2. Task line (Apollo 2026-11-06, via the conductor): "take my own heap snapshot with hl:heap (hybriel#315) before asking Anton anything."
  3. Evidence: reports/G25-mem-sample-2026-11-07.md (live RSS 547 → 1580 MB in 12 h, page time rises with it), reports/W62-REPORT.md (commit page runs up to 9 git processes; hl:proc run() blocks the event loop). Live traffic is mostly signed-out scrapers: commit pages, file pages, READMEs across many repos, ~35 req/min.
  4. Read first: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md; Hybriel SPEC "Heap diagnostics" (`git -C /media/STORAGE/projects/hybriel show b6a8f429:SPEC.md`) and `plugins/heap/README.md` in this repo. main is now vendored to set-day48 (has hl:heap).
  5. ## Work (worktree ../gitoria-H25, branch h25; NEVER merge, push or deploy; never edit LOG.md/STATUS.md)
  6. 1. Add a diagnostic-only route in the worktree (e.g. GET /__heap on 127.0.0.1) that returns `snapshot(roots, 30)` as JSON plus the process RSS. Seed `roots` with gitoria's long-lived module/static state by name (caches in lib/homepage.hl and lib/markdown.hl, sessions, any static maps/lists you find by grep), passed by reference as the SPEC says. Copy the shape from the docs.
  7. 2. Real data: copy the latest gitoria backup from /media/STORAGE/deploy-backups to scratch (delete after). Start the app on ports 8730-8739 (check `ss -ltn`).
  8. 3. Load: a signed-out curl loop over many DISTINCT URLs like the scrapers: commit pages and commit file pages across several repos and many commits, file/code pages, READMEs, pulls. Take snapshot + RSS at 0, 500, 2000, 5000 requests (more if growth is unclear). Also one run hitting a single URL repeatedly, to tell "grows per distinct URL" from "grows per request".
  9. 4. Answer with numbers: does the GC heap (bytes, objects, unreachable) grow along with RSS, or does RSS grow while the GC heap stays flat (= native/plugin/allocator memory, outside hl:heap)? Which roots/types grow? Which request kind drives it?
  10. 5. Stop every process you started; delete the data copy.
  11. ## Report
  12. reports/H25-REPORT.md (≤40 lines) committed on branch h25: method, table (requests, RSS, heap bytes, objects, unreachable, top growing roots/types), verdict, a minimal repro command if found, DOCS gaps. Reply with a short summary and stop. Budget ~60 requests; stop and report if blocked.

Branches

Latest commits

  • fe209ffeMerge branch 'w56-owner-members' into mainGitoria
  • fa0754c8|||PR repository owner transfer and members API (#55)mre
  • 8862e537Merge branch 'w55-rename-org' into mainGitoria
  • 014d2b7fOne immutable readers snapshot per move for the left-organization event (#53)mre
  • 1859d506Decide who hears a repo left its organization by its readers before the move (#53)mre
  • 499f25f2Review fixes for the Settings organization move (#53)mre
  • ed3b922b|||PR move a repository into an organization in Settings (#53)mre
  • 74ec2af8Merge branch 'w54-repo-rename-pr' into mainGitoria
  • 9f7ce8d8Preserve rename compatibility and live page titlesmre
  • c3d95b6e|||PR separate names and addresses, rename repositories in Settings (#53)mre
  • ce08920dMerge branch 'w52c-header-phone' into mainGitoria
  • 0bab9e46|||PR header: ident status wraps on phones instead of clippingmre
  • e7af3eceMerge branch 'w52b-approval-followup' into mainGitoria
  • c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mre
  • 841da497Merge branch 'w53-pulls-speed-pr' into mainGitoria
  • 80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymre
  • 69141f65|||PR pulls page: cache the git part per repo by branch tipsmre
  • 155861f6Merge branch 'w52-person-approval' into mainGitoria
  • b5435de8|||PR person approvals: second Kunibert round (#52)mre
  • 3a8b2fb8|||PR person approvals: Kunibert review fixes (#52)mre