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
- a429d088Mission FF1mre
- 03bbfba3Log: AP56c causemre
- 24845fe3Log: AP56b result, AP56cmre
- 6a6d71eaLog: gitoria membershipmre
- 8b842dc8Log + CONDUCTOR: gitoria PR switch-onmre
- 6bb7c20estatus: window 2026-11-09mre
- 5db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre
- e84586a7Mission AP56bmre
- 15917f03Record PR workflow rule (gitoria#50)mre
- 942ac995status: paused workers statemre
- 44b934e5log: respawn cleanupmre
- 03a80097Log: Anton GC A/Bmre
- c7cdef62Log: Apollo STOP, workers pausedmre
- d0c083fbLog: usage stopmre
- c6d464e5Log: Apollo GO backlog, AP56 and BS1 startedmre
- 1eb6f1a1Missions AP56, BS1mre
- 4871f8adLog: AP52 live on day52, browser gate greenmre
- d9bf2988Merge ap52: day52, tracker#58 server argument, #51 modal close rule, #56 keyed season rowsmre
- c4a60ef2Log: RT52 retest passed, AP52 startedmre
- 83760a55Browser gate: search results belong to the address form of the typed text (tracker#52 navigate replace)mre