[GH-ISSUE #3485] [Engine] Measurements for a disk tier under the conversation cache (single GPU, Linux) #1423

Closed
opened 2026-11-04 01:51:10 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Fr8106 on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3485

What do you want to do?

Measurements for a disk tier under the conversation cache (parked snapshots spill to SSD when the RAM budget is exceeded; a revisit restores from disk instead of re-reading the prompt). This is data for the roadmap, not a PR — agreeing the scope here first, per the template. The tracker reset note says closed does not mean rejected, so here it is in the open.

Why: the engine runs requests serially, so when the GPU idles waiting on the CPU or the network, a second conversation cannot be served. With a disk tier under the cache, the number of served conversations is roughly 1 + w/g where w is the GPU idle share and g is the generation time; the switch cost is what decides whether that is worth building.

Measured on this box (RTX 5090, 64 GB RAM, dedicated 4 TB NVMe, Linux, our 0.1.42 build with the tier-ordered arena; all numbers are ours, measured here):

  • switch (restore a parked conversation from disk into the live slot): 1.1–1.7 s; a cold re-read of a 32K prompt at the same time costs 6.6 s, disk recall 7.8 s
  • park to disk with async write-back and incremental content-addressed segments (512 KiB, one file per record, compressed): 58 ms for the park call itself
  • write volume in steady state: 21.0% of the full state per change (a full-file store cannot get below ~22% on this workload — the block map says the GDN state is 42% of the payload and 92% of writes are growth appends, so a 5% target is not reachable)
  • the drive peaks at 1.54M IOPS multi-stream on an empty disk; the numbers above were taken with the root disk under load
  • integrity: CRC32C per segment; a validation window on two arms finished with mismatch=0 and byte-identical answers; production has run the spill/restore path since 2026-10-20 (4 spills, 1 restore, accepted)

What do you do today instead?

We built it ourselves (Linux/CUDA only, opt-in, off by default for existing installs). Upstream today has the conversation cache in RAM and the session files as an explicit save/restore API; there is no automatic tier between them and no eviction path to disk.

Originally created by @Fr8106 on GitHub (Oct 20, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3485 **What do you want to do?** Measurements for a disk tier under the conversation cache (parked snapshots spill to SSD when the RAM budget is exceeded; a revisit restores from disk instead of re-reading the prompt). This is data for the roadmap, not a PR — agreeing the scope here first, per the template. The tracker reset note says closed does not mean rejected, so here it is in the open. Why: the engine runs requests serially, so when the GPU idles waiting on the CPU or the network, a second conversation cannot be served. With a disk tier under the cache, the number of served conversations is roughly `1 + w/g` where `w` is the GPU idle share and `g` is the generation time; the switch cost is what decides whether that is worth building. Measured on this box (RTX 5090, 64 GB RAM, dedicated 4 TB NVMe, Linux, our 0.1.42 build with the tier-ordered arena; all numbers are ours, measured here): - switch (restore a parked conversation from disk into the live slot): 1.1–1.7 s; a cold re-read of a 32K prompt at the same time costs 6.6 s, disk recall 7.8 s - park to disk with async write-back and incremental content-addressed segments (512 KiB, one file per record, compressed): 58 ms for the park call itself - write volume in steady state: 21.0% of the full state per change (a full-file store cannot get below ~22% on this workload — the block map says the GDN state is 42% of the payload and 92% of writes are growth appends, so a 5% target is not reachable) - the drive peaks at 1.54M IOPS multi-stream on an empty disk; the numbers above were taken with the root disk under load - integrity: CRC32C per segment; a validation window on two arms finished with mismatch=0 and byte-identical answers; production has run the spill/restore path since 2026-10-20 (4 spills, 1 restore, accepted) **What do you do today instead?** We built it ourselves (Linux/CUDA only, opt-in, off by default for existing installs). Upstream today has the conversation cache in RAM and the session files as an explicit save/restore API; there is no automatic tier between them and no eviction path to disk.
Author
Owner

@Fr8106 commented on GitHub (Oct 20, 2026):

Per the house rule (measured numbers say what they were measured on), labeling the windows in the body, and one correction of perspective:

  • switch 1.1-1.7 s: window 5 (build-19) - after async write-back, the 512 KiB incremental segments and a fixed dangling reference (the tier's bookkeeping held raw pointers into a container that erases; a successful restore was parsed empty, failed the CRC and fell back to a cold read). Full chain: park 58 ms + a single-record read 499-929 ms + apply.
  • the 7.8 s disk recall vs the 6.6 s cold re-read of a 32K prompt: the P4 window, an earlier build without those changes, so the comparison in the body is pre-fix. Post-fix the same 32K recall is about 2-3 s end to end (the 0.5-0.9 s read + ~1.7 s apply), and a production spot check restored 807.8 MB in 899 ms.
  • the write-volume floor (~22%, steady 21.0%) and the block map (GDN state 42% of the payload, 92% of growth writes) are window 5 / its design doc.

So the honest summary is stronger than the body's: at 32K the disk tier does now beat re-reading, and the switch number is what makes the interleaving pay.

<!-- gh-comment-id:6297202851 --> @Fr8106 commented on GitHub (Oct 20, 2026): Per the house rule (measured numbers say what they were measured on), labeling the windows in the body, and one correction of perspective: - switch 1.1-1.7 s: window 5 (build-19) - after async write-back, the 512 KiB incremental segments and a fixed dangling reference (the tier's bookkeeping held raw pointers into a container that erases; a successful restore was parsed empty, failed the CRC and fell back to a cold read). Full chain: park 58 ms + a single-record read 499-929 ms + apply. - the 7.8 s disk recall vs the 6.6 s cold re-read of a 32K prompt: the P4 window, an earlier build without those changes, so the comparison in the body is pre-fix. Post-fix the same 32K recall is about 2-3 s end to end (the 0.5-0.9 s read + ~1.7 s apply), and a production spot check restored 807.8 MB in 899 ms. - the write-volume floor (~22%, steady 21.0%) and the block map (GDN state 42% of the payload, 92% of growth writes) are window 5 / its design doc. So the honest summary is stronger than the body's: at 32K the disk tier does now beat re-reading, and the switch number is what makes the interleaving pay.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659508269 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1423
No description provided.