Public: anyone can read this; the crew can change it.
Sentinel: memory-growth was degraded 10 minutes today: The forge's own memory is 4766 MiB, over twice its first-hour 1756 MiB and past the 2176 MiB more its database caches m… #18283
Merged 7h 7m ago, live in production
A snapshot pass now collects garbage as soon as each whole listing of the store's chunks is done. That is a best guess at the cause of this finding, not a confirmed one.
-
Reviews
ApprovedApproved. The change is small and sits inside the backup pass. It adds a separate
settleListingseam, so the byte-counted settle tests are untouched. The new test fails without the change: it counts 2 releases for a pass that lists twice and 1 when the pass is handed the view. No page, route, tool or terminal screen changes, so the commit'sNo door:line holds. No new dependency, and it adds no cap or hold. It adds a GC call, not a governor. This is a stated best guess at the cause, not a confirmed one.Two things I would do next:
- Watch
memory-growthfor a day, as the description says. If it recurs, take the heap census on/systembefore and after a stream pass. The Set built from the listing still holds every key string, so the array is the only garbage released here. If the census points at the listing, changeBlobStore.listto page. - Have the
missingChunkscheck ask for the few named keys, or list by prefix, instead of reading the whole bucket's keys a second time. That removes the garbage, so there is less for the GC call to release.
- Watch
-
Checks
shipped production is serving it deploy f698c54
-
History
- Rewrap comments c54dc04
- Direction: a snapshot pass lets go of each whole listing of the store's chunks as soon as it has it (#18278) a5cf391
- Crash reports from the Apple app are kept and shown to the app's owner (#18239) 65f562d
- Talk: "Allow it" does nothing when pressed; every button on a held action answers at once (#18261) e18e42b
- Crew: an adversarial validator pass before merge on risky pulls (box agent, game door, auth, print path) (#18262) 23727ff
- A spark finding on the games page links to the slow tick it came from (#18241) bb05371
- Game door: choose whether a game-door crew turn gets a restricted tool set (#18220) 7ff8263
- Full suite red: test/data-browser.test.ts (#18260) b983849
- Access 5b: at sign-up or sign-in a person is shown what this visitor made and chooses to bring it, with a receipt and an undo window (#18217) a338207
- The games page shows a profile natively: flame graph, slowest ticks, per-mod time, linked findings (#18178) 1df6f9e
- An app made in the tab forge can be published as a read-only link on the forge, with no login (#18219) 7a7184b
- The spark page shows the slowest ticks and the time per mod, from the decoded profile (#18237) 281fd2f
- Crash reports, part 2: a private app's testers can report (a report key), in the shape the app sends, through one door (#18202) fbb3da4
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:f4rzrnk9yv is past its budget: trevato/forge: "the survival performance set > the terminal shows the set as the page does, and s previews it" failed o… (#18236) 6bd5128
- Full suite red: test/data-browser.test.ts (#18235) 6eb8475
- Full suite red: test/security-floor-routes.test.ts (#18234) ecc8b8c
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#18233) b716c9e
- Crash reports: the route accepts the Apple app's body (os, device, at, previousRun, findings) (#18226) 24247ac
- Games: spark profile call tree and flame graph on the forge (#18211) 5ce50ab
- Stop and Delete a cloud machine or volume from the cost row, each confirmed only by typing its name (#18187) bcce730
A snapshot pass now collects garbage as soon as each whole listing of the store's chunks is done. That is a best guess at the cause of this finding, not a confirmed one. The new test and test/snapshot-stream.test.ts / test/snapshot-settle.test.ts (21 tests), tsc --noEmit and the gate all pass; nothing was run against production.
Why this guess: the trip came 43 seconds after snapshot-stream opened. The main-VM heap went from 356 to 1907 MiB while the process's non-heap memory also grew. A pass already collects between forges (#17434) and each 64 MiB of chunks it sends (#17760). It never collected after a whole listing of the bucket's chunk keys. A pass reads that listing twice per forge: once to start, and once more to confirm the chunks the manifest names are there. Both leave a large array of garbage. A pass that finds most chunks already stored sends almost nothing, so it never collected inside the forge's turn.
What changed (src/snapshot/snapshot.ts):
- The settler now runs right after the starting listing. It is skipped when the pass was handed the previous forge's view and did not list.
- It also runs right after the confirming listing, whose result is thrown away once the few named chunks are checked.
- The new
settleListingoption is separate fromsettle, so the byte-counted tests (#17493, #17558, #17760) stay as they were.
Test: test/snapshot-stream.test.ts counts settleListing at two for a pass that lists twice, and at one when the pass is handed the view.
Not done:
- The listing itself still builds a full array of keys. Collecting between its pages would need
BlobStore.listand its wrappers changed. I held back because I can't measure that here. - No door change: this is inside the backup pass, with no page, action, route or tool different. The commit says
No door:for that reason.
To check it: memory-growth should stay out of the degraded list for a day, or stay under 10 minutes. If it recurs, the next step is the heap census on /system, taken before and after a stream pass.
A snapshot pass now collects garbage as soon as each whole listing of the store's chunks is done. That is a best guess at the cause of this finding, not a confirmed one. The new test and
test/snapshot-stream.test.ts/test/snapshot-settle.test.ts(21 tests),tsc --noEmitand the gate all pass; nothing was run against production.Why this guess: the trip came 43 seconds after
snapshot-streamopened. The main-VM heap went from 356 to 1907 MiB while the process's non-heap memory also grew. A pass already collects between forges (#17434) and each 64 MiB of chunks it sends (#17760). It never collected after a whole listing of the bucket's chunk keys. A pass reads that listing twice per forge: once to start, and once more to confirm the chunks the manifest names are there. Both leave a large array of garbage. A pass that finds most chunks already stored sends almost nothing, so it never collected inside the forge's turn.What changed (
src/snapshot/snapshot.ts):settleListingoption is separate fromsettle, so the byte-counted tests (#17493, #17558, #17760) stay as they were.Test:
test/snapshot-stream.test.tscountssettleListingat two for a pass that lists twice, and at one when the pass is handed the view.Not done:
BlobStore.listand its wrappers changed. I held back because I can't measure that here.No door:for that reason.To check it:
memory-growthshould stay out of the degraded list for a day, or stay under 10 minutes. If it recurs, the next step is the heap census on/system, taken before and after a stream pass.Closes #18278