benchmarks-mv
Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS.
Brought by drakestapleton
benchmarks-mv / docs / LIVE_PRESSURE_BENCHMARK.md
| 1 | # AIEN Live Stress & Pressure Benchmark: Speed, Latency & Memory |
| 2 | |
| 3 | ## Execution Environment & Hardware Substrate |
| 4 | |
| 5 | - **Workstation**: NVIDIA DGX Spark (`spark`) |
| 6 | - **Processor**: NVIDIA Grace Blackwell (GB10, aarch64, 128-bit NEON / SVE) |
| 7 | - **Memory**: 121 GB Unified LPDDR5X (Unified CPU/GPU Physical Memory) |
| 8 | - **Host Kernel**: Linux 7.0.0-1019-nvidia (4 KB page size) |
| 9 | - **Compiler**: rustc 1.98.1 (48a229cea 2026-09-01) |
| 10 | |
| 11 | --- |
| 12 | |
| 13 | |
| 14 | > [!NOTE] |
| 15 | > **Control Plane Scope Clarification**: |
| 16 | > The throughput and latency figures in Sections 1 through 3 measure native control plane execution: |
| 17 | > block-table indexing, sequence queue transitions, reference-counting mutations, and batch assembly. |
| 18 | > Block indices represent coordinate pointers in pre-allocated unified memory. |
| 19 | > Physical tensor manipulation across the Blackwell GPU substrate begins in Stages 2 through 4. |
| 20 | |
| 21 | ## 1. Native Paged KV Cache Block-Table Allocator Throughput (Control Plane) |
| 22 | |
| 23 | Direct empirical measurement of the physical KV block table allocator (`aien-kv-cache`). |
| 24 | Workload: 10,000 sequence allocations (160,000 block-table indices managed, block size = 16 tokens). |
| 25 | |
| 26 | | Metric | Measured Value | Per-Unit Latency | |
| 27 | | :--- | :--- | :--- | |
| 28 | | **Allocation Throughput** | **134,338,182 blocks/sec** | 119.10 ns/sequence (7.44 ns/block) | |
| 29 | | **Deallocation Throughput** | **238,709,061 blocks/sec** | 67.03 ns/sequence (4.19 ns/block) | |
| 30 | | **Memory Allocation Complexity** | O(1) Constant Time | Pre-mapped unified pool | |
| 31 | |
| 32 | --- |
| 33 | |
| 34 | ## 2. Subagent Zero-Copy Sequence Fork vs Memory Copy |
| 35 | |
| 36 | Parent sequence context: 4,096 tokens (256 KV blocks, ~384 MB physical KV state in BF16). |
| 37 | Measures time and memory required to spawn autonomous child subagents branching from parent context. |
| 38 | |
| 39 | | Subagents Forked | Zero-Copy Fork Time | Naive Memory Copy | Speedup Ratio | Projected Tensor Memory Saved | |
| 40 | | :--- | :--- | :--- | :--- | :--- | |
| 41 | | **1** | 1.58 µs | 1.92 ms | **1,212.1x** | 0.38 GB | |
| 42 | | **10** | 0.46 µs | 19.20 ms | **4,152.2x** | 3.75 GB | |
| 43 | | **50** | 0.47 µs | 96.00 ms | **4,067.8x** | 18.75 GB | |
| 44 | | **100** | 0.39 µs | 192.00 ms | **4,977.2x** | 37.50 GB | |
| 45 | | **500** | 0.45 µs | 960.00 ms | **4,236.1x** | 187.50 GB | |
| 46 | |
| 47 | - **Copy-on-Write (CoW) Mutation Latency**: 8.96 ns per diverging token append. |
| 48 | - **Subagent Divergence Overhead**: Negligible. Subagents branch without duplicating common KV history. |
| 49 | |
| 50 | --- |
| 51 | |
| 52 | ## 3. Continuous Batching Scheduler Step Overhead |
| 53 | |
| 54 | Native continuous batching scheduler (`aien-scheduler`) managing token admission, continuous batching, and chunked prefill budgets. |
| 55 | |
| 56 | | Active Sequences | Batch Build Time (µs) | Scheduler Overhead Ratio (in 10ms forward pass) | |
| 57 | | :--- | :--- | :--- | |
| 58 | | 1 | 1.01 µs | 0.0101% | |
| 59 | | 9 | 2.02 µs | 0.0202% | |
| 60 | | 40 | 5.20 µs | 0.0520% | |
| 61 | | 96 | 9.66 µs | 0.0966% | |
| 62 | | 192 | 17.68 µs | 0.1768% | |
| 63 | |
| 64 | --- |
| 65 | |
| 66 | ## 4. Live Microservice Call Stress & Concurrency Saturation |
| 67 | |
| 68 | Executed via `stress_aien_live` against active production daemons on `spark`. |
| 69 | |
| 70 | ### Cortex-rs Vector Memory Call Stress (Port 18080, `/api/cortex/search`) |
| 71 | - 200 requests executed across concurrency sweeps against SQLite WAL + vector similarity table. |
| 72 | |
| 73 | | Concurrency | Throughput (req/s) | p50 Latency (ms) | p90 Latency (ms) | p95 Latency (ms) | p99 Latency (ms) | Success Rate | |
| 74 | | :--- | :--- | :--- | :--- | :--- | :--- | :--- | |
| 75 | | **10** | 1,637.21 req/s | 6.03 ms | 6.68 ms | 7.10 ms | 11.35 ms | 100.0% | |
| 76 | | **25** | 1,867.17 req/s | 10.97 ms | 17.30 ms | 29.68 ms | 41.53 ms | 100.0% | |
| 77 | | **50** | 1,960.52 req/s | 11.82 ms | 36.98 ms | 57.90 ms | 78.56 ms | 100.0% | |
| 78 | | **100** | 2,103.73 req/s | 23.02 ms | 57.30 ms | 68.83 ms | 88.18 ms | 100.0% | |
| 79 | |
| 80 | ### Cortex Transformer Encoder Batch Throughput (Port 18081, `/embed`) |
| 81 | - Model: `BAAI/bge-base-en-v1.5` (ONNX INT8, 4 CPU threads). |
| 82 | |
| 83 | | Batch Size | Total Texts | Duration (ms) | Throughput (texts/sec) | Per-Text Latency (ms) | |
| 84 | | :--- | :--- | :--- | :--- | :--- | |
| 85 | | **1** | 20 | 100.21 ms | 199.59 texts/s | 5.01 ms | |
| 86 | | **4** | 80 | 451.71 ms | 177.11 texts/s | 5.65 ms | |
| 87 | | **8** | 160 | 851.81 ms | 187.84 texts/s | 5.32 ms | |
| 88 | | **16** | 320 | 1547.26 ms | 206.82 texts/s | 4.84 ms | |
| 89 | | **32** | 640 | 3165.60 ms | 202.17 texts/s | 4.95 ms | |
| 90 | |
| 91 | ### MAX LLM Streaming & Concurrency Pressure (Port 18082, `unsloth/Llama-3.2-1B-Instruct`) |
| 92 | - Historical record: this section was measured against Modular MAX, which AIEN removed on 2026-10-15. |
| 93 | - 32 tokens per stream, multi-stream parallel client load. |
| 94 | |
| 95 | | Streams | TTFT p50 (ms) | ITL p50 (ms) | ITL p95 (ms) | Total Tok/s | E2E Latency p50 (ms) | |
| 96 | | :--- | :--- | :--- | :--- | :--- | :--- | |
| 97 | | **1** | 130.59 ms | 90.62 ms | 97.77 ms | 11.58 tok/s | 2,763.97 ms | |
| 98 | | **4** | 5,652.78 ms | 86.60 ms | 103.46 ms | 11.61 tok/s | 8,299.38 ms | |
| 99 | | **8** | 11,198.92 ms | 87.25 ms | 101.76 ms | 11.59 tok/s | 13,795.19 ms | |
| 100 | | **16** | 22,234.08 ms | 84.76 ms | 100.95 ms | 11.66 tok/s | 24,854.70 ms | |
| 101 | |
| 102 | --- |
| 103 | |
| 104 | ## 5. Memory Footprint Stability & Post-Stress Recovery |
| 105 | |
| 106 | Resident Set Size (RSS) inspected directly from `/proc/[pid]/status` (`VmRSS`) before and after concurrency saturation. |
| 107 | |
| 108 | | Service | Baseline RSS | Peak Stress RSS | Post-Stress Delta | Memory Classification | |
| 109 | | :--- | :--- | :--- | :--- | :--- | |
| 110 | | **cortex-rs** | 15.97 MB | 18.57 MB | +2.60 MB | Zero memory leaks | |
| 111 | | **cortex-encoder-rs** | 780.02 MB | 780.39 MB | +0.36 MB | Deterministic memory profile | |
| 112 | | **max inference engine** | 9,011.61 MB | 9,013.99 MB | +2.38 MB | Stable model heap | |
| 113 | | **openclaw daemon** | 4.80 MB | 4.80 MB | +0.00 MB | Zero allocation drift | |