interplane.Get Omega
Read in your language

aien-train

AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.

Brought by drakestapleton

branch main Branches Tags History

aien-train / evidence / OMEGALLM / wsp-ctl-traces-20261107 / README.md

184 lines · 13958 bytes Raw Blame History Rendered
1# wsp controller telemetry traces, 2026-11-07
2
3Evidence for `docs/omegallm/WSP-CONTROLLER.md` section 5 (Linear DRA-187, lane wsp, B4).
4
5## Instrument
6
7The instrument going forward is the seeded Omega sampler `tools/omegallm/ctlsamp/ctlsamp.om`
8(README in the same directory). It writes one row with the keys of both old files below.
9
10## Data captured with the old sampler (kept as data)
11
12| File | Produced by | Rows | sha256 |
13|---|---|---|---|
14| `trace-001.jsonl` | old `sampler.py` (Python), 5 s interval | 360 | `531da5be7473ce80b4d98f736810365dd33339d3f0626ea7b99cb15bcb51a03e` |
15| `ups-001.jsonl` | old `ups-sampler.sh` (shell, `upsc spark`), 5 s interval | 340 | `fd8a873d20491667d05f81462f2f7848676151addb6f2ced1a1ef3c9caab894c` |
16| `run-start.txt`, `sampler.log`, `ups-sampler.log` | start time and the (empty) logs of those runs | | |
17
18The old sampler produced these 30 minute traces. Its source is in commit
19`a64e8707ebd2693254f27285dee6d8bdd0391559` (`sampler.py` sha256
20`d45206003f03be9881ae4dc2419b1c5d9ada84ead0f69b5c79c397cae02317e8`, `ups-sampler.sh` sha256
21`1cd419f15260f4c8d3d6b4023b561b02f515cd5114eae207089d6e67c377f09a`). Both files were deleted from
22this directory when the Omega port landed; `git show a64e8707:<path>` still prints them.
23
24## Port gate for ctlsamp.om: `gate-om-20261107/` (first version, commit f834366a)
25
26Built with omc from omega-mv `e5b32567` (omc sha256
27`2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`). Gate binary sha256
28`0d48c231261a7a7dd23682bbfdc3170f0344948ae2b4c1ee58e130a030877b7c`, from `ctlsamp.om` sha256
29`2dbe7f4daa9d9f1b968ca3adc1be3d86e6a3ab2c4233e7b1c705ceaf9f8b2d3a`.
30
31Run (2026-11-07T07:44:09Z to 07:46:09Z, `start.txt`), exit 0 (`exit.txt`):
32`taskset -c 0 nice -n 19 ctlsamp gate-om.jsonl 5 24 /usr/bin/nvidia-smi /usr/bin/upsc raw.log`.
3324 rows in `gate-om.jsonl`; `raw.log` holds the exact bytes of every read, which are the
34same-moment readings of the original commands and files.
35
36Results, MEASURED:
37
381. Keys and types: PASS. The jq signature (every scalar path with its JSON type) over all 24 rows
39 equals the union of the signatures of `trace-001.jsonl` and of the five UPS keys of
40 `ups-001.jsonl`: 74 entries each, none on one side only (`sig-compare.json`).
412. Paired values: PASS. For rows seq 0, 11 and 23 a Wolfram program parsed the raw records
42 independently and compared 71 values per row with the JSON: 20 core busy shares (from the two
43 `/proc/stat` records, tolerance 1/200 for the 2 decimal rounding), 3 loadavg and `runnable`,
44 24 PSI values, 7 thermal zones, 4 meminfo values, 6 nvidia-smi fields, 5 upsc fields, and
45 `ts_utc` against `ts_unix`. All other tolerances are 0. Failures: none in all 3 rows
46 (`oracle-seq{0,11,23}.wl` and `.out`). A subset of the pairs (raw reading = row value):
47
48 | Field | seq 0 | seq 11 | seq 23 |
49 |---|---|---|---|
50 | core c0 busy % | 17.5258 = 17.53 | 36.0825 = 36.08 | 100 = 100.0 |
51 | load1 | 7.6 = 7.6 | 10.76 = 10.76 | 11.01 = 11.01 |
52 | runnable | 6/3851 | 14/4570 | 9/4559 |
53 | PSI cpu some avg10 | 1.13 | 11.45 | 15.85 |
54 | tz0 C | 82.5 | 83.6 | 74.9 |
55 | MemAvailable kB | 75044120 | 72799800 | 73108508 |
56 | GPU util / W / C / MHz / pstate | 93 / 44.77 / 72 / 2099 / P0 | 87 / 31.78 / 72 / 1755 / P0 | 38 / 17.93 / 59 / 1007 / P0 |
57 | UPS load % / status / V / runtime s | 26 / OL / 121 / 1600 | 27 / OL / 121 / 1950 | 22 / OL / 122 / 2275 |
58 | ts_utc | 07:44:14Z | 07:45:09Z | 07:46:09Z |
59
603. Comparator negative control: PASS. The same Wolfram program on seq 0 with two values changed
61 by one unit in the last digit (core c0 17.54, gpu_power_w 44.771) reports exactly those two as
62 failures (`oracle-negctl-seq0.wl` and `.out`).
634. Command negative control: PASS. `ctlsamp neg-control.jsonl 5 1 /nonexistent/nvidia-smi
64 /nonexistent/upsc` exited 0 and wrote one valid row with `"gpu_error": "rc=127"` and
65 `"ups_error": "rc=127"`, the GPU and UPS keys absent (`neg-control.jsonl`). A missing command is
66 a read error in the row, not a crash.
675. Cadence: `WolframLanguageEvaluator: With[{t=<ts_unix>, c=<sample_cost_us>}, {Last[t]-First[t],
68 {Mean,Min,Max}[Differences[t]], {Min,Max,Median,Mean}[c]}]` -> span 115 s, interval
69 {5.000, 4.992, 5.008} s, sample cost {79847, 424823, 99149.5, 113802.2} us
70 (`oracle-cadence.wl` and `.out`). The median cost is higher than the old sampler's 55943 us
71 because one sample now also runs `upsc`, which the old shell sampler ran as a second process.
726. Cross-check against the independent sensors log `~/yardsticks/sensors/2026-11-07.csv` (rows
73 within 3 s, `sensors-near.txt`; not the same moment, so this is a sanity check, not the gate):
74 load1 7.60, 10.76 and 11.01 match the rows exactly; UPS W 260, 270 and 220 equal ups_load_pct
75 times 10; GPU W and util move within seconds, so they agree only roughly: seq 23 (17.93 W)
76 sits inside its neighbours (14.58 to 21.88 W), while seq 0 (44.77 W, neighbours 43.71 to
77 44.53 W) and seq 11 (31.78 W, neighbours 11.52 to 30.51 W) read a little above them.
78
79ORACLE only, not shipped: `/usr/bin/jq` (reports `jaq 3.1.1`) for the signature and the Wolfram
80MCP evaluator for the value checks. The Wolfram programs were generated from `raw.log` and
81`gate-om.jsonl` in the agent's session; the generated programs are the filed `.wl` files.
82
83## Output drain fix: `gate-om-drain-20261107/`
84
85The first version stopped reading a command's output after 8192 bytes and closed the pipe. A
86command that wrote more then died on SIGPIPE (`rc=-13`) instead of finishing. The fix keeps the
87first 8192 bytes, reads and drops the rest until the command ends, and records `truncated` in the
88error key; the 4 s kill stays. Source `ctlsamp.om` sha256
89`5de467df4bc16f41a03b87d80098cb86ffea14d8594cf4048f87bd8bef33ce5a`, binary sha256
90`7a902cd0d769662d0a102403175618cd7cf1ef3edf6b24606a65eb283c71b7d4`, same omc.
91
92Results, MEASURED, each run on core 0 at nice 19 with a 5 s interval and 2 rows, the first
93version (`-f834`) as the before case (`negctl-exits.txt` has the exits and wall clock):
94
951. Endless writer: PASS. `upsc_path` set to `/usr/bin/yes`, which prints `spark` without end. The
96 fixed sampler exits 0, both rows have `"ups_error": "timeout,truncated"`, and the samples cost
97 4040211 and 4239306 us, so the 5 s cadence holds (`negctl-endless-new.jsonl`). The first
98 version gave `rc=-13` (`negctl-endless-f834.jsonl`). No `yes` process was left behind.
992. Large finite writer: PASS. `upsc_path` set to `/usr/bin/cat`, run in a scratch directory where
100 the argument `spark` names a 2097152 byte file. The fixed sampler reads it to the end: exit 0,
101 `"ups_error": "truncated"` (cat exited 0), samples cost about 31 ms (`negctl-2mib-new.jsonl`).
102 The first version gave `rc=-13` (`negctl-2mib-f834.jsonl`). The scratch file is not filed.
1033. Normal rows unchanged: PASS. A 30 s rerun (07:54:14Z to 07:54:44Z, exit 0, 6 rows, 91 raw
104 records) has the same 74 entry key and type signature as the old traces and as the first gate
105 (`sig-compare.json`), and the Wolfram check of 71 values per row against `raw.log` finds no
106 failure in any of the 6 rows (`oracle-seq0.wl` to `oracle-seq5.wl` and `.out`).
107
108## Schedule fix and review fixes: `gate-om-sched-20261109/`
109
110Final source `ctlsamp.om` sha256 `8b08191fcc3c1a60d9117bf18f3128c4a6f56b7e1ebe7843b654aac2a81335fd`,
111binary sha256 `e0105902b2c59c684714876c4ade8aac2ad15de6a3bdf28373167674e852d0d0`, same omc.
112`binaries.sha256` names every build used below: `7a902cd0` (before, the drain-fix build above),
113`c7d19915` (schedule fix only), `9252f9e0` (schedule fix plus the bay 12 fixes, called `fin` in
114`review-fix.txt` and `gpu-launch-gaps.txt`), `ed07511b` (adds the launch guard, called `g`),
115`44a60e41` (item 6) and `e0105902` (final, item 8). All runs on core 0 at nice 19, MEASURED 2026-11-09.
116
1171. First real 30 minute run, before build `7a902cd0` (`run30-7a902cd0.jsonl`, 01:49:11Z to
118 02:19:11Z, exit 0, 360 rows, no error key). Two samples were slow: seq 180 at 02:04:21Z cost
119 5359172 us and seq 329 at 02:16:52Z cost 10516901 us. The fixed timetable then fired catch-up
120 samples: row gaps 0.610 s after seq 180, and 0.131 s and 0.101 s after seq 329, so `nvidia-smi`
121 ran about 0.1 s apart against the 5 s machine rule. Wolfram on that trace: gap mean 4.99999 s,
122 min 0.101 s, max 15.385 s; sample cost median 92.6 ms, max 10517 ms. Seq 329 cost more than the
123 two 4 s drain deadlines allow and has no error key, which fits finding 1 below (a child that
124 ended its output and kept running) or CPU starvation on a busy core; the run's raw log (2.2 MB,
125 not filed) has no timestamps, so this is [INFERENCE], not attributed.
1262. Schedule fix. The next sample starts one interval after the current one started, not on a fixed
127 grid. Control (`stall-once.sh.tpl`: both stand-ins sleep 10 s on their first call only, 4 rows):
128 row gaps before 8.041, 1.959, 5.000 s; after 8.047, 5.000, 5.000 s (`slow-gaps.txt`,
129 `slow-7a902cd0.jsonl`, `slow-c7d19915.jsonl`).
1303. Bay 12 review of `7eeb625d` (MERGE_AFTER_FIX), its proposed patch applied unchanged, each finding
131 reproduced on the before build and rerun on the final build (`review-fix.txt`,
132 `review-fix-final.txt`):
133 - Child that closes stdout and lives 12 s (`linger.sh`): before, the sample took 12004 ms and the
134 row had no error key (`t-old-linger.jsonl`); final, 4006 ms and `"ups_error": "timeout"`.
135 - 20 digit interval: before exit 101 (trap 1); final exit 2 (usage).
136 - Control bytes in `nvidia-smi` and `upsc` output (`crgpu.sh`, `crups.sh`): before, the row is not
137 valid JSON (`t-old-cr.invalid-json.txt`); final, `"gpu_pstate": "P\u0001\t\"\\0\r"` and
138 `"ups_status": "OL\r"` parse.
139 - Final build also: endless writer `timeout,truncated` in both rows, exit 0; no arguments, exit 2.
1404. Launch guard. Sample starts were spaced, but the `/proc` reads before the `nvidia-smi` launch
141 take a variable time. The sampler now waits, just before each launch, until one interval has
142 passed since the previous launch. A stand-in that logs its own start time (`gpu-launch-log.sh`,
143 stall on the first call, 5 rows) measured launch gaps: before 8.042, 1.958, 5.052, 4.948 s;
144 `9252f9e0` 8.037, 5.001, 5.003, 4.998 s; final 8.037, 5.002, 5.003, 4.996 s
145 (`gpu-launch-gaps.txt`). The residual spread of a few ms is the child's own start time. A case
146 where slow `/proc` reads make the guard wait is NOT_RUN: the reads cannot be slowed on demand.
1475. Final real 30 minute run, build `ed07511b` (`run30-ed07511b.jsonl`, 02:29:36Z to 02:59:37Z,
148 exit 0, 360 rows, no sequence break, no error key, GPU and UPS keys in every row). Wolfram:
149 span 1795.179 s, row gap mean 5.0005 s, min 4.999 s, max 5.037 s, standard deviation 0.0026 s;
150 sample cost min 84.9, median 98.0, mean 106.9, 95th percentile 139.7, max 653.6 ms. No sample
151 was slow in this window, so the catch-up and timeout paths were not exercised live.
1526. Output buffer overflow (bay 4 review of `58abacbe`, MERGE_AFTER_FIX). A control byte is written as
153 6 bytes (`\u00XX`), so two kept command outputs of 8192 bytes made of byte 1 need about 98 KB, more
154 than the 64 KiB row buffer `ob`: `ed07511b` stopped with exit 103 (trap 3) and wrote no row. Now
155 `oc` writes a full `ob` to the file of the record being built (`odst`: the trace file for a row,
156 the raw log for a raw record) and continues, so a long row goes out in more than one write and
157 nothing is cut. Control (`long-gpu.sh`, `long-ups.sh`, `review-fix-overflow.txt`):
158 `ed07511b` exit 103, 0 bytes; `44a60e41` exit 0, one 99597 byte row that parses, `gpu_pstate`
159 8182 and `ups_status` 8180 characters, all byte 1 (`t-long-44a60e41.jsonl`). On `44a60e41` the
160 controls in item 3 give the same results, the stall stand-in gives launch gaps 8.039, 5.001, 5.000,
161 5.000 s (`gpu-launch-44a60e41.log`), and two real rows have the same key paths and value types as
162 `ed07511b`. The spill path itself is exercised only by the both-long control above.
1637. Real 30 minute run of build `44a60e41` (`run30-44a60e41.jsonl`, 04:22:21Z to 04:52:21Z,
164 exit 0, 360 rows, every row parses with jq, no sequence break, no error key, GPU keys in every
165 row; largest row 1460 bytes, so no row reached the spill path). Wolfram: span 1795.153 s, row gap
166 mean 5.0004 s, min 4.999 s, max 5.027 s, standard deviation 0.0024 s; sample cost min 84.9,
167 median 92.6, mean 93.9, 95th percentile 101.0, max 238.5 ms.
1688. Failed or short writes (bay 10 review of `feb8632e`, MERGE with info 2). Every write to OUT and
169 raw_log ignored its result, so a full disk lost rows while the sampler still exited 0. Now each
170 write is checked (`wchk`); a failed or short write prints `ctlsamp: write to output failed or was
171 short` and exits 4. Control (`review-fix-write.txt`, every write to `/dev/full` returns ENOSPC):
172 OUT=/dev/full gave exit 0 and no message on `44a60e41`, exit 4 with the message on `e0105902`;
173 raw_log=/dev/full gave exit 0 on `44a60e41`, exit 4 on `e0105902`; the spill path with
174 OUT=/dev/full and both long fields gives exit 4. On `e0105902` the item 3 and item 6 controls give
175 the same results (both-long: one parsing row, fields 8182 and 8180 characters), the stall stand-in
176 gives launch gaps 8.038, 5.000, 5.000, 5.000 s (`gpu-launch-e0105902.log`), and two real rows with
177 a raw log have the same key paths as `44a60e41`. Real 30 minute run (`run30-e0105902.jsonl`,
178 05:07:04Z to 05:37:04Z): exit 0, 360 rows, every row parses, no sequence break, no error key, GPU
179 keys in every row, largest row 1463 bytes. Wolfram: span 1795.208 s, row gap mean 5.0006 s, min
180 4.999 s, max 5.055 s, standard deviation 0.0038 s; sample cost min 84.2, median 91.3, mean 94.1,
181 95th percentile 102.0, max 346.1 ms.
182
183Two partial runs of intermediate builds (`c7d19915`, `9252f9e0`) were stopped early when another fix
184landed and are not filed.