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
- 833aee2flog: #50 closed, HM56 startedmre
- ac58c1e5mission: HM56mre
- 58979c0clog: HM54 held for decision, DP65 startedmre
- bb2ebc67log: #64 live, #53 mergedmre
- 27cde42fMerge hm53-dom: tracker#53 inputs bound to membersmre
- 2156cc7flog: HM54 reviewmre
- 9fb82efclog: HM54 gap, fill continuesmre
- b632eb8dlog: HM53 done, HM54 startedmre
- ccb1a263tracker#53: bind editor drafts and use key event focus targetmre
- 3356fcfclog: #52 blocked, HM53 startedmre
- 833dcfc9Merge hm52-search: report only, tracker#52 blocked by framework gapmre
- 73010cc0HM52: report replace-navigation search draft regressionmre
- 1742e92bstatus: DP64 and HM52 runningmre
- 29ad5b58log: #64 merged, DP64 and HM52 startedmre
- fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmre
- b2e2206dlog: #63 livemre
- 5831e0e0log: HM64 donemre
- 4042b923Flatten catalog membership rows into paired slotsmre
- ea8a759elog: #61 #62 live, DP63 and HM64 startedmre
- 40439456Merge hm63-searchtext: tracker#63 packed search textmre