diff --git a/docs/memory-safety.md b/docs/memory-safety.md index 50b54c06..90435f78 100644 --- a/docs/memory-safety.md +++ b/docs/memory-safety.md @@ -223,6 +223,13 @@ The server profile: `auto`, 4096/2048/1024 MiB, lock `try`, heal on. The laptop * **Job 917 (reader), first attempt, not a result.** The request decoded one token (the filler prompt ends in EOS) and the reader thread only ran for ~4 s (0 GiB through the cache), so decode speed 6.9 / 7.9 / 8.0 tok/s (A/B/C) says nothing; the memfd stayed at 0 swapped MiB and `pswpin/out` at 0 throughout. The scenario now decodes a fixed 64 tokens without stopping at EOS and lasts until the reader has streamed its 40 GiB; the re-run is job 914 (section 5.5). +### 5.5 Queued, not yet run (holder queue FIFO: roughly ten other agents' jobs were ahead) + +Job `914-mem-shed2` (binary `mem-a7`, `scripts/memory/jobs/914-mem-shed2.sh`, already in `holder2/jobs`): (1) the shed smoke again with the recovery phase fixed: it must end `MEM-RESULT scenario=shed failed=[]`, +including `MEM-SHED recovered` and `prefix_budget_mib` restored; (2) the reader scenario with a fixed 64 decoded tokens and a reader that streams 40 GiB of the KAR file through the page cache: it prints `MEM-READER phase=A/B/C` +lines with decode tok/s, `memfd_swapped_mib` and `pswpin/pswpout` per request and the B/A ratio. Until it has run, the claim "decode speed does not drop next to a competing reader, memfd stays resident" rests on job 910 (memfd 0 MiB swapped for 75 s next +to a 40 GiB reader, no swap traffic) and on the WSL2 A/B (5.3); there is no 5090 decode-speed number for it. Read the logs in `~/work/gpu-runs/holder2/jobs/914-mem-shed2.log`. + ### 5.3 Swap A/B under real pressure (WSL2 laptop, cgroup v1 memory controller, 9 GiB limit; sealed memfd 6 GiB, anonymous hog 5 GiB, a reader streaming a 12 GiB file; kernel 5.15) | arm | memfd swapped out | notes |