tracker
All repositories: gitoria
4.4 KB
# Report 046-a — photoQueue in slices, the 22 s TTFB found and fixed, re-vendor 528bc89f — branch w46-photoq (NOT pushed, NOT deployed)Base w45-trkmem 31dcf2a. Commits: photoQueue slices · photoQueue guard · re-vendor 528bc89f (plugins mpackdb/time/web; bin/ copied from hybriel native/zig-out, git-ignored) · franchise-seed fix · report.## 1. photoQueuepeople.hl: `photoQueueStart()` snapshots the people view's id list (already /people's order, in RAM), `photoQueueStep(c)` walks it from a cursor, fetches rows and keeps ids until sliceBudgetMs (15 ms, checked every 64 ids) is spent; jobs.hl photoTick calls it per 0.1 s tick, then proceeds as before. A non-row fetch result (damaged index, a Number) is skipped + counted (`scan.skipped`) — the old loop crashed on it (first real-data try: "reading 'tmdbId': the value is Number").Same output: tests/photoqueue.hl runs the old one-shot loop (inlined verbatim) and the sliced one in one process on the same store. Bulk fixture (231 persons; and with every 3rd/5th person marked so the predicate has both outcomes: 231 → 123 ids): SAME ORDER AND IDS both times, TRACKER_SLICE_MS=0. Mutation (drop id #100) → DIFFERENT, so the test can fail. REAL data (T6 tar copy, 599,901 persons): old 302,511 ids in ONE 50.8 s block; new 302,511 ids, **identical order**, 498 ticks, 18.5 s scanning in total, longest tick 462 ms (evidence photoqueue-real.txt). No deliberate order change.Not exercised in the run-B server: the photo job is the LAST start job (after the details repair of 9,415 titles); it had not started within 10 min.## 2. The 22 s TTFB — reproduced (1st try) and fixedRun A (no token) on the final code: A1 reproduced it: `/` 21.06 s at 139 s after first 200, right after `merge done` (TTFB 0.37–0.45 s before and during merge prepare, so merge prepare itself is sliced fine). Server log: **`franchise seed: slow step, 22053 ms`**. Not a GC pause (max 4.5 s). The franchise seed's single build step → `supersedeCollections` asks `seededCoverOf(order)` for each of the 1,417 live timelines, and every ask re-read the whole timelines table (`find(null,null)`: 1,417 decodes) = 2 M decodes in one tick. Standalone probe on the real copy (tests/franchise-build-time.hl): supersedeCollections 10,393 ms (22 s inside the busy server).Fix (franchises.hl / franchiseseed.hl): `seededTimelines()` loaded once, `seededCoverIn(seeds, order)`; `seededCoverOf` is a thin wrapper (collections.hl unchanged). Same answer (first match in table order). Probe: 10,393 → 26 ms. Run A2 on the fix: no slow step, worst TTFB 4.67 s (a boot-scan GC at 24 s). franchiseseed gate 26/0.## 3. Gates (ports 8700–8706, load 4–8), new = w46-photoq, old = main 6648ba4 (T9's old bin)browser 382/0 · kinds 32/0 · franchises 53/0 · pager 229/0 · franchiseseed 26/0 · check-theme 100 files 0 problems (old 91, 0) — all equal to old and to T11.## 4. Real data, jobs ON, fake TMDB 404 (ports 8720/8721, HL_GC_STATS=1, TRACKER_SYNC=0, load 5), Hybriel 528bc89f| | first 200 | RSS boot / 60 s / 10 min | VmHWM | GC n, sum / max | TTFB all p95 / max ||---|---|---|---|---|---|| T11 B new | 149 s | 6.7 / 6.3 / 5.3 GB | 9.1 GB | 159, 132 s / 5.6 s | 151 ms / 5.7 s || **T12 B (w46 + int 6)** | **120 s** | **6.7 / 6.4 / 6.4 GB** | **8.4 GB** | 149, 120 s / 5.5 s | **71 ms / 4.3 s** |Per page p95 / max: `/` 187 ms / 4.3 s (a boot GC @81 s); /movies 30 / 410 ms; /series/The-Simpsons 60 ms / 3.1 s; /search?q=love 403 ms / 3.0 s. 58 polls per page, all 200. (T11 B new: / 1002·396, Simpsons 5726·151.)Int 6 heal: log `persons.mpack: an index named a place that is no record; indexes rebuilt from the data file` (once); persons slices (tests/persons-skip-count.hl): 4096 slices, rows=599,901, **skipped=0** (T11: 553 non-rows); the merge persons fallback did not run (0 duplicate groups anyway; no "falling back" line). Pages 16/16 not re-compared this run. RSS at 10 min 6.4 GB vs 5.3.Boot scan 77 s (T11 ~88–95 s), merge prepare 109 s.## Open- The photo job under a live token not measured in a server (starts after the repair); standalone queue build 18.5 s sliced, max tick 462 ms (probably the first tick / a GC).- timelineOfCollection (per collection of the seed file) still `find` per call: ~17 calls, ms — left.Evidence: /media/STORAGE/claude-scratch/atlas-evidence/T12/ (run-A1/A2/fnew.txt, ttfb-*.txt, server-*.log, gate logs, photoqueue-real.txt, franchise-build-time*.txt). Scripts: atlas/T12/{runA.sh,runB.sh,doA.sh,doB.sh,gates.sh,pq-real.sh}.
Branches
Latest commits
- d049b8b8Log: HM50 live, #52 donemre
- 6d05fa37Log: HM50 Part A mergedmre
- 1c7dab74HM50: the shell reads the framework's online state, netProbe removed (tracker#55)mre
- e8b91697HM50: search address follows the text via navigate(path, replace = true) (tracker#52)mre
- 6fe1896cHM50: re-vendor Hybriel set day50 (source 0ae38232, bin d3ef9d16)mre
- 2f391aa9Log: HM50 startedmre
- 4b59c03dHM50 mission: doc pathmre
- ed526d67HM50 missionmre
- 2f986ca3Log: RT50 passmre
- 1c4715a4RT50 mission: day50 repro retestmre
- 57d1c0dcLog: day50 retest requestmre
- 60b1f419Log: Anton #336 result, wake checkmre
- 919a18aalog: scratchmre
- 6b504440status tidymre
- 9332bd10log: DP70 livemre
- be11daa0DP70 brief fixmre
- 886a7028DP70 brief, HM67 mergedmre
- b41cdd6dMerge hm67-searchids: packed search IDsmre
- 385904eaReport HM67 matched heap measurements and gate proofmre
- e5c9b659Pack retained search IDs into UTF-8 bytesmre