You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f7ecc1d
Browse filesBrowse the repository at this point in the historyBrowse files
Merge the equity-curve window commit into the train
The commit makes a sequential pass over a spilled equity curve read whole 2,730-point blocks again, with the tests and documentation that pin it. One documentation paragraph was edited on both sides: the train's copy carried the shifted line numbers of the writer constants, the commit's copy carried the new description of the reader. The merged paragraph keeps both: the reader description of the commit and the line numbers read from the merged sources (the constants at report_scratch.hpp:20-22, the writer state at report_scratch.cpp:160-168, the reader state at :278-334).
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Copy file name to clipboardExpand all lines: docs/design/tail-page-windows.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,8 +66,8 @@ arguments still accepts payload budgets, adding the exact shared line charge onc
66
66
The first placement defers index creation; a later mutation or reader may
67
67
build it. Configuration does not alter rebuilding or query ordering.
68
68
69
-
`ScratchCurveWindow` rounds its payload allowance down to complete points.
70
-
Each point is a 24-byte shared-cache page. Zero, a sub-point allowance and
69
+
`ScratchCurveWindow` rounds its payload allowance down to complete 24-byte point pages.
70
+
Backing misses adjacent to the previous lookup fill aligned blocks of up to 2,730 points; other backing misses read one point. Zero, a sub-point allowance and
71
71
optional-allocation failure bypass. A returned point is a copy, so callers
72
72
can retain it across later reads. A failed read publishes no successful tag
73
73
and can be retried after backing repair; unrelated valid lines remain valid.
@@ -86,8 +86,10 @@ allowance C, optional shared-cache storage is
86
86
payload, keys, pins and replacement metadata. Fixed owner control and
87
87
transfer/commit workspace are additional. The position reader defaults to
88
88
16 lines of 4,096 bytes; the curve reader defaults to 2,730 lines of 24
89
-
bytes. The curve therefore adds one metadata charge per point, rather than
90
-
pretending that all 2,730 records share one tag.
89
+
bytes, with one metadata charge per point. `cache_control_bytes()` reports
90
+
`sizeof(ScratchCurveWindow) + sizeof(State)`, including the fixed 65,520-byte
91
+
block workspace. Shared-cache statistics charge the optional line tags and
92
+
payload separately from that control total. Bypass reads do not use the block.
91
93
92
94
Native pending storage additionally uses `rows * record_bytes` when the
93
95
optional batch exists, plus one inline fallback record per store. At the
`ScratchCurveWindow::State` src/report_scratch.cpp:278-334); backing misses adjacent to the previous lookup fill aligned blocks of up to 2,730 points; other backing misses and bypasses read one point.
43
43
This bounds resident equity-report buffers; the scratch backing and output
44
44
still grow with the run. The replay needs no descriptor of its own in a jailed run (the arena's inherited descriptor serves it) and exactly one transient anonymous file otherwise; a run leaves the process's descriptor count as it found it.
45
45
@@ -511,7 +511,7 @@ This setter adds no environment variables or JSON limits.
511
511
| Erased minima and consumed cycles |`erased_minima_pages`, `consumed_cycle_pages`| 32 KiB each, shared by that owner's data/index files |
512
512
| Position-tail read window |`position_tail_pages`| 64 KiB in 16 complete 4 KiB pages, plus one shared metadata charge per page |
513
513
| Successor-root, group-receipt and chain-segment read caches |`successor_root_pages`, `receipt_tail_pages`, `chain_segment_pages`| 64, 64 and 16 fixed-width payload rows respectively; pending write batches are separate fixed transaction workspace |
514
-
| Ordinary report-sink metric curve reader |`equity_curve_pages`| 2,730 complete 24-byte points; the writer's retry batch is mandatory workspace |
514
+
| Ordinary report-sink metric curve reader |`equity_curve_pages`| 2,730 complete 24-byte point lines, plus a fixed 65,520-byte sequential block workspace charged by `cache_control_bytes()`; the writer's retry batch is separate mandatory workspace |
515
515
| Numeric Series/rings, HeldHistory, extrema and WMA windows constructed by the run |`ta_history_pages`| Existing owning logical window; finite allowances select backed numeric pages |
0 commit comments