interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

GitHub aien-dev/aien-sovereign-core-mv#839 (code only)

closed derived 590f72df55b21315 #839

Imported from GitHub aien-dev/aien-sovereign-core-mv#839 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 85a185816307d435e89a77666de327c293c26961 · Head 9ce24c7a1a044fc3eb0d24c1cfc5374ca80034d5

Apply it

git checkout -b patch-590f72df55b21315 85a185816307d435e89a77666de327c293c26961
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/590f72df55b21315.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aien-sovereign-core-mv
839
9ce24c7a1a044fc3eb0d24c1cfc5374ca80034d5
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":839,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/839","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:06Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index a1d85d4c..545c6790 100644
--- a/.crumb
+++ b/.crumb
@@ -125,14 +125,14 @@
         }
       ],
       "children_root": "sha256:05d34c0deec7c4a6cd3aa12640dca0c20bd8b2d4a4df809b234090822f422b4f",
-      "compiled_at": "2026-10-30T16:18:51Z",
+      "compiled_at": "2026-10-30T18:16:53Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:af06cb85279b46470d7276e59a224e62adca55445ced89329d916e34a5374eda",
-      "evidence_files": 3602,
-      "evidence_root": "sha256:1b8069934a4cc67803874ebd2ad5de32671fae5ccce1a3ea70aeb532fe8ea86b",
-      "files": 8110,
-      "generated_at_commit": "37c2d29a321eaf169288f2b32403eff2e37197b7",
-      "source_tree": "sha256:66f00cf6eeab30f6701a7ec8f8a42484bfd8c2125336c6cdf39e9804f90c7e46"
+      "digest": "sha256:8d43fa25755320eb1af923e30ec659390508c8eab3a045633f21d715845b4a2f",
+      "evidence_files": 3610,
+      "evidence_root": "sha256:8c53e39e94f66e9b7889ad07b19466ed4a13d3715822cf92271091dc7427d898",
+      "files": 8119,
+      "generated_at_commit": "85a185816307d435e89a77666de327c293c26961",
+      "source_tree": "sha256:99bc296fbb1a2cf942d1207a49cf528f5bb26cd8d668218491c2a46091c863cf"
     }
   },
   "history": [],
diff --git a/om/flint/PROFILE.md b/om/flint/PROFILE.md
index f04ede04..5749c054 100644
--- a/om/flint/PROFILE.md
+++ b/om/flint/PROFILE.md
@@ -107,3 +107,63 @@ the existing per-operator checks retain the original bound accumulation.
 WolframLanguageEvaluator: `N[694277/1000000*100,6] -> 69.4277`.
 Thus the observed `694277` means approximately **69.4% of the comparison budget**
 was consumed; it does not mean a 69.4% relative tensor error.
+
+## Load memory: peak backing, mmap residency, duplicate buffers (#834 item 4)
+
+Measured 2026-10-30 on the Spark host CPU (`taskset -c 0-4 nice -n 19 ionice -c3`),
+sovereign-core base 85a18581, omc `62775d2a…712b`, ops binary sha256
+`29cc5286276f6e4cf35cf8721b05a91e4c9534586910cdc2dbd718e4ab6f5cc9`, inputs the pinned
+TSV `60ff4dbd…f5` and forward fixture `b5e4bae2…7031`. The omc-built binary and the Python
+referee were run as separate processes, each under `test/memprobe.sh` (GNU `time -v` plus
+samples of `/proc/<pid>/status`, `smaps_rollup`, `io` and `maps` every 0.1 s):
+
+```
+bash om/flint/test/memprobe.sh OUT -- ./ops forward forward.fx real.tsv SHARD_DIR
+bash om/flint/test/memprobe.sh OUT -- env PYTHONPATH=… python om/flint/test/fwdref.py SRC SHARD_DIR forward.fx
+```
+
+| Process | Wall | Max RSS (`time -v`) | Major faults |
+|---|---:|---:|---:|
+| native forward (`ops forward`, 300 samples) | 38.75 s | 60480 kB (VmHWM 60620 kB) | 0 |
+| Python referee (`fwdref.py`) | 22.49 s | 7319656 kB | 1 |
+
+Native forward, per sample: VmPeak stays 160832 kB, the static image (the RW segment is
+0x9cd1910 bytes, `N[FromDigits["9cd1910",16]/1024] -> 160582.27` kB, plus text and stack);
+there is no heap. RssFile stays 88 kB (the binary's own text), RssShmem 0, and `maps` has
+no file mapping other than the binary in any sample: shard residency through mmap is 0. The
+shards are read with `pread` (rchar 7427081605 bytes, `N[7427081605/2^30] -> 6.917` GiB
+for the two tokens; `2*150144*2048*2 -> 1229979648` of it is lm_head); that data sits in
+the shared kernel page cache, which belongs to no process and is not counted above.
+VmHWM reaches 60144 kB at 0.40 s (layer 0) and 60620 kB at 1.69 s and stays flat until
+the last sample at 38.72 s, including the lm_head stream.
+
+Duplicate buffers: `ld_bytes` preads at most 1048576 bytes of BF16 into `gstg`, widens
+them into the f32 buffer `gw`, and reuses the chunk; `ld_rows` loads the embedding and
+lm_head in 2048-row slices. So no full BF16 tensor is ever resident; the one transient
+duplicate is the 1 MiB staging chunk beside the f32 repack. The peak is accounted for by
+the largest repacked tensor, the dense MLP 6144x2048 in f32, plus the inputs
+(WolframLanguageEvaluator: `6144*2048*4/1024 -> 49152`, `N[5248040/1024] -> 5125.04`
+fixture, `N[4269125/1024] -> 4169.07` TSV; `49152+1024+5125.04+4169.07+88 -> 59558.11` kB,
+residual `60620-59558.11 -> 1061.89` kB of activations and stack). A co-resident full BF16
+copy of that tensor would add `6144*2048*2/1024 -> 24576` kB (`60620+24576 -> 85196`).
+The referee's footprint is `N[7319656/60480] -> 121.03` times the native one.
+
+Verdict: no full-BF16-plus-repack duplicate exists, so the loader was not changed. The
+gate freezes the bound: with `FLINT_FORWARD=1`, `check.sh` runs the forward under GNU
+`time -f %M` and requires max RSS <= 65536 kB (margin `65536-60480 -> 5056` kB), which a
+co-resident BF16 copy of any tensor over 5056 kB exceeds. The f32 repack itself
+(2x the BF16 bytes of the largest tensor) is the remaining cost; computing directly from
+BF16 chunks would remove it and is not done here.
+
+Negative controls, both with the same inputs:
+
+- Bound below the measured peak: the full gate with `FWD_RSS_KB=60000` (temporary copy of
+  `check.sh`) printed `FAIL forward peak resident '60160' kB over frozen bound 60000 kB` and
+  `OM-FLINT-MANIFEST FAIL (1 of 93)`; every other check passed.
+- Real duplicate (`retain-bf16`, now a gate mutant): a 16777216-element ushort global
+  (`16777216*2/1024 -> 32768` kB virtual) written beside every f32 widening keeps a full
+  BF16 copy of each loaded tensor. Standalone run: forward still PASS (worst_ppm 694277),
+  max RSS 84960 kB, `84960-60480 -> 24480` kB above the clean binary, which is the predicted
+  BF16 copy of the dense MLP tensor within `24480-24576 -> -96` kB; `84960-65536 -> 19424` kB
+  over the bound.
+
diff --git a/om/flint/README.md b/om/flint/README.md
index 11687ac2..9c77e3cf 100644
--- a/om/flint/README.md
+++ b/om/flint/README.md
@@ -204,7 +204,9 @@ layer, expert index permuted (255 - e), and window 514.
 - bf16-activation parity: the referee runs in f32;
 - generation, bf16 activations and long-context serving remain NOT_RUN; complete two-token
   chained layer/intermediate/logit parity is now covered by the optional arm below;
-- weight streaming and repacking, with peak allocation and residency measured during load;
+- weight repacking without the f32 widening (the forward keeps one f32 copy of the tensor in
+  use; peak allocation, mmap residency and duplicate buffers during load are measured in
+  [PROFILE.md](PROFILE.md) and bounded by the gate);
 - per-expert layout checks before fusing;
 - tokenizer and control-token identity, and a load report.
 
@@ -216,8 +218,13 @@ This unit has no GPU arm. A GGUF importer, if added, will be a separate optional
 It starts from two token IDs, loads real BF16 embedding rows and all selected expert weights,
 and compares five intermediate tensors per layer, final normalization and every vocabulary logit.
 The reference tensors are comparison targets, never teacher-forced inputs.
-The full gate prints `OM-FLINT-MANIFEST PASS (92)` with real checkpoint inputs; wrong-token
-and skipped-final-normalization source mutants must fail the comparison.
+The full gate prints `OM-FLINT-MANIFEST PASS (94)` with real checkpoint inputs; wrong-token
+and skipped-final-normalization source mutants must fail the comparison, and the forward's
+peak resident set (GNU `time`, measured 60480 kB) must stay at or below the frozen 65536 kB.
+A memory mutant that keeps a full BF16 copy of every loaded tensor must still pass the
+numerics and exceed that bound (measured 84960 kB).
+`test/memprobe.sh OUTDIR -- COMMAND` records the `/proc` samples behind that bound; the
+2026-10-30 samples are in `receipts/load-mem-20261030/`.
 
 See [PROFILE.md](PROFILE.md) for the frozen weight/runtime/tokenizer/template identities
 and the architecture audit. In particular, this checkpoint has **no expert bias**, unlike
diff --git a/om/flint/check.sh b/om/flint/check.sh
index 0c2b585a..9d1ebb1a 100755
--- a/om/flint/check.sh
+++ b/om/flint/check.sh
@@ -15,7 +15,8 @@
 #   With both set, the forward-operator arm runs ops.om against test/opref.py fixtures;
 #   FLINT_PY is the referee's interpreter (torch + transformers a672eb5f), default python3.
 #   FLINT_FORWARD=1 additionally runs the full 49-layer, two-token chained forward and mutants.
-# Needs: python3 (fixture referees only), sha256sum, cmp, timeout. Host only; no network, no GPU.
+# Needs: python3 (fixture referees only), sha256sum, cmp, timeout; GNU /usr/bin/time for the
+# FLINT_FORWARD peak-memory bound. Host only; no network, no GPU.
 set -u
 here=$(cd "$(dirname "$0")" && pwd)
 root=$(cd "$here/../.." && pwd)
@@ -269,10 +270,18 @@ if [ "${FLINT_FORWARD:-0}" = 1 ]; then
     bad "forward fixture pin mismatch: $(sha "$b/forward.fx")"
   else
     cat "$b/fwdref.out"
-    line=$(timeout 600 "$b/ops" forward "$b/forward.fx" "$b/real.tsv" "$FLINT_SHARDS" 2>&1 < /dev/null)
+    line=$(timeout 600 /usr/bin/time -f %M -o "$b/fwd.maxrss" "$b/ops" forward "$b/forward.fx" "$b/real.tsv" "$FLINT_SHARDS" 2>&1 < /dev/null)
     rc=$?
     echo "$line"
     if [ "$rc" = 0 ] && [[ $line == *"forward layer 49 "* ]] && [[ $line == *" PASS" ]]; then ok "chained forward, all layers and vocabulary logits"; else bad "forward rc $rc"; fi
+    # Peak resident backing of the native forward (Core #834 item 4; receipt in PROFILE.md, probe
+    # test/memprobe.sh). The loader preads each tensor through one 1 MiB BF16 staging chunk into
+    # the f32 buffer gw and maps no shard, so the peak is the largest repacked tensor (dense MLP,
+    # 6144x2048 f32, 49152 kB) plus inputs. A co-resident full BF16 copy of that tensor
+    # (+24576 kB) or any duplicate over the margin (measured 2026-10-30: 60480 kB) fails here.
+    FWD_RSS_KB=65536
+    rss=$(tail -n 1 "$b/fwd.maxrss" 2> /dev/null)
+    if [[ $rss =~ ^[0-9]+$ ]] && [ "$rss" -le "$FWD_RSS_KB" ]; then ok "forward peak resident $rss kB <= frozen bound $FWD_RSS_KB kB"; else bad "forward peak resident '$rss' kB over frozen bound $FWD_RSS_KB kB"; fi
     s=$(cat "$here/ops.om")
     while IFS='|' read -r name from to; do
       [ "$(grep -cF -- "$from" "$here/ops.om")" = 1 ] || { bad "forward mutant $name site"; continue; }
@@ -285,6 +294,22 @@ if [ "${FLINT_FORWARD:-0}" = 1 ]; then
 wrong-token|id = fx_w add 8 t|id = add fx_w add 8 t 1
 skip-final-norm|put gfh o get gy i|put gfh o get gv i
 FORWARD_MUTANTS
+    # Memory mutant: keep a full BF16 copy of every loaded tensor (a new 32 MiB ushort global
+    # written beside each f32 widening). The numerics still PASS; the peak bound must catch it.
+    d1='global gstg uchar 4194304'
+    d2='put gw add d i bitcast f32 or shl hi 24 shl lo 16'
+    if [ "$(grep -cxF -- "$d1" "$here/ops.om")" != 1 ] || [ "$(grep -cxF -- "$d2" "$here/ops.om")" != 1 ]; then bad "memory mutant retain-bf16 site"
+    else
+      t=${s/"$d1"/"$d1${nl}global gdup ushort 16777216"}
+      printf '%s\n' "${t/"$d2"/"$d2${nl}put gdup add d i ushort or shl hi 8 lo"}" > "$b/memmut.om"
+      if ! build "$b/memmut" "$b/memmut.om"; then bad "memory mutant retain-bf16 compile"
+      else
+        line=$(timeout 600 /usr/bin/time -f %M -o "$b/mem.maxrss" "$b/memmut" forward "$b/forward.fx" "$b/real.tsv" "$FLINT_SHARDS" 2>&1 < /dev/null)
+        rc=$?
+        rss=$(tail -n 1 "$b/mem.maxrss" 2> /dev/null)
+        if [ "$rc" = 0 ] && [[ $line == *" PASS" ]] && [[ $rss =~ ^[0-9]+$ ]] && [ "$rss" -gt "$FWD_RSS_KB" ]; then ok "CAUGHT memory mutant retain-bf16: peak $rss kB > $FWD_RSS_KB kB with numerics PASS"; else bad "memory mutant retain-bf16 not caught: rc $rc peak '$rss' kB"; fi
+      fi
+    fi
   fi
 else
   echo "NOT_RUN chained forward (set FLINT_FORWARD=1)"
diff --git a/om/flint/receipts/load-mem-20261030/native/maps.first b/om/flint/receipts/load-mem-20261030/native/maps.first
new file mode 100644
index 00000000..40d3c899
--- /dev/null
+++ b/om/flint/receipts/load-mem-20261030/native/maps.first
@@ -0,0 +1,5 @@
+00400000-00416000 r-xp 00000000 103:02 3460801                           /tmp/flint834-mem-run/ops
+10000000-19cd2000 rw-p 00000000 00:00 0 
+ebccc809a000-ebccc809e000 r--p 00000000 00:00 0                          [vvar]
+ebccc809e000-ebccc80a0000 r-xp 00000000 00:00 0                          [vdso]
+ffffda4ab000-ffffda4cd000 rw-p 00000000 00:00 0                          [stack]
diff --git a/om/flint/receipts/load-mem-20261030/native/maps.last b/om/flint/receipts/load-mem-20261030/native/maps.last
new file mode 100644
index 00000000..40d3c899
--- /dev/null
+++ b/om/flint/receipts/load-mem-20261030/native/maps.last
@@ -0,0 +1,5 @@
+00400000-00416000 r-xp 00000000 103:02 3460801                           /tmp/flint834-mem-run/ops
+10000000-19cd2000 rw-p 00000000 00:00 0 
+ebccc809a000-ebccc809e000 r--p 00000000 00:00 0                          [vvar]
+ebccc809e000-ebccc80a0000 r-xp 00000000 00:00 0                          [vdso]
+ffffda4ab000-ffffda4cd000 rw-p 00000000 00:00 0                          [stack]
diff --git a/om/flint/receipts/load-mem-20261030/native/rc b/om/flint/receipts/load-mem-20261030/native/rc
new file mode 100644
index 00000000..573541ac
--- /dev/null
+++ b/om/flint/receipts/load-mem-20261030/native/rc
@@ -0,0 +1 @@
+0
diff --git a/om/flint/receipts/load-mem-20261030/native/samples.tsv b/om/flint/receipts/load-mem-20261030/native/samples.tsv
new file mode 100644
index 00000000..20a9aa2f
--- /dev/null
+++ b/om/flint/receipts/load-mem-20261030/native/samples.tsv
@@ -0,0 +1,301 @@
+t_ms	rchar	VmPeak	VmHWM	VmRSS	RssAnon	RssFile	RssShmem	sm_Rss	sm_Pss	sm_Anon	file_maps
+14	9517533	160832	9424	9424	9336	88	0	9424	9424	9336	0
+140	26307333	160832	43508	43508	43420	88	0	43572	43572	43484	0
+269	47279213	160832	43700	43700	43612	88	0	43700	43700	43612	0
+398	72449149	160832	60144	60144	60056	88	0	60152	60152	60064	0
+528	97614981	160832	60316	60316	60228	88	0	60324	60324	60236	0
+658	122780813	160832	60456	60456	60368	88	0	60456	60456	60368	0
+787	139562141	160832	60496	60496	60408	88	0	60496	60496	60408	0
+916	160534285	160832	60496	60496	60408	88	0	60496	60496	60408	0
+1044	185704221	160832	60496	60496	60408	88	0	60496	60496	60408	0
+1174	210870053	160832	60496	60496	60408	88	0	60496	60496	60408	0
+1303	236035885	160832	60496	60496	60408	88	0	60496	60496	60408	0
+1431	252817213	160832	60496	60496	60408	88	0	60496	60496	60408	0
+1560	273789357	160832	60496	60496	60408	88	0	60496	60496	60408	0
+1690	294765069	160832	60620	60620	60532	88	0	60620	60620	60532	0
+1820	331465365	160832	60620	60620	60532	88	0	60620	60620	60532	0
+1949	361874165	160832	60620	60620	60532	88	0	60620	60620	60532	0
+2078	381801493	160832	60620	60620	60532	88	0	60620	60620	60532	0
+2206	400676213	160832	60620	60620	60532	88	0	60620	60620	60532	0
+2335	433186309	160832	60620	60620	60532	88	0	60620	60620	60532	0
+2464	470935181	160832	60620	60620	60532	88	0	60620	60620	60532	0
+2593	497153741	160832	60620	60620	60532	88	0	60620	60620	60532	0
+2722	511834429	160832	60620	60620	60532	88	0	60620	60620	60532	0
+2850	534907237	160832	60620	60620	60532	88	0	60620	60620	60532	0
+2979	571607541	160832	60620	60620	60532	88	0	60620	60620	60532	0
+3109	607259253	160832	60620	60620	60532	88	0	60620	60620	60532	0
+3240	633477781	160832	60620	60620	60532	88	0	60620	60620	60532	0
+3370	654449925	160832	60620	60620	60532	88	0	60620	60620	60532	0
+3499	673328477	160832	60620	60620	60532	88	0	60620	60620	60532	0
+3628	707931613	160832	60620	60620	60532	88	0	60620	60620	60532	0
+3757	739388997	160832	60620	60620	60532	88	0	60620	60620	60532	0
+3885	760364637	160832	60620	60620	60532	88	0	60620	60620	60532	0
+4014	781336781	160832	60620	60620	60532	88	0	60620	60620	60532	0
+4144	807555389	160832	60620	60620	60532	88	0	60620	60620	60532	0
+4275	843207109	160832	60620	60620	60532	88	0	60620	60620	60532	0
+4405	870470165	160832	60620	60620	60532	88	0	60620	60620	60532	0
+4534	889348917	160832	60620	60620	60532	88	0	60620	60620	60532	0
+4663	908227749	160832	60620	60620	60532	88	0	60620	60620	60532	0
+4792	940733733	160832	60620	60620	60532	88	0	60620	60620	60532	0
+4921	975336869	160832	60620	60620	60532	88	0	60620	60620	60532	0
+5051	999458285	160832	60620	60620	60532	88	0	60620	60620	60532	0
+5181	1018333197	160832	60620	60620	60532	88	0	60620	60620	60532	0
+5311	1040357501	160832	60620	60620	60532	88	0	60620	60620	60532	0
+5441	1073912061	160832	60620	60620	60532	88	0	60620	60620	60532	0
+5570	1107466621	160832	60620	60620	60532	88	0	60620	60620	60532	0
+5701	1134733749	160832	60620	60620	60532	88	0	60620	60620	60532	0
+5832	1148365861	160832	60620	60620	60532	88	0	60620	60620	60532	0
+5963	1171438677	160832	60620	60620	60532	88	0	60620	60620	60532	0
+6092	1202896077	160832	60620	60620	60532	88	0	60620	60620	60532	0
+6223	1236450637	160832	60620	60620	60532	88	0	60620	60620	60532	0
+6354	1266863485	160832	60620	60620	60532	88	0	60620	60620	60532	0
+6484	1280495597	160832	60620	60620	60532	88	0	60620	60620	60532	0
+6615	1296228373	160832	60620	60620	60532	88	0	60620	60620	60532	0
+6745	1319297133	160832	60620	60620	60532	88	0	60620	60620	60532	0
+6876	1340268733	160832	60620	60620	60532	88	0	60620	60620	60532	0
+7008	1363337493	160832	60620	60620	60532	88	0	60620	60620	60532	0
+7138	1390604613	160832	60620	60620	60532	88	0	60620	60620	60532	0
+7268	1405285301	160832	60620	60620	60532	88	0	60620	60620	60532	0
+7400	1423115229	160832	60620	60620	60532	88	0	60620	60620	60532	0
+7531	1446183989	160832	60620	60620	60532	88	0	60620	60620	60532	0
+7662	1469252749	160832	60620	60620	60532	88	0	60620	60620	60532	0
+7792	1491272933	160832	60620	60620	60532	88	0	60620	60620	60532	0
+7923	1520637197	160832	60620	60620	60532	88	0	60620	60620	60532	0
+8051	1534269309	160832	60620	60620	60532	88	0	60620	60620	60532	0
+8184	1551050669	160832	60620	60620	60532	88	0	60620	60620	60532	0
+8315	1573070845	160832	60620	60620	60532	88	0	60620	60620	60532	0
+8445	1596139605	160832	60620	60620	60532	88	0	60620	60620	60532	0
+8575	1618159789	160832	60620	60620	60532	88	0	60620	60620	60532	0
+8707	1648572629	160832	60620	60620	60532	88	0	60620	60620	60532	0
+8838	1669544773	160832	60620	60620	60532	88	0	60620	60620	60532	0
+8968	1680034685	160832	60620	60620	60532	88	0	60620	60620	60532	0
+9098	1702054861	160832	60620	60620	60532	88	0	60620	60620	60532	0
+9229	1723026461	160832	60620	60620	60532	88	0	60620	60620	60532	0
+9359	1746095221	160832	60620	60620	60532	88	0	60620	60620	60532	0
+9490	1775459485	160832	60620	60620	60532	88	0	60620	60620	60532	0
+9621	1795383053	160832	60620	60620	60532	88	0	60620	60620	60532	0
+9751	1805872965	160832	60620	60620	60532	88	0	60620	60620	60532	0
+9882	1828941717	160832	60620	60620	60532	88	0	60620	60620	60532	0
+10014	1850961901	160832	60620	60620	60532	88	0	60620	60620	60532	0
+10143	1872982077	160832	60620	60620	60532	88	0	60620	60620	60532	0
+10273	1902346341	160832	60620	60620	60532	88	0	60620	60620	60532	0
+10404	1922269909	160832	60620	60620	60532	88	0	60620	60620	60532	0
+10535	1932759813	160832	60620	60620	60532	88	0	60620	60620	60532	0
+10667	1955828573	160832	60620	60620	60532	88	0	60620	60620	60532	0
+10797	1976800173	160832	60620	60620	60532	88	0	60620	60620	60532	0
+10928	1998820357	160832	60620	60620	60532	88	0	60620	60620	60532	0
+11057	2029233197	160832	60620	60620	60532	88	0	60620	60620	60532	0
+11186	2043913885	160832	60620	60620	60532	88	0	60620	60620	60532	0
+11316	2057549509	160832	60620	60620	60532	88	0	60620	60620	60532	0
+11447	2080618269	160832	60620	60620	60532	88	0	60620	60620	60532	0
+11578	2101589869	160832	60620	60620	60532	88	0	60620	60620	60532	0
+11708	2122561477	160832	60620	60620	60532	88	0	60620	60620	60532	0
+11840	2151925749	160832	60620	60620	60532	88	0	60620	60620	60532	0
+11970	2166606437	160832	60620	60620	60532	88	0	60620	60620	60532	0
+12099	2184436365	160832	60620	60620	60532	88	0	60620	60620	60532	0
+12227	2207505125	160832	60620	60620	60532	88	0	60620	60620	60532	0
+12358	2230573885	160832	60620	60620	60532	88	0	60620	60620	60532	0
+12488	2253642645	160832	60620	60620	60532	88	0	60620	60620	60532	0
+12620	2283006909	160832	60620	60620	60532	88	0	60620	60620	60532	0
+12752	2302930477	160832	60620	60620	60532	88	0	60620	60620	60532	0
+12883	2315517549	160832	60620	60620	60532	88	0	60620	60620	60532	0
+13014	2342780621	160832	60620	60620	60532	88	0	60620	60620	60532	0
+13144	2367946541	160832	60620	60620	60532	88	0	60620	60620	60532	0
+13273	2393112437	160832	60620	60620	60532	88	0	60620	60620	60532	0
+13403	2411991189	160832	60620	60620	60532	88	0	60620	60620	60532	0
+13531	2430870013	160832	60620	60620	60532	88	0	60620	60620	60532	0
+13663	2464424581	160832	60620	60620	60532	88	0	60620	60620	60532	0
+13795	2499027717	160832	60620	60620	60532	88	0	60620	60620	60532	0
+13924	2523149133	160832	60620	60620	60532	88	0	60620	60620	60532	0
+14054	2540975541	160832	60620	60620	60532	88	0	60620	60620	60532	0
+14182	2562999781	160832	60620	60620	60532	88	0	60620	60620	60532	0
+14310	2596554333	160832	60620	60620	60532	88	0	60620	60620	60532	0
+14438	2630108893	160832	60620	60620	60532	88	0	60620	60620	60532	0
+14569	2656327445	160832	60620	60620	60532	88	0	60620	60620	60532	0
+14701	2672056709	160832	60620	60620	60532	88	0	60620	60620	60532	0
+14832	2694080949	160832	60620	60620	60532	88	0	60620	60620	60532	0
+14962	2727635509	160832	60620	60620	60532	88	0	60620	60620	60532	0
+15095	2759092917	160832	60620	60620	60532	88	0	60620	60620	60532	0
+15225	2790554333	160832	60620	60620	60532	88	0	60620	60620	60532	0
+15355	2806283597	160832	60620	60620	60532	88	0	60620	60620	60532	0
+15486	2824113549	160832	60620	60620	60532	88	0	60620	60620	60532	0
+15618	2856619525	160832	60620	60620	60532	88	0	60620	60620	60532	0
+15750	2888076925	160832	60620	60620	60532	88	0	60620	60620	60532	0
+15881	2917441189	160832	60620	60620	60532	88	0	60620	60620	60532	0
+16014	2936316181	160832	60620	60620	60532	88	0	60620	60620	60532	0
+16143	2952048981	160832	60620	60620	60532	88	0	60620	60620	60532	0
+16265	2985603541	160832	60620	60620	60532	88	0	60620	60620	60532	0
+16385	3019158093	160832	60620	60620	60532	88	0	60620	60620	60532	0
+16505	3044328045	160832	60620	60620	60532	88	0	60620	60620	60532	0
+16625	3065300189	160832	60620	60620	60532	88	0	60620	60620	60532	0
+16745	3088373061	160832	60620	60620	60532	88	0	60620	60620	60532	0
+16865	3120879037	160832	60620	60620	60532	88	0	60620	60620	60532	0
+16985	3150239261	160832	60620	60620	60532	88	0	60620	60620	60532	0
+17105	3171215165	160832	60620	60620	60532	88	0	60620	60620	60532	0
+17225	3192187045	160832	60620	60620	60532	88	0	60620	60620	60532	0
+17346	3222599973	160832	60620	60620	60532	88	0	60620	60620	60532	0
+17465	3254057381	160832	60620	60620	60532	88	0	60620	60620	60532	0
+17588	3281320429	160832	60620	60620	60532	88	0	60620	60620	60532	0
+17715	3300199445	160832	60620	60620	60532	88	0	60620	60620	60532	0
+17852	3323272333	160832	60620	60620	60532	88	0	60620	60620	60532	0
+17976	3352632573	160832	60620	60620	60532	88	0	60620	60620	60532	0
+18113	3383041389	160832	60620	60620	60532	88	0	60620	60620	60532	0
+18237	3408207285	160832	60620	60620	60532	88	0	60620	60620	60532	0
+18366	3427086037	160832	60620	60620	60532	88	0	60620	60620	60532	0
+18493	3447013445	160832	60620	60620	60532	88	0	60620	60620	60532	0
+18624	3476373685	160832	60620	60620	60532	88	0	60620	60620	60532	0
+18755	3505733925	160832	60620	60620	60532	88	0	60620	60620	60532	0
+18883	3531948413	160832	60620	60620	60532	88	0	60620	60620	60532	0
+19012	3551875733	160832	60620	60620	60532	88	0	60620	60620	60532	0
+19141	3572847613	160832	60620	60620	60532	88	0	60620	60620	60532	0
+19271	3599066221	160832	60620	60620	60532	88	0	60620	60620	60532	0
+19401	3628426461	160832	60620	60620	60532	88	0	60620	60620	60532	0
+19531	3655689533	160832	60620	60620	60532	88	0	60620	60620	60532	0
+19661	3678762325	160832	60620	60620	60532	88	0	60620	60620	60532	0
+19791	3699734469	160832	60620	60620	60532	88	0	60620	60620	60532	0
+19922	3719661597	160832	60620	60620	60532	88	0	60620	60620	60532	0
+20052	3747973261	160832	60620	60620	60532	88	0	60620	60620	60532	0
+20182	3776284917	160832	60620	60620	60532	88	0	60620	60620	60532	0
+20314	3805649181	160832	60620	60620	60532	88	0	60620	60620	60532	0
+20444	3823475597	160832	60620	60620	60532	88	0	60620	60620	60532	0
+20573	3839208397	160832	60620	60620	60532	88	0	60620	60620	60532	0
+20704	3867520053	160832	60620	60620	60532	88	0	60620	60620	60532	0
+20832	3894783133	160832	60620	60620	60532	88	0	60620	60620	60532	0
+20962	3915758813	160832	60620	60620	60532	88	0	60620	60620	60532	0
+21092	3936730885	160832	60620	60620	60532	88	0	60620	60620	60532	0
+21222	3958755189	160832	60620	60620	60532	88	0	60620	60620	60532	0
+21352	3987066853	160832	60620	60620	60532	88	0	60620	60620	60532	0
+21483	4015378509	160832	60620	60620	60532	88	0	60620	60620	60532	0
+21614	4040544413	160832	60620	60620	60532	88	0	60620	60620	60532	0
+21744	4061520317	160832	60620	60620	60532	88	0	60620	60620	60532	0
+21874	4080399141	160832	60620	60620	60532	88	0	60620	60620	60532	0
+22004	4107662229	160832	60620	60620	60532	88	0	60620	60620	60532	0
+22133	4135973885	160832	60620	60620	60532	88	0	60620	60620	60532	0
+22263	4161139797	160832	60620	60620	60532	88	0	60620	60620	60532	0
+22394	4186309749	160832	60620	60620	60532	88	0	60620	60620	60532	0
+22525	4207281893	160832	60620	60620	60532	88	0	60620	60620	60532	0
+22653	4227209021	160832	60620	60620	60532	88	0	60620	60620	60532	0
+22783	4256569261	160832	60620	60620	60532	88	0	60620	60620	60532	0
+22913	4283832341	160832	60620	60620	60532	88	0	60620	60620	60532	0
+23044	4313196605	160832	60620	60620	60532	88	0	60620	60620	60532	0
+23174	4334168749	160832	60620	60620	60532	88	0	60620	60620	60532	0
+23304	4347804397	160832	60620	60620	60532	88	0	60620	60620	60532	0
+23435	4375067485	160832	60620	60620	60532	88	0	60620	60620	60532	0
+23565	4404427717	160832	60620	60620	60532	88	0	60620	60620	60532	0
+23695	4429597701	160832	60620	60620	60532	88	0	60620	60620	60532	0
+23826	4446375541	160832	60620	60620	60532	88	0	60620	60620	60532	0
+23956	4468399773	160832	60620	60620	60532	88	0	60620	60620	60532	0
+24084	4493565693	160832	60620	60620	60532	88	0	60620	60620	60532	0
+24214	4519780197	160832	60620	60620	60532	88	0	60620	60620	60532	0
+24345	4545994677	160832	60620	60620	60532	88	0	60620	60620	60532	0
+24476	4566970317	160832	60620	60620	60532	88	0	60620	60620	60532	0
+24606	4587942461	160832	60620	60620	60532	88	0	60620	60620	60532	0
+24734	4609966749	160832	60620	60620	60532	88	0	60620	60620	60532	0
+24864	4636181253	160832	60620	60620	60532	88	0	60620	60620	60532	0
+24994	4663444333	160832	60620	60620	60532	88	0	60620	60620	60532	0
+25125	4693857173	160832	60620	60620	60532	88	0	60620	60620	60532	0
+25257	4712732165	160832	60620	60620	60532	88	0	60620	60620	60532	0
+25385	4726367805	160832	60620	60620	60532	88	0	60620	60620	60532	0
+25513	4752582309	160832	60620	60620	60532	88	0	60620	60620	60532	0
+25643	4778796805	160832	60620	60620	60532	88	0	60620	60620	60532	0
+25771	4803962701	160832	60620	60620	60532	88	0	60620	60620	60532	0
+25900	4822841453	160832	60620	60620	60532	88	0	60620	60620	60532	0
+26027	4841716173	160832	60620	60620	60532	88	0	60620	60620	60532	0
+26155	4865837621	160832	60620	60620	60532	88	0	60620	60620	60532	0
+26285	4892052125	160832	60620	60620	60532	88	0	60620	60620	60532	0
+26413	4918266621	160832	60620	60620	60532	88	0	60620	60620	60532	0
+26541	4947630885	160832	60620	60620	60532	88	0	60620	60620	60532	0
+26671	4967554453	160832	60620	60620	60532	88	0	60620	60620	60532	0
+26800	4980141517	160832	60620	60620	60532	88	0	60620	60620	60532	0
+26931	5006356021	160832	60620	60620	60532	88	0	60620	60620	60532	0
+27061	5032570517	160832	60620	60620	60532	88	0	60620	60620	60532	0
+27188	5054590685	160832	60620	60620	60532	88	0	60620	60620	60532	0
+27319	5076615165	160832	60620	60620	60532	88	0	60620	60620	60532	0
+27449	5095489885	160832	60620	60620	60532	88	0	60620	60620	60532	0
+27580	5119611333	160832	60620	60620	60532	88	0	60620	60620	60532	0
+27709	5144777253	160832	60620	60620	60532	88	0	60620	60620	60532	0
+27840	5169943173	160832	60620	60620	60532	88	0	60620	60620	60532	0
+27966	5201404597	160832	60620	60620	60532	88	0	60620	60620	60532	0
+28093	5220279589	160832	60620	60620	60532	88	0	60620	60620	60532	0
+28220	5233915229	160832	60620	60620	60532	88	0	60620	60620	60532	0
+28346	5259081149	160832	60620	60620	60532	88	0	60620	60620	60532	0
+28473	5284247069	160832	60620	60620	60532	88	0	60620	60620	60532	0
+28599	5308364397	160832	60620	60620	60532	88	0	60620	60620	60532	0
+28728	5330388877	160832	60620	60620	60532	88	0	60620	60620	60532	0
+28860	5349263597	160832	60620	60620	60532	88	0	60620	60620	60532	0
+28987	5373385045	160832	60620	60620	60532	88	0	60620	60620	60532	0
+29116	5397502389	160832	60620	60620	60532	88	0	60620	60620	60532	0
+29246	5421619733	160832	60620	60620	60532	88	0	60620	60620	60532	0
+29377	5450984005	160832	60620	60620	60532	88	0	60620	60620	60532	0
+29508	5466713269	160832	60620	60620	60532	88	0	60620	60620	60532	0
+29638	5485591781	160832	60620	60620	60532	88	0	60620	60620	60532	0
+29768	5509709125	160832	60620	60620	60532	88	0	60620	60620	60532	0
+29898	5533826461	160832	60620	60620	60532	88	0	60620	60620	60532	0
+30029	5557943797	160832	60620	60620	60532	88	0	60620	60620	60532	0
+30159	5582065165	160832	60620	60620	60532	88	0	60620	60620	60532	0
+30290	5603037309	160832	60620	60620	60532	88	0	60620	60620	60532	0
+30420	5620867277	160832	60620	60620	60532	88	0	60620	60620	60532	0
+30550	5646033197	160832	60620	60620	60532	88	0	60620	60620	60532	0
+30680	5671199117	160832	60620	60620	60532	88	0	60620	60620	60532	0
+30810	5692170693	160832	60620	60620	60532	88	0	60620	60620	60532	0
+30939	5713146869	160832	60620	60620	60532	88	0	60620	60620	60532	0
+31066	5733074013	160832	60620	60620	60532	88	0	60620	60620	60532	0
+31197	5757191357	160832	60620	60620	60532	88	0	60620	60620	60532	0
+31327	5781308693	160832	60620	60620	60532	88	0	60620	60620	60532	0
+31457	5806474613	160832	60620	60620	60532	88	0	60620	60620	60532	0
+31586	5835838877	160832	60620	60620	60532	88	0	60620	60620	60532	0
+31715	5855762445	160832	60620	60620	60532	88	0	60620	60620	60532	0
+31844	5868349509	160832	60620	60620	60532	88	0	60620	60620	60532	0
+31974	5891418269	160832	60620	60620	60532	88	0	60620	60620	60532	0
+32105	5916584189	160832	60620	60620	60532	88	0	60620	60620	60532	0
+32233	5939652941	160832	60620	60620	60532	88	0	60620	60620	60532	0
+32367	5962725733	160832	60620	60620	60532	88	0	60620	60620	60532	0
+32497	5983697877	160832	60620	60620	60532	88	0	60620	60620	60532	0
+32627	6001527845	160832	60620	60620	60532	88	0	60620	60620	60532	0
+32757	6024596605	160832	60620	60620	60532	88	0	60620	60620	60532	0
+32888	6047665365	160832	60620	60620	60532	88	0	60620	60620	60532	0
+33018	6070734109	160832	60620	60620	60532	88	0	60620	60620	60532	0
+33146	6091710013	160832	60620	60620	60532	88	0	60620	60620	60532	0
+33275	6110584733	160832	60620	60620	60532	88	0	60620	60620	60532	0
+33406	6132609021	160832	60620	60620	60532	88	0	60620	60620	60532	0
+33535	6154629205	160832	60620	60620	60532	88	0	60620	60620	60532	0
+33664	6176649381	160832	60620	60620	60532	88	0	60620	60620	60532	0
+33795	6199718117	160832	60620	60620	60532	88	0	60620	60620	60532	0
+33924	6233276685	160832	60620	60620	60532	88	0	60620	60620	60532	0
+34053	6264733997	160832	60620	60620	60532	88	0	60620	60620	60532	0
+34183	6297239885	160832	60620	60620	60532	88	0	60620	60620	60532	0
+34312	6325551461	160832	60620	60620	60532	88	0	60620	60620	60532	0
+34442	6359105925	160832	60620	60620	60532	88	0	60620	60620	60532	0
+34569	6392660389	160832	60620	60620	60532	88	0	60620	60620	60532	0
+34698	6426214853	160832	60620	60620	60532	88	0	60620	60620	60532	0
+34829	6456623589	160832	60620	60620	60532	88	0	60620	60620	60532	0
+34959	6487032325	160832	60620	60620	60532	88	0	60620	60620	60532	0
+35089	6520586789	160832	60620	60620	60532	88	0	60620	60620	60532	0
+35216	6552044093	160832	60620	60620	60532	88	0	60620	60620	60532	0
+35345	6585598557	160832	60620	60620	60532	88	0	60620	60620	60532	0
+35473	6619153021	160832	60620	60620	60532	88	0	60620	60620	60532	0
+35602	6650610333	160832	60620	60620	60532	88	0	60620	60620	60532	0
+35731	6682067645	160832	60620	60620	60532	88	0	60620	60620	60532	0
+35859	6712476381	160832	60620	60620	60532	88	0	60620	60620	60532	0
+35988	6744982261	160832	60620	60620	60532	88	0	60620	60620	60532	0
+36117	6778536725	160832	60620	60620	60532	88	0	60620	60620	60532	0
+36247	6812091189	160832	60620	60620	60532	88	0	60620	60620	60532	0
+36376	6841975645	160832	60620	60620	60532	88	0	60620	60620	60532	0
+36505	6873432949	160832	60620	60620	60532	88	0	60620	60620	60532	0
+36635	6906987413	160832	60620	60620	60532	88	0	60620	60620	60532	0
+36766	6940541877	160832	60620	60620	60532	88	0	60620	60620	60532	0
+36897	6974096341	160832	60620	60620	60532	88	0	60620	60620	60532	0
+37027	7006602229	160832	60620	60620	60532	88	0	60620	60620	60532	0
+37157	7035962389	160832	60620	60620	60532	88	0	60620	60620	60532	0
+37285	7066371117	160832	60620	60620	60532	88	0	60620	60620	60532	0
+37415	7099925581	160832	60620	60620	60532	88	0	60620	60620	60532	0
+37547	7133480045	160832	60620	60620	60532	88	0	60620	60620	60532	0
+37677	7167034509	160832	60620	60620	60532	88	0	60620	60620	60532	0
+37807	7199540397	160832	60620	60620	60532	88	0	60620	60620	60532	0
+37937	7229949133	160832	60620	60620	60532	88	0	60620	60620	60532	0
+38069	7260357869	160832	60620	60620	60532	88	0	60620	60620	60532	0
+38198	7292863749	160832	60620	60620	60532	88	0	60620	60620	60532	0
+38329	7326418213	160832	60620	60620	60532	88	0	60620	60620	60532	0
+38460	7359972677	160832	60620	60620	60532	88	0	60620	60620	60532	0
+38590	7393527141	160832	60620	60620	60532	88	0	60620	60620	60532	0
+38720	7427081605	160832	60620	60620	60532	88	0	60620	60620	60532	0
diff --git a/om/flint/receipts/load-mem-20261030/native/stdout.last b/om/flint/receipts/load-mem-20261030/native/stdout.last
new file mode 100644
index 00000000..b3ef3b98
--- /dev/null
+++ b/om/flint/receipts/load-mem-20261030/native/stdout.last
@@ -0,0 +1 @@
+flint-op forward layer 49 elems 1312000 worst_ppm 694277 ties 5 PASS
diff --git a/om/flint/receipts/load-mem-20261030/native/time.txt b/om/flint/receipts/load-mem-20261030/native/time.txt
new file mode 100644
index 00000000..69e98273
--- /dev/null
+++ b/om/flint/receipts/load-mem-20261030/native/time.txt
@@ -0,0 +1,23 @@
+	Command being timed: "/tmp/flint834-mem-run/ops forward /tmp/flint834-mem-run/forward.fx /tmp/flint834-mem-run/real.tsv /home/drakestapleton/models/flint-2a247be0"
+	User time (seconds): 35.08
+	System time (seconds): 3.64
+	Percent of CPU this job got: 99%
+	Elapsed (wall clock) time (h:mm:ss or m:ss): 0:38.75
+	Average shared text size (kbytes): 0
+	Average unshared data size (kbytes): 0
+	Average stack size (kbytes): 0
+	Average total size (kbytes): 0
+	Maximum resident set size (kbytes): 60480
+	Average resident set size (kbytes): 0
+	Major (requiring I/O) page faults: 0
+	Minor (reclaiming a frame) page faults: 15150
+	Voluntary context switches: 5
+	Involuntary context switches: 426
+	Swaps: 0
+	File system inputs: 0
+	File system outputs: 16
+	Socket messages sent: 0
+	Socket messages received: 0
+	Signals delivered: 0
+	Page size (bytes): 4096
+	Exit status: 0
diff --git a/om/flint/receipts/load-mem-20261030/referee/rc b/om/flint/receipts/load-mem-20261030/referee/rc
new file mode 100644
index 00000000..573541ac
--- /dev/null
+++ b/om/flint/receipts/load-mem-20261030/referee/rc
@@ -0,0 +1 @@
+0
diff --git a/om/flint/receipts/load-mem-20261030/referee/time.txt b/om/flint/receipts/load-mem-20261030/referee/time.txt
new file mode 100644
index 00000000..35e799b4
--- /dev/null
+++ b/om/flint/receipts/load-mem-20261030/referee/time.txt
@@ -0,0 +1,23 @@
+	Command being timed: "env PYTHONPATH=/tmp/tf-a672 /home/drakestapleton/.venv/bin/python om/flint/test/fwdref.py /home/drakestapleton/handoffs/flint-p0/src-2a247be0 /home/drakestapleton/models/flint-2a247be0 /tmp/flint834-mem-run/forward.fx"
+	User time (seconds): 21.42
+	System time (seconds): 2.58
+	Percent of CPU this job got: 106%
+	Elapsed (wall clock) time (h:mm:ss or m:ss): 0:22.49
+	Average shared text size (kbytes): 0
+	Average unshared data size (kbytes): 0
+	Average stack size (kbytes): 0
+	Average total size (kbytes): 0
+	Maximum resident set size (kbytes): 7319656
+	Average resident set size (kbytes): 0
+	Major (requiring I/O) page faults: 1
+	Minor (reclaiming a frame) page faults: 252651
+	Voluntary context switches: 3306
+	Involuntary context switches: 208
+	Swaps: 0
+	File system inputs: 16
+	File system outputs: 10280
+	Socket messages sent: 0
+	Socket messages received: 0
+	Signals delivered: 0
+	Page size (bytes): 4096
+	Exit status: 0
diff --git a/om/flint/test/memprobe.sh b/om/flint/test/memprobe.sh
new file mode 100755
index 00000000..eab5766d
--- /dev/null
+++ b/om/flint/test/memprobe.sh
@@ -0,0 +1,52 @@
+#!/usr/bin/env bash
+# Load-memory probe for the native Flint forward (Core #834 item 4). Measurement harness only:
+# it runs one command under GNU time -v and samples the child's /proc/<pid>/status,
+# /proc/<pid>/smaps_rollup and /proc/<pid>/io every INTERVAL seconds until it exits.
+# Usage: bash om/flint/test/memprobe.sh OUTDIR -- COMMAND [ARGS...]
+# Writes OUTDIR/time.txt (time -v), OUTDIR/samples.tsv (one row per sample), OUTDIR/maps.first and
+# OUTDIR/maps.last (/proc/<pid>/maps), OUTDIR/stdout, OUTDIR/stderr, OUTDIR/rc.
+# samples.tsv columns (kB unless named): t_ms rchar_bytes VmPeak VmHWM VmRSS RssAnon RssFile
+# RssShmem smaps_Rss smaps_Pss smaps_Anonymous file_maps (mappings of files other than the binary).
+set -u
+out=$1
+shift
+[ "${1:-}" = -- ] || { echo "usage: memprobe.sh OUTDIR -- COMMAND [ARGS...]" >&2; exit 2; }
+shift
+iv=${INTERVAL:-0.1}
+mkdir -p "$out"
+/usr/bin/time -v -o "$out/time.txt" "$@" > "$out/stdout" 2> "$out/stderr" < /dev/null &
+tp=$!
+pid=
+for _ in $(seq 200); do
+  pid=$(cat "/proc/$tp/task/$tp/children" 2> /dev/null | cut -d' ' -f1)
+  [ -n "$pid" ] && break
+  sleep 0.01
+done
+[ -n "$pid" ] || { wait "$tp"; echo "memprobe: child of time not found" >&2; exit 3; }
+exe=$(readlink "/proc/$pid/exe")
+st=$(date +%s%N)
+kv() { # file key -> value of "key: N kB" or "key: N"
+  local k v rest
+  while read -r k v rest; do [ "$k" = "$2:" ] && { echo "$v"; return; }; done < "$1"
+  echo -
+}
+printf 't_ms\trchar\tVmPeak\tVmHWM\tVmRSS\tRssAnon\tRssFile\tRssShmem\tsm_Rss\tsm_Pss\tsm_Anon\tfile_maps\n' > "$out/samples.tsv"
+first=1
+while [ -r "/proc/$pid/status" ] && [ -n "$(kv "/proc/$pid/status" VmHWM 2> /dev/null | tr -d -)" ]; do
+  cat "/proc/$pid/status" > "$out/.st" 2> /dev/null || break
+  cat "/proc/$pid/smaps_rollup" > "$out/.sr" 2> /dev/null || break
+  cat "/proc/$pid/io" > "$out/.io" 2> /dev/null || break
+  cat "/proc/$pid/maps" > "$out/maps.last" 2> /dev/null || break
+  [ "$first" = 1 ] && { cat "$out/maps.last" > "$out/maps.first"; first=0; }
+  fm=$(awk -v e="$exe" '$6 ~ /^\// && $6 != e' "$out/maps.last" | wc -l)
+  now=$(( ($(date +%s%N) - st) / 1000000 ))
+  printf '%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n' "$now" "$(kv "$out/.io" rchar)" \
+    "$(kv "$out/.st" VmPeak)" "$(kv "$out/.st" VmHWM)" "$(kv "$out/.st" VmRSS)" \
+    "$(kv "$out/.st" RssAnon)" "$(kv "$out/.st" RssFile)" "$(kv "$out/.st" RssShmem)" \
+    "$(kv "$out/.sr" Rss)" "$(kv "$out/.sr" Pss)" "$(kv "$out/.sr" Anonymous)" "$fm" >> "$out/samples.tsv"
+  sleep "$iv"
+done
+wait "$tp"
+echo $? > "$out/rc"
+rm -f "$out/.st" "$out/.sr" "$out/.io"
+cat "$out/rc"