docs/laptop-profile: state of the laptop work (OEM vs Turbo, incident, A0 numbers, recommended config, open list); watchdog rule narrowed to the OEM signature
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
3bed06d185
commit
cfe0a02312
@@ -183,3 +183,68 @@ thread, where the Original stages through pinned buffers with helper threads.
|
||||
working-set trimming); it needs a Windows CUDA toolkit install (not present), so it was not tried.
|
||||
6. Statistics: n = 6 per arm (2 passes x 3 prompts), single process per arm, uncontrolled page-cache state; the
|
||||
charter's paired-A/B requirements (>= 30 repeats, CIs) are not met. Treat the ratios as indicative.
|
||||
|
||||
## Update 2026-10-24 (branch `claude/laptop-opt`, head 1823923 + harness): state, ceilings, what is and is not measured
|
||||
|
||||
**Work stopped early by the coordinator** (the 5090 runtime has priority): the integrated head was benchmarked only in the OEM power
|
||||
profile, nothing was tuned, `rtx3080-16g.json` is unchanged. The results below are what exists; the open list says what a rerun must do.
|
||||
|
||||
### Machine state is the dominant variable
|
||||
|
||||
| state | GPU | H2D pinned | VRAM | bf16 GEMM | how recognised |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| OEM profile (found 2026-10-17, 10-23) | P5, **30 W** limit, memory 810 MHz, SM 210-1,800 MHz | 3.1 GB/s | 40 GB/s | 6-8 TFLOP/s | `nvidia-smi -q -d PERFORMANCE,POWER`: SW Power Cap + SW Thermal Slowdown active even at idle, limit 30 W (default 115, max 140) |
|
||||
| Turbo (set by the operator 2026-10-24) | P0, 100-135 W, memory 7,151 MHz, SM 1,840 MHz | **11.8 GB/s** (pageable 7.4-7.8) | **445 GB/s** | **44 TFLOP/s** | no throttle reasons |
|
||||
|
||||
Every earlier laptop number in this document (and in `prefill-throughput.md`, `memory-safety.md`, the Original rows above) was taken in an
|
||||
undefined one of the two states and is not comparable to another; the 5.6-12.6 tok/s rows of 2026-10-16/17 cannot be paired with anything
|
||||
measured later without a same-state rerun. Full ceiling tables for both states: `docs/roofline.md` 1.5 / 1.6; Turbo ideals: decode 29-38 tok/s
|
||||
(43-46 at 3 tokens per window), prefill link-bound 480 tok/s at chunk 2048 and 1,900 tok/s at 8192 (pinned), 305 / 1,220 pageable.
|
||||
|
||||
**Stability incident.** The laptop took two BSODs (0x19C `WIN32K_POWER_WATCHDOG_TIMEOUT`, 2026-10-16 and 2026-10-23) after about 1.5 h of
|
||||
sessions in the 30 W profile; during run A1 the whole machine stalled twice (33 and 27 min gaps in `mem.tsv`). Do not run long GPU jobs in the OEM
|
||||
profile. `scripts/laptop/lap_run.sh` now wraps every laptop GPU job: preflight (refuses unless the limit is >= 100 W, no SW power cap / thermal
|
||||
slowdown at idle, not P5), a 1 Hz watchdog (`monitor.sh`: kills the job on the OEM signature = P5 + memory < 2 GHz + throttle reasons 0x4/0x20, a limit
|
||||
< 100 W, > 90 C, or a 10 s gap between samples), `timeout` 900 s, a 120 s cool-down between runs, and `~/LAPTOP_GPU.lock`. A plain P5 with the
|
||||
idle reason (0x1) during model load is a clock ramp (it tripped the first version of the rule in `T1_short` at 51 C, 17 W; the job was killed and
|
||||
no result was taken); the rule was narrowed accordingly.
|
||||
|
||||
### Measured: integrated head 1823923, OEM 30 W profile (run `A0_short`, n = 6, not a performance claim)
|
||||
|
||||
Production-like configuration (harness `original_serve_laptop_bench`, `scripts/laptop/lap_run.sh`): KAR level 2 read-only file, mapped experts,
|
||||
VRAM tier `auto` + profile (seed on, adaptive on, pcie_frac 0 for the pageable bank), MTP depth 4 with the draft vocabulary bound
|
||||
(`LELEKA_ORIGINAL_SERVE_RT_DIR=~/laptop/data/mtp-rt`), spec-min-p 0.5, INT8 KV (32,768 resident), chunk 2048, 7 CPU workers, conversation cache off,
|
||||
`benchmarks/laptop/prompts.txt` (88 / 83 / 78 tokens, 128 new, greedy). Page cache emptied first (`posix_fadvise(DONTNEED)` on the shards and the
|
||||
archive, no root needed), GPU clocks during the run: SM mean 1,268 MHz, memory 797 MHz, 29 W.
|
||||
|
||||
| pass | prefill tok/s (p1 / p2 / p3) | TTFT s | decode tok/s per request | decode weighted |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| 0 (cold) | 5.5 / 3.6 / 4.9 | 16.9 / 24.6 / 16.3 | 2.72 / 2.45 / 3.22 | 2.76 |
|
||||
| 1 (cache warming) | 3.8 / 3.3 / 7.1 | 24.0 / 26.6 / 11.6 | 1.76 / 3.96 / 5.15 | 2.95 |
|
||||
|
||||
Load to ready 271 s (the two shards are SHA-256-verified one after the other in 181.7 s, the 55 GB archive and the MTP pack in 89 s: the load is
|
||||
bound by single-threaded hashing and by the cold page cache). Peak VRAM 14,201 MiB, peak RSS 33.2 GB (anon 2.5, file 31.4, shmem 3.9), process
|
||||
VmSwap 1.8 GB, VM swap used 2.5 GB, MemAvailable minimum 30.6 GB. Tier statistics: 55 % of the expert entries from VRAM, 45 % from the CPU pool, 0 %
|
||||
over PCIe. Observations (not conclusions): the rate rises with each request while the page cache fills, i.e. a start from a cold cache pays disk reads
|
||||
for every miss; the VM already swaps anonymous pages (1.8-2.5 GB) with 40 GB of WSL RAM. Contexts of 8k / 32k / 64k / 180k were not run
|
||||
(`prompt-{8192,16384,32768,65536,180000}.ids` are generated by `cargo run -p leleka-tokenizer --example long_prompts`).
|
||||
|
||||
### Recommended laptop configuration (from the evidence above and the earlier agents' runs; none of it re-tuned here)
|
||||
|
||||
* Power: Turbo mode (P0, >= 100 W) is a precondition for any laptop claim; in the OEM profile expect 2.5-5 tok/s decode and 4-7 tok/s prefill.
|
||||
* `.wslconfig`: `memory=40GB swap=8GB` (as applied). Keep >= 6 GB free + reclaimable; `LELEKA_ORIGINAL_SERVE_RESIDENT_BUDGET_GIB` only after a measurement
|
||||
that it beats the page cache (it was neutral or negative at 11.4 GiB in the 2026-10-16 runs).
|
||||
* Engine: the `rtx3080-16g` profile as shipped (tier auto + profile, seed on, `--mtp-rt-dir` = the MTP pack, spec-min-p 0.5, INT8 KV, chunk 2048,
|
||||
7 workers, prefix cache off until the pool acceptance tests; `LELEKA_ORIGINAL_SERVE_PCIE_FRAC` unset = 0 over the pageable bank).
|
||||
* `LELEKA_ORIGINAL_SERVE_DECODE_RESERVE_MIB=512` buys 264 slots (3,133 -> 3,397) at a risk of the per-request verifier not fitting; untested on this head.
|
||||
|
||||
### Open (in the order I would run them, each <= 15 min with `lap_run.sh`, Turbo only)
|
||||
|
||||
1. Baseline in Turbo: the same 6 requests, then 8k / 32k / 64k contexts, 3 interleaved repetitions (decode weighted, prefill, TTFT, peaks).
|
||||
2. Page-cache residency after load: the loader hashes shard 0, shard 1, the archive in that order, so the archive evicts the experts; read the
|
||||
profile-ranked experts back (or hash the archive first / in parallel threads: 271 s -> about 100 s) and compare the first-request TTFT and decode.
|
||||
3. One change at a time: slots (`DECODE_RESERVE_MIB` 512), `PCIE_FRAC` 0.1-0.25 with the file pages registered (`cuMemHostRegister` of the
|
||||
read-only mapping measured 12 GB/s versus 7.5 pageable), `CPU_WORKERS` 4 / 6 / 7 (the DRAM sum saturates at 4-8 readers), chunk 4096 / 8192,
|
||||
seed swaps 1,024, prefix cache budget under the memory governor.
|
||||
4. Stability: 30 mixed requests and the 1-hour soak in 15-minute segments with `LELEKA_LAPTOP_SEQUENCE` / `LELEKA_LAPTOP_SOAK_S`
|
||||
(`mem.tsv` at 1 Hz holds RSS, VRAM, swap, clocks, power, temperature).
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# Sample one process's memory and the GPU once a second until it exits (laptop profile benches), and enforce the laptop
|
||||
# safeguards: the monitored process is killed (TERM, then KILL after 20 s) and ABORT is written to OUT.tsv.abort when
|
||||
# * the GPU performance state is P5 under load (utilisation >= 20 % or draw > 40 W), or the power limit is below 100 W,
|
||||
# * the GPU is in P5 with the memory clock below 2 GHz AND the SW power cap / SW thermal slowdown reasons (0x4 | 0x20) active: the OEM
|
||||
# profile (a plain P5 with reason 0x1 "idle" while the model is being loaded into VRAM is a clock ramp, seen in T1_short, and is not
|
||||
# aborted), or the power limit is below 100 W,
|
||||
# or the GPU temperature exceeds 90 C (the OEM silent profile and the thermal state that preceded the BSODs of 2026-10-16/23);
|
||||
# * two consecutive samples are more than 10 s apart (the machine stalled): STALL is written, all GPU work must stop.
|
||||
# monitor.sh PID OUT.tsv
|
||||
@@ -34,7 +36,8 @@ while kill -0 "$pid" 2>/dev/null; do
|
||||
if [ $((now - prev)) -gt 10 ]; then abort "STALL: $((now - prev)) s between samples"; aborted=1
|
||||
elif awk -v l="${lim:-0}" 'BEGIN {exit !(l+0 > 0 && l+0 < 100)}'; then abort "power limit ${lim} W"; aborted=1
|
||||
elif [ "${temp:-0}" -gt 90 ] 2>/dev/null; then abort "temperature ${temp} C"; aborted=1
|
||||
elif [ "${ps:-}" = P5 ] && { [ "${util:-0}" -ge 20 ] 2>/dev/null || awk -v p="${pw:-0}" 'BEGIN {exit !(p+0 > 40)}'; }; then abort "P5 under load (util ${util} %, ${pw} W)"; aborted=1
|
||||
elif [ "${ps:-}" = P5 ] && [ "${memc:-0}" -lt 2000 ] 2>/dev/null && [ $(( ${thr:-0x0} & 0x24 )) -ne 0 ] 2>/dev/null; then
|
||||
abort "P5, memory ${memc} MHz, SW power cap / thermal slowdown active (reasons ${thr}): the OEM profile"; aborted=1
|
||||
fi
|
||||
fi
|
||||
prev=$now
|
||||
|
||||
Reference in New Issue
Block a user