gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmaind2e6d26bMerge branch 'records-park55' into mainTrackermain/missions/HM1-heap-objects.md

3.3 KB

  1. # HM1 — which objects make the 19 M live heap (read-only analysis)
  2. 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."
  3. ## Background (verified by Tracker)
  4. - 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).
  5. - 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.
  6. ## Rules
  7. - 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.
  8. - 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.
  9. - 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).
  10. - Scratch: /media/STORAGE/claude-scratch/tracker/HM1/ (worktree, copy, logs). Nothing in /tmp, home or projects/. Port: 8701 on loreana (check `ss -ltnp`).
  11. - A cold start compiles for ≥120 s and the warm-up takes longer: wait for it.
  12. - 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.
  13. - Budget: maxUsd 3. Stop everything you started (server processes, ports) and list them in the report.
  14. ## Wanted (numbers)
  15. 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).
  16. 2. Which of these are cold (rarely read by a page request) vs hot.
  17. 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.
  18. 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

  • d2e6d26bMerge branch 'records-park55' into mainTracker
  • f567f025|||PR records: park #55, no Claude workers ruleTracker
  • c21aff6bMerge branch 'records-hm55c' into mainTracker
  • 9ba258d3|||PR records: HM55b resultTracker
  • 64f2d300Merge branch 'records-hm55b2' into mainTracker
  • ae3b80dc|||PR records: HM55b briefTracker
  • 7ef3cb3bMerge branch 'records-st55' into mainTracker
  • fec2e080|||PR records: STATUS HM55Tracker
  • 8e174918Merge branch 'records-hm55b' into mainTracker
  • b1ecee57|||PR records: HM55 stateTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 3059f86cMerge branch 'records-design-rule' into mainTracker
  • 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
  • d1390692Merge branch 'records-dp75b' into mainTracker
  • a4d1a7d2|||PR records: later steps checked, branch auditTracker
  • e070e16fMerge branch 'records-dp75' into mainTracker
  • 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
  • bfc4ea4dMerge branch 'ap62' into mainTracker
  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker