interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / evidence / ARGUS / speed2 / SPEED2.md

141 lines · 10887 bytes Raw Blame History Source

ARGUS producer speed round 2 (feat/argus-producer, 2026-09-29)

Base: 20e84b8 (producer v1.1 746b30b + H2 evidence). Result: 265b1c5 + this evidence. Host: GB10 Spark, X925 = CPUs 5-9,15-19, A725 = 0-4,10-14; gcc 13.3.0; kernel 7.0.0-1019-nvidia; perf_event_paranoid=1. ARGUS pinned at aienos feat/argus-0 b375dca (header unchanged, not edited). Every benchmark ran under flock ~/workspace/.argus-bench.lock; .spark-quiet was absent before each run. Caveat: another session was compiling (a cc1 process at about 100% CPU) during the final R8 runs. Interleaving with rotated order spreads that load over all configs, but absolute ms are slightly inflated.

Bar (fixed before measuring, unchanged)

PASS = mean <= 5% loss on the micro-op median throughput AND mean <= 5% on R8 wall clock. If the 95% CI straddles 5%, add rounds until the half-width is <= 1%. Reported against the lane's 5% and the ADR 0017 2% target.

Profile (pre-fix build 20e84b8; tools/argus/r8_perthread.sh, r8_leaf.awk, r8_offcpu.awk)

Q1. Does the consumer share cores with the workload? (perf record -s per-thread counts, 20 interleaved rounds, raw/perthread-base*.) All threads ran on the X925 cores (the A725 PMU counted 0). | per run | off | discard | ingest | |---|---|---|---| | main thread cycles / instructions | 57.2M / 127M | 61.5M / 148M | 60.6M / 147M | | main thread CPU time | 15.75 ms | 16.83 ms | 16.61 ms | | worker cycles (all worker threads) | 27.8M | 26.4M | 28.9M | | worker migrations | 14.3 | 25.4 | 20.6 | | consumer cycles / CPU time | - | 4.5M / 1.4 ms | 8.7M / 2.5 ms | Worker CPU is flat, so the consumer does not steal CPU from the workers. It does disturb scheduling: worker migrations rise, and so does lock waiting on the critical path (below).

Q2. Where does the main thread (R8's serial critical path) lose time? Samples of main-thread cycles and instructions, and off-CPU time by blocking site (20 and 15 runs, raw/main-leaf-, raw/main-offcpu-before-):

Q3 (control, same session): emit-only / discard / ingest measured in every R8 run below, not inferred.

Verdict: the remaining cost does not come from lock work or SHA-256 on the workers. It is (1) the consumer sharing the workload's cores, which shows up as worker migrations and longer w->mu waits on the main thread, and (2) a fixed ~1.1% harness cost from hashing a larger executable. The in-process SHA-256 chain (ingest vs discard) is about 0.5-0.8%.

Fixes (cheapest first, per the ladder)

Final numbers (build 265b1c5)

R8 wall clock (whole process, taskset 5-9,15-19, rotating interleave, paired per-round difference vs off, t-based 95% CI): | config | run 1 (200) | replicate (200) | pooled (400) | |---|---|---|---| | off mean | 35.10 ms | 35.03 ms | 35.06 ms | | emit only (RX_ARGUS=1) | +1.71% [+0.90, +2.52] | +2.46% [+1.56, +3.36] | +2.09% [+1.48, +2.69] | | discard, auto placement | +3.53% [+2.60, +4.46] | - | - | | ingest, auto placement (shipped default) | +4.06% [+3.22, +4.91] | +3.68% [+2.83, +4.54] | +3.87% [+3.27, +4.47] | | ingest, unpinned (none) | +5.31% [+4.45, +6.17] | +5.31% [+4.54, +6.08] | +5.31% [+4.74, +5.89] | | discard, unpinned | +4.99% [+4.13, +5.86] | - | - | | ingest, pre-fix 20e84b8 | +4.93% [+3.87, +5.98] | - | - | The replicate was decided before its result was seen, and both runs are reported. Every run passed (116 checks, 0 failures). Rough decomposition of the shipped +3.9%: ~1.1% harness (larger executable hashed by the receipt), ~1% producer hooks (emit-only minus harness), ~1.3% consumer presence even when off-core (cross-cluster cache traffic on the ring and publish lines), ~0.5% ingest SHA-256 chain. These are ranges, not exact attributions.

Micro-op (rx_aegis_evaluate + rx_world_validate_cap, 20M ops/run, 30 interleaved rounds, raw/micro-*): | config | core 7: median ops/s | mean vs 0 [95% CI] | cores 7,8: median | mean vs 0 [95% CI] | |---|---|---|---|---| | 0 | 41.47M | - | 41.66M | - | | 1 emit only | 44.07M | +5.99% [+3.27, +8.72] | 43.26M | +3.62% [+0.17, +7.07] | | 2 discard (auto) | 43.83M | +4.73% [+2.10, +7.35] | 44.79M | +4.67% [+1.27, +8.08] | | 2 ingest (auto, shipped) | 44.64M | +5.96% [+3.60, +8.32] | 44.08M | +5.53% [+3.39, +7.67] | | 2 discard, unpinned | 40.31M | -3.77% [-6.47, -1.06] | - | - | | 2 ingest, unpinned | 41.31M | -3.51% [-6.00, -1.03] | - | - | The op p50/p99 is 48/64 ns in every mode; the use update p50 is 2.25 ns. Every ARGUS build, emit-only included, is 4-6% faster than the RX_ARGUS=0 build. That points to code layout, so this bench cannot resolve costs of a few percent. In the shipped default the consumer leaves core 7 and there is no loss. Unpinned on one core (consumer on the measured core) the loss is ~3.5%, with a CI that reaches past 5%. That is diagnostic only, not the shipped config.

Verdict

Correctness (RX_ARGUS=2 ingest, ARGUS_AUTH=observer, the successor of ARGUS_WRAP=1; detectors b375dca)

Streams: ~/workspace/argus-runtime-streams/speed2-run1, speed2-run2 (make test-argus-runtime: no mask, so the consumer is "auto:unpinned") and speed2-pinned (taskset 5-9,15-19: "auto:0-4,10-14").

Build checks

Notes, not shipped

Decisions and caveats to review