tracker
All repositories: gitoria
6.6 KB
# Report 045 — trkmem: boot scans (T9) + sliced jobs (T10) merged and proved — branch w45-trkmem (NOT pushed, NOT deployed)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.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.## Persons guardAnton: 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 everynon-row value (`hlTypeName(r) != 'Hybrid'`) and counts it in `scan.skipped`. The only job that slices persons is the merge persons pass (only when duplicategroups exist): when a slice skipped values it logs `merge: persons range() gave N non-rows, falling back to iterate…` and does ONE iterate pass (thecredit 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 datathe 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 thereal 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.)## Same output- 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 /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,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)- 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,/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 theservice-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.## Gates (own ports 8700–8706, load 9–18) — new = w45-trkmem, old = main 6648ba4| gate | new | old ||---|---|---|| browser | 382/0 | 382/0 || kinds | 32/0 | 32/0 || franchises | 53/0 | 53/0 || pager | 229/0 | 229/0 || franchiseseed | 26/0 | 26/0 || check-theme | 97 files, 0 problems | 93 files, 0 problems |(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.## 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–12Two 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).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.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).| 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) ||---|---|---|---|---|---|---|| 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 || 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 || 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 || 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 |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.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.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;merge prepare old 44–57 s one block → new 123–130 s over ticks (A: 130 s).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;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).**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? nolog 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).## Deploy-ready?**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;(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 thereal-data table; the guard can stay (harmless). (4) people.hl photoQueue (621 K fetches in one tick) still unsliced (T10's note).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
- b9e841a7Merge branch 'sy-sync'mre
- d1ae2701sync components.hybriel 4922f9c: modal and pagination 44 px targets (vendored copies, verbatim) (SY)mre
- 043624b2theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
- 05d89fd0deploy: security gate (tests/security.mjs)mre
- 2ae8a47bMerge branch 'sk-sec'mre
- 8fee5d52sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
- 944ad51eSK: report reports/SK-sec.md, LOGsk
- 415487c1SK: import budget per user + id type check, gate checkssk
- 7b8a4f74security audit SK: nosniff + image sandbox headers, face id checks, adult follow, login budget + new session at login, guest-link budget, tests/security.mjssk
- f0f26c5areports: T18 section (gates, boot-gate, 3x3 table, search + short-id compare)mre
- 2a8682a1deploy.sh GATES: tests/warmstart.mjsmre
- 3761338breports/T17-boot.md: handoff (phase table, fix, numbers so far, open proof)mre
- 52e09eb2boot: sync window 1000 ms (the gates ask for a complete start), README boot-time sectionmre
- c87149e8tests/warmstart.mjs: the progressive start proven over HTTP (note in the window, 503 short id, after: everything); bootBeginmre
- 593a6350boot: resumable start-up scan, the server listens first (T17)mre
- be4890a0reports: H2 hydration audit (no test change needed)mre
- 1f9c8bf4re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
- c1df88eddocker-compose: HL_GC_TABLE_LOAD=62 (tracker mission 048, T16 real-data numbers)mre
- d0a82867mission 048: report, LOG (HL_GC_TABLE_LOAD=62 measured)mre
- 2d4be66fre-vendor Hybriel 5df4eb7e (GC: HL_GC_TABLE_LOAD knob, mission 406)mre