gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc98e2043c98e2043log: T36A rollbackmrec98e2043/missions/043-trkmem.md

1.6 KB

  1. # Mission 043 — trkmem part 1 (tracker.worldapi.org#45, TOP): stop materialising whole tables at boot
  2. Creator: 9 GB RAM and slow. Cause (Hybriel missions/388-trkmem-report.md): hl:mpackdb is on demand, but `find(null, null)` decodes EVERY
  3. row into one array; the tracker called it ~45 times, five of them at boot over persons (621 K rows, 11 s, +5.6 GB) and episodes
  4. (1.4 M, 9 s, +3 GB) — ~54 % of the boot was GC pauses those arrays caused.
  5. Part 1 (this branch w43-trkmem):
  6. 1. re-vendor plugins/ + bin/ to Hybriel master f9614007 (libmpackdb.so sha256 6fb3b9d6…, #202).
  7. 2. boot: lib/bootscan.hl — ONE streamed `iterate(null, null)` pass per table: titles → catalog lists, slug map, search entries, short ids,
  8. cast photos; episodes → catalog dates; people → search entries, short ids, slug map, TMDB ids, /people's order. Each module keeps its
  9. lazy build (ensureIndex, ensureShortIds, …) from the same per-record functions (noteIndexShow, noteSlugsOf, indexShow, noteShortIdRow,
  10. noteCastProfiles, noteIndexPerson, noteSlugOfPerson, noteTmdbOfPerson, viewEntryOf). follows/watches/franchises boot scans stream too.
  11. 3. measure old vs new, 4. gates.
  12. Part 2 (NOT done): the background jobs' `find(null, null)` (each blocks the single-threaded server for 19–74 s):
  13. merge.hl:85,107,113,155,159 · backfill.hl:46,95,136 · details.hl:53 · credits.hl:111 · collections.hl:46,50,51 · franchiseseed.hl:93,237 ·
  14. dailysync.hl:234 (moveCopiedSummaries, once, UPDATES while scanning) · franchises.hl:244,351,455,470,476,482,512 (request path, timelines/franchises
  15. tables are small) · small genre tables: catalog.hl:290, shows.hl:115,322, search.hl:251, people.hl:158.

Branches

Latest commits

  • c98e2043log: T36A rollbackmre
  • ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
  • 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre
  • 55257852log: #53 live, #56 mergedmre
  • 78b39f1bMerge hm56-rows: tracker#56 list builders insert oncemre
  • 7aea52batmdb fix: protect owners without slugs and record passing gatesmre
  • 9b3c2559tmdb fix: revalidate planned identities and reserve target idsmre
  • 6da612fclog: T36A tool defectmre
  • d56ee0daT36A: report unsafe TMDB apply revalidation and stop before livemre
  • 08e55255log: HM56 done, T36A startedmre
  • 91bcdf0eAvoid per-row list copies and reproduce keyed-row blockersmre
  • 5fd2ac75status: #36 GOmre
  • 0d253b45mission: T36Amre
  • 2aa22d23log: #36 GOmre
  • 833aee2flog: #50 closed, HM56 startedmre
  • ac58c1e5mission: HM56mre
  • 58979c0clog: HM54 held for decision, DP65 startedmre
  • bb2ebc67log: #64 live, #53 mergedmre
  • 27cde42fMerge hm53-dom: tracker#53 inputs bound to membersmre
  • 2156cc7flog: HM54 reviewmre