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
- d6d03fa3mission: T36Bmre
- e7512d00status: #36 rolled back, retry askedmre
- c98e2043log: T36A rollbackmre
- ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
- 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre
- 55257852log: #53 live, #56 mergedmre
- 78b39f1bMerge hm56-rows: tracker#56 list builders insert oncemre
- 7aea52batmdb fix: protect owners without slugs and record passing gatesmre
- 9b3c2559tmdb fix: revalidate planned identities and reserve target idsmre
- 6da612fclog: T36A tool defectmre
- d56ee0daT36A: report unsafe TMDB apply revalidation and stop before livemre
- 08e55255log: HM56 done, T36A startedmre
- 91bcdf0eAvoid per-row list copies and reproduce keyed-row blockersmre
- 5fd2ac75status: #36 GOmre
- 0d253b45mission: T36Amre
- 2aa22d23log: #36 GOmre
- 833aee2flog: #50 closed, HM56 startedmre
- ac58c1e5mission: HM56mre
- 58979c0clog: HM54 held for decision, DP65 startedmre
- bb2ebc67log: #64 live, #53 mergedmre