tracker
All repositories: gitoria
3.3 KB
# HM1 — which objects make the 19 M live heap (read-only analysis)Task (Apollo 2026-11-04 20:3x, verbatim): "Since the pause comes from 19 M live objects: please measure on a copy WHICH objects they are (per table/structure: records held in memory, indexes, strings) and what an app-side reduction could give (e.g. keep cold records packed/serialized instead of as object graphs, load on demand). Read-only analysis, Sol ≤ $3, report numbers + options."## Background (verified by Tracker)- Live tracker (main 7557c02 / cache bounds 7475c23, Hybriel set day39) does a full GC every ~40 s with a pause of ~3.2 s; [hl-gc] lines show marked ≈19.3 M objects, live_bytes ≈1.34 GB, table_cap 134 M. Example line: `[hl-gc] #605 pause_ms=3645 mark_ms=2350 sweep_ms=1104 marked=19083893 live_bytes=1387443967 ...` (HL_GC_STATS=1 prints them).- The five request caches in lib/shows.hl (cacheLimit) are bounded and small (cards ~170, creditRows ≤20k, personLinks ≤50k, episodeKeys ~12.9k) — they are NOT the bulk. Find the bulk.## Rules- Read fully: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md; for .hl reading: /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md. Map of the app: project.hl; README.md only the relevant sections.- READ ONLY: no commits to main, no change to live, never touch byrodin. No .env (start the copy without one, all jobs off: TRACKER_SYNC/BACKFILL/REPAIR/KINDS/CREDITS/COLLECTIONS/SHORTIDS/FRANCHISE_SEED=0, see tests/realdata-m028.sh). Instrumentation only in your own worktree under the scratch dir; nothing merged.- Data: unpack /media/STORAGE/deploy-backups/tracker.worldapi.org/tracker.worldapi.org-20261104-0940.tgz (verified restorable) into your scratch dir; take only the storage part you need; delete the unpacked copy at the end (it is big; disk has ~180 GB free, check first).- Scratch: /media/STORAGE/claude-scratch/tracker/HM1/ (worktree, copy, logs). Nothing in /tmp, home or projects/. Port: 8701 on loreana (check `ss -ltnp`).- A cold start compiles for ≥120 s and the warm-up takes longer: wait for it.- Hybriel gap (e.g. no way to count objects per type): do not build a workaround inside the runtime; measure what is possible from the app side (e.g. GC stats before/after the app loads a given table, counts of records/fields per table, an env switch in your worktree that skips loading one structure) and write the repro/request for Anton into the report.- Budget: maxUsd 3. Stop everything you started (server processes, ports) and list them in the report.## Wanted (numbers)1. Breakdown of the ~19 M live objects / 1.34 GB: per table or in-memory structure (records held as object graphs, indexes, people view, string pools, caches, sessions, …): count of records, estimated objects and bytes each, and how you measured it (method + how exact).2. Which of these are cold (rarely read by a page request) vs hot.3. Options for an app-side reduction, each with the expected cut in live objects (and so GC mark time ~ proportional), cost/risk, and whether it needs Hybriel features: e.g. keep cold records packed/serialized and decode on demand, load on demand from mpackdb instead of keeping in memory, drop or slim indexes, flatter record shapes.4. Report: reports/HM1-heap-objects.md in the main repo path /media/STORAGE/projects/WorldAPI/tracker.worldapi.org/reports/ (only that file), plus a short final message with the key numbers.
Branches
Latest commits
- 62a5f6c7HM67 brief, HM66 mergedmre
- b32b8440Merge hm66-catalogindex: packed catalog indexmre
- 2db0f7adReport HM66 heap measurements and validationmre
- 6ce15623Pack catalog lists and membership maps in UTF-8 bytesmre
- 71134e21HM66 briefmre
- ed4cbab2status timemre
- e982c26dlog: HM65 mergedmre
- 6e72f9d1Merge hm65-fields: episode boot scan reads three fieldsmre
- 07a5c883HM65 report measured field projection and complete validationmre
- 0eab858fRead only catalog date fields during the episode boot scanmre
- d3179273log: HM65 hl:heap vendoringmre
- cb78a1a0HM65 report missing heap diagnostic package with repromre
- 89606a5cHM65 briefmre
- 096ce0d4log: DP69 live on day48mre
- b3d8a80bDP69 brief, RV48 mergedmre
- ce6d7d32Merge rv48: Hybriel day48mre
- 3da2ea86RV48: report day48 cold starts, gates and cleanupmre
- 8d9ecdfeRV48: re-vendor Hybriel set day48 (source b6a8f429, bin 660a9524)mre
- 4a802ae7status: RV48 runningmre
- 0a5412b6RV48 brief, day48 outmre