gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmaind2e6d26bMerge branch 'records-park55' into mainTrackermain/reports/045-trkmem.md

6.6 KB

  1. # Report 045 — trkmem: boot scans (T9) + sliced jobs (T10) merged and proved — branch w45-trkmem (NOT pushed, NOT deployed)
  2. Base w43-trkmem (Hybriel f9614007, bootscan.hl) + `git merge w44-jobs-slices`; the only conflict was LOG.md. T9 owns boot files, T10 the job files, lib/slices.hl is T10's.
  3. Commits (git log w45-trkmem): merge w44 · slices guard (+ merge persons fallback + tests/slices-guard.hl) · tests · mission 045 · tests/persons-skip-count.hl · report.
  4. ## Persons guard
  5. Anton: the Numbers come from 2,089 damaged offsets in the backup's persons.id.txt (his fix: mpk393 a70d84a8, integration 6). Until then: `sliceNext` (slices.hl) skips every
  6. non-row value (`hlTypeName(r) != 'Hybrid'`) and counts it in `scan.skipped`. The only job that slices persons is the merge persons pass (only when duplicate
  7. groups exist): when a slice skipped values it logs `merge: persons range() gave N non-rows, falling back to iterate…` and does ONE iterate pass (the
  8. credit map dedupes, so rows seen twice are harmless). tests/slices-guard.hl (fake table whose range() returns 5, row, 7 → 1 row, skipped 2). On the real data
  9. the merge had 0 duplicate groups, so the fallback itself did not run there; the guard was measured with tests/persons-skip-count.hl on the copy (app stopped): **all 4096 slices of the
  10. real persons table: 599,794 rows, 553 non-rows skipped (table count 599,901)** — it did not crash. (553 ≠ 2,089: counts values seen per slice; ranges overlapping at damaged offsets, not analysed.)
  11. ## Same output
  12. - jobs-dump (T10's tests/jobs-dump.hl vs a rebuilt old twin tests/jobs-dump-old.hl on main 6648ba4; bulk fixture 3,123 shows / 3,170 seasons / 4,280 episodes /
  13. 1,001 watches / 333 follows / 231 persons — the fixture seed grew vs T10's report, same seed script): queues adult 1803, kind 1561, status 230, art 600, credits 133, repair 1803,
  14. seed 802, mergeprep groups=120 records=240; sorted outputs (19,079 lines) **IDENTICAL** for merge=0, merge=1 (all merge steps, 120 groups) and merge=1 with TRACKER_SLICE_DEPTH=3. (cmp.sh in evidence)
  15. - Pages on REAL data (16 pages: /, /movies, /movies?page=2, /series, /series?page=3, /shows, /genres, /genres/Drama, /people, /people?page=3, /search?q=love, /search?q=tom+hanks,
  16. /person/Tom-Hanks, /series/The-Simpsons, /movies/The-Godfather, /my/shows with an az5b2 session), fetched 10 min after boot with jobs running, old vs new, only the build hash and the
  17. service-worker `"at"` timestamp normalised: **16/16 identical in both pairs** (no-TMDB pair and fake-TMDB pair). Weak spots as in 043: page=N query form, /my/shows may be the signed-out page.
  18. ## Gates (own ports 8700–8706, load 9–18) — new = w45-trkmem, old = main 6648ba4
  19. | gate | new | old |
  20. |---|---|---|
  21. | browser | 382/0 | 382/0 |
  22. | kinds | 32/0 | 32/0 |
  23. | franchises | 53/0 | 53/0 |
  24. | pager | 229/0 | 229/0 |
  25. | franchiseseed | 26/0 | 26/0 |
  26. | check-theme | 97 files, 0 problems | 93 files, 0 problems |
  27. (The gates also run the sliced jobs; T10's first run failed on a missing import, so they can fail.) Logs: atlas-evidence/T11/gate-{new,old}-*.log, gates-{new,old}.log.
  28. ## Real data, jobs ON — copy of T6 tar, one fresh extract per run, ONE server at a time (ports 8720, fake TMDB 8721), HL_GC_STATS=1, no .env, TRACKER_SYNC=0, load 6–12
  29. Two pairs. A = no TMDB token (as T9's runs: adult/repair/credits/kinds/collections/art/photos OFF; jobs that run: merge, short ids, franchise seed).
  30. B = a fake TMDB on 8721 (tests/faketmdb.mjs with no fixtures: every title answers 404) so ALL job scans run (adult, details repair 9,415 titles, …) — the nearest to live.
  31. TTFB: /, /movies, /series/The-Simpsons, /search?q=love every ~10 s from the first 200 for 10 min (52–58 polls each, all HTTP 200; no auth).
  32. | run | first 200 | RSS at boot / 60 s / 10 min | VmHWM | GC n, pause sum / max | TTFB all pages p95 / max | TTFB worst (page, at s) |
  33. |---|---|---|---|---|---|---|
  34. | A old (6648ba4) | 360 s | 12.2 / 8.1 / 3.4 GB | 18.2 GB | 83, 252 s / 14.4 s | 459 ms / 46.4 s | /movies 46.4 s @32, Simpsons 14.9 s @327 |
  35. | A new (w45) | 157 s | 6.1 / 5.4 / 3.2 GB | 8.5 GB | 154, 117 s / 5.2 s | 266 ms / 22.2 s | / 22.2 s @161, / 3.2 s @72, Simpsons 4.8 s @377 |
  36. | B old | 357 s | 9.5 / 16.5 / 5.4 GB | 16.7 GB | 81, 236 s / 11.1 s | 577 ms / 19.3 s | / 19.3 s @31, /movies 14.1 s @51, / 6.6 s @209, Simpsons 9.8 s @480 |
  37. | B new (w45) | 149 s | 6.7 / 6.3 / 5.3 GB | 9.1 GB | 159, 132 s / 5.6 s | 151 ms / 5.7 s | Simpsons 5.7 s @547, 3.6 s @246; all others < 1.1 s |
  38. Per page (max / p95 ms): B old / 19270·590, /movies 14104·100, Simpsons 9777·623, search 463·83 — B new / 1002·396, /movies 247·35, Simpsons 5726·151, search 73·45.
  39. A old / 809·126, /movies 46434·113, Simpsons 14861·650, search 96·91 — A new / 22220·1630, /movies 266·67, Simpsons 4794·374, search 75·53.
  40. Job lines (B new): adult backfill start 39.7 s wall to find (21.7 s scanning in 256 slices) vs old 23.5 s as ONE block; details repair 39.3 s (21.5 s in 256 slices) vs old 14.1 s one block;
  41. merge prepare old 44–57 s one block → new 123–130 s over ticks (A: 130 s).
  42. Reading: peak RSS 18.2/16.7 → 8.5/9.1 GB (-50 %; T9's jobs-OFF run was 5.5 GB: with jobs on the merge/people passes add ~3 GB — still the merge maps + 600 K persons slicing, not analysed); boot to first 200 360 → 150 s;
  43. GC pause sum -50 %, longest pause 14 → 5.6 s; the blocking job scans (46 s, 19 s, 14 s pages) are gone from B, the worst page is 5.7 s (Simpsons, a Hybriel/runtime GC pause class, seen in old as 9.8–14.9 s).
  44. **Not clean:** run A new had ONE 22 s TTFB at 161 s (the merge prepare phase; not reproduced in B new, where merge prepare ran the same way) — cause not found (a persons/episodes slice with damaged offsets? a GC? no
  45. log line distinguishes it); note it for the re-vendor to integration 6. RSS at 60 s/10 min swing a lot (the runtime returns memory in jumps).
  46. ## Deploy-ready?
  47. **Yes, with a caveat for the persons table**: same output proven (16/16 real pages ×2, fixture dump ×3, gates 5/5 + theme = old), memory/boot/TTFB clearly better, no crash with the damaged persons index (553 skipped values). Caveats: (1) the one 22 s spike in run A new;
  48. (2) with live TMDB the jobs do real work for hours, the 10 min window shows the scan phase only; (3) re-vendor to Hybriel integration 6 (Anton's index fix + real cursors) will cut the remaining peak further — then rerun the
  49. real-data table; the guard can stay (harmless). (4) people.hl photoQueue (621 K fetches in one tick) still unsliced (T10's note).
  50. Evidence: /media/STORAGE/claude-scratch/atlas-evidence/T11/ (run-*.txt, ttfb-*.txt, server-*.log, pages-*, gate logs, persons-skip-count*.txt). Scripts: atlas/T11/{run2.sh,run3.sh,real.sh,real2.sh,gates.sh,cmp.sh,stats.sh,pagecmp.py}.

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