bench: community report, RTX 3090 Ti + 2x Xeon E5-2699 v3 (HP Z840), IQ3_S at 262K (#674)

Bench folder ported from PR #674 by pertain99, authorship kept.
Trimmed for 0.1.40.2: 0 raw dumps/logs/binaries left out (listed in TRIMMED.md of each folder).
Not ported: docs/COMMUNITY_BENCHMARKS.md.
This commit is contained in:
pertain99 authored and Niko1221 committed 2026-10-06 13:19:04 +02:00
1 parent fe63d57a8d
commit c9a554bc34
3 files changed
+332

No files matched your search

@@ -0,0 +1,120 @@
# Community benchmark on RTX 3090 Ti + dual Xeon E5-2699 v3 (HP Z840)
Measured on 2026-10-03 by pertain99. Tested: IQ3_S at 262,144 context on a single RTX 3090 Ti in a
dual-socket Haswell-EP workstation (AVX2 only, PCIe 3.0, 384 GB DDR4-2133), plus a three-way NUMA
placement comparison and the `--calibrate` sweep. Main limitation: one short prompt and one ~5K
prompt, greedy, output capped at 512 tokens; no quality suite beyond the engine's own checks. The
first dual-socket Xeon / Z840 data point (asked for in #508).
## Hardware and software
- GPU: NVIDIA GeForce RTX 3090 Ti 24 GB, PCIe 3.0 x16 (engine probe 12.4 GB/s host-to-device), power
limit set to 320 W (default 450 W). GPU is on NUMA node 0.
- CPU: 2x Intel Xeon E5-2699 v3 @ 2.30 GHz (Haswell-EP, 18C/36T each, 72 logical). AVX2 + FMA, **no
AVX-512**. Engine ran its expert kernels on the AVX2 path with 17 pool workers (node 0 only, see NUMA).
- RAM: 384 GB DDR4-2133 ECC (378 GB usable), 4 channels per socket, two NUMA nodes.
- Storage: Intel DC P4608 6.4 TB HHHL (PCIe 3.0 x8, two 3.2 TB controllers; one half XFS for the model
files, the other half swap), attached to NUMA node 1. System disk Samsung 870 QVO 2 TB SATA.
- OS: Ubuntu 22.04.5 LTS, kernel 6.8.0-138-generic (HWE). NVIDIA driver 610.57.04 (open kernel
modules). CUDA toolkit 12.3 used for the source build (nvcc), gcc 12.3.
- Strata: v0.1.38, `main` checkout on 2026-10-03, source build (`CMAKE_CUDA_ARCHITECTURES=86`).
- Background: GNOME desktop on the same GPU (Xorg + gnome-shell, ~15 MiB VRAM idle), dockerd,
JupyterLab idle. Expert arena in 2 MB hugetlb pages (`vm.nr_hugepages=28000`, all on node 0),
`LimitMEMLOCK=infinity`, `kernel.numa_balancing=0`.
## Model and configuration
- Model: ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, IQ3_S, pinned revision as fetched by setup
(`Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf`, `-00002-of-00002.gguf`), native pack
built by setup.
- Vision encoder on the GPU (`--vision`, mmproj BF16); shipped expert profile `data/expert-profile.bin`.
- Context 262,144; KV int8; KV streaming on (`--kv-resident 32768`, KV cache in RAM, 3.6 GB); expert
cache auto: **7,911 experts / 15.0 GiB in VRAM** with the vision encoder loaded (8,605 / 16.3 GiB
without it); expert arena 46.84 GiB in RAM; `--prefill auto`; not low-RAM mode.
- MTP on (`--spec 4`); thinking off for all measurements (`reasoning_effort: none`); greedy
(`temperature 0`); calibration run once (see below); experimental speed projection off.
```text
numactl --cpunodebind=0 --membind=0 engine/strata --serve \
--pack /data/Strata-data/packs/iq3_s --native .../IQ3_S-00001-of-00002.gguf --ple-gguf .../IQ3_S-00002-of-00002.gguf \
--expert-profile data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.70 \
--mtp /data/Strata-data/mtp/rt --max-context 262144 --kv int8 --kv-resident 32768 \
--vision --vram-reserve-mib 700 --pcie-frac 0.20
```
Server: `serve/server.py` as written by setup, with `anthropic_thinking: on_request`,
`fit_max_tokens: true`, `reasoning_budget_tokens: 8192`.
## Method
Requests through `POST /v1/chat/completions` on the local server, greedy, `reasoning_effort: none`,
`max_tokens` 512 for decode runs and 32 for the long-prompt runs. Prompt and decode tok/s are the
engine's own per-request figures from the server log (`prompt ... read in ... ms (N tok/s), ...
generated in ... ms (N tok/s)`), not total request time.
- **Decode:** one fixed 31-token Chinese coding prompt ("write an LRU cache class with unit tests and
explain line by line"), 512 generated tokens every run. First request after a start is reported as
cold (shipped profile, no adaptation); from the second request on the prompt prefix is reused
(24 of 31 tokens) and the adaptive expert tier has swapped experts in.
- **Long prompt:** a ~5,000-token prompt (one mixed Chinese/English paragraph repeated 70 times) with
a different leading sentence per run so the prompt cache does not match; 32 generated tokens.
- **NUMA A/B** (`strata-numa-ab.sh`, attached): for each placement the engine was started fresh
(systemd service stopped), hugepages redistributed to match (28000/0 for node binding, 14000/14000
otherwise), 2 warm-up decode requests, then 5 measured decode runs and 5 measured long-prompt runs;
medians and ranges reported. Model load time is from service start to `/health` reporting loaded.
- **Calibration:** `./setup.sh --calibrate` under the node-0 binding; its own measurements are quoted
as it printed them (cold cache each round, vision encoder not loaded during calibration).
- Memory: `MemTotal - MemAvailable` ~64 GB with the service up (56 GB hugetlb pool, 3.6 GB KV, engine
and server processes). Peak VRAM 23.85 GB.
## Results
Decode, IQ3_S, node-0 binding, calibrated settings (`--pcie-frac 0.20 --spec-min-p 0.70`):
| Configuration | Actual prompt tokens | Reused tokens | Generated tokens | Runs | Prompt tok/s median and range | Decode tok/s median and range | TTFT seconds median and range |
| --- | ---: | ---: | ---: | ---: | --- | --- | --- |
| cold start, first request | 31 | 0 | 512 | 1 | 54.2 | 67.1 | 0.57 |
| warm, requests 2-3 (before calibration) | 31 | 24 | 512 | 2 | 70.5-83.9 | 89.0 (87.0-91.1) | 0.08-0.10 |
| warm, A: `--cpunodebind=0 --membind=0` | 31 | 24 | 512 | 5 | not measured | 94.9 (93.7-95.9) | not measured |
| warm, B: `--interleave=all` (35 workers) | 31 | 24 | 512 | 5 | not measured | 98.8 (95.9-100.6) | not measured |
| warm, C: no numactl | 31 | 24 | 512 | 5 | not measured | 90.1 (88.2-93.4) | not measured |
| long prompt, A | ~5,000 | 0 | 32 | 5 | 1,304 (1,296-1,308) | not measured | ~3.8 |
| long prompt, B | ~5,000 | 0 | 32 | 5 | 1,239 (1,233-1,243) | not measured | ~4.0 |
| long prompt, C | ~5,000 | 0 | 32 | 5 | 1,268 (1,262-1,272) | not measured | ~3.9 |
Decode expert-cache hit rate: 82.4% on the cold first request, 90.6-92.3% warm (all three NUMA
placements within 0.1 pt of each other). Draft acceptance 77-85%.
Real agent traffic (Claude Code / OpenClaw / Hermes via the Anthropic and OpenAI endpoints, thinking
on): 56-80 tok/s decode at 76-85% hit rate; a 13,493-token agent prompt was read in 7 s (~1,900 tok/s).
Model load: 46.84 GiB of experts read from the NVMe at 5.2 GiB/s, service loaded in 32 s (node-0
binding), 36 s (default), 42 s (interleave).
`--calibrate` sweep (its own cold-cache numbers, vision off, node-0 binding):
| Setting | Values tried (tok/s) | Kept |
| --- | --- | --- |
| `--pcie-frac` | 0.00: 63.1, **0.20: 65.6**, 0.34 (auto from probe): 64.8, 0.35: 65.5, 0.55 (default): 58.3, 0.75: 51.8 | 0.20 |
| `--spec-min-p` | 0.30: 63.9, 0.50 (default): 64.9, **0.70: 70.9** | 0.70 |
| `--pool-workers` | **17: 66.8**, 11: 62.1, 8: 57.0 | 17 (default = node-0 physical cores minus 1) |
Takeaways: on PCIe 3.0 the default 0.55 PCIe share costs 11%; `--spec-min-p 0.70` was the largest
single gain (+9%); more CPU workers kept helping up to all 17 cores of the socket, but the second
socket's 18 cores plus memory interleave bought only +4% decode while costing 5% on prompt reading,
so node-0 binding was kept (it also leaves the second socket free).
Raw per-run figures and the A/B script are in this folder.
## Correctness and limitations
- The model answered the Chinese coding prompt correctly (valid Python, `OrderedDict`-based LRU with
unit tests); Claude Code against the Anthropic endpoint completed a file-creation task end to end.
- No needle test and no quality suite were run; `tools/needle_bench.py` is the obvious follow-up.
- Single GPU, one request at a time, greedy decoding, thinking off for the speed runs.
- Prompt and TTFT columns for the NUMA decode rows were not recorded by the script (decode only); the
long-prompt rows record prompt speed only.
- Decode numbers drift with draft acceptance, so a different prompt moves them by several percent.
- Hugetlb page placement matters for the NUMA comparison: with all 28,000 pages on node 0, an
`--interleave=all` run would silently fall back to node-0 pages for the arena; the script
redistributes them before each run.
@@ -0,0 +1,41 @@
{
"date": "2026-10-03",
"strata": {"version": "0.1.38", "build": "source, CMAKE_CUDA_ARCHITECTURES=86, CUDA 12.3 nvcc, gcc 12.3"},
"hardware": {
"gpu": "NVIDIA GeForce RTX 3090 Ti 24 GB", "pcie": "Gen3 x16, probe 12.4 GB/s host->device", "power_limit_w": 320,
"cpu": "2x Intel Xeon E5-2699 v3 (Haswell-EP, 18C/36T each, AVX2, no AVX-512)",
"ram": "384 GB DDR4-2133 ECC, 2 NUMA nodes", "numa_node_of_gpu": 0,
"storage_model_files": "Intel DC P4608 (one 3.2 TB controller, XFS, NUMA node 1)",
"os": "Ubuntu 22.04.5, kernel 6.8.0-138-generic", "driver": "610.57.04 (open kernel modules)"
},
"model": {"repo": "ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF", "quant": "IQ3_S", "context": 262144, "kv": "int8",
"kv_resident": 32768, "vision": "gpu", "experts_in_vram": 7911, "expert_cache_mib": 15371, "arena_mib": 47962,
"pool_workers": 17, "pcie_frac_calibrated": 0.20, "spec_min_p_calibrated": 0.70, "spec": 4},
"settings_common": {"reasoning_effort": "none", "temperature": 0},
"decode_first_requests_before_calibration": [
{"n": 1, "prompt_tokens": 31, "reused": 0, "prompt_ms": 572, "prompt_tok_s": 54.2, "generated": 512, "decode_ms": 7635, "decode_tok_s": 67.1, "drafts_accepted": 350, "drafts_offered": 414, "hit_rate_pct": 82.4},
{"n": 2, "prompt_tokens": 31, "reused": 24, "prompt_ms": 99, "prompt_tok_s": 70.5, "generated": 512, "decode_ms": 5885, "decode_tok_s": 87.0, "drafts_accepted": 336, "drafts_offered": 438, "hit_rate_pct": 92.3},
{"n": 3, "prompt_tokens": 31, "reused": 24, "prompt_ms": 83, "prompt_tok_s": 83.9, "generated": 512, "decode_ms": 5621, "decode_tok_s": 91.1, "drafts_accepted": 348, "drafts_offered": 423, "hit_rate_pct": 92.1}
],
"numa_ab_after_calibration": {
"method": "strata-numa-ab.sh: fresh engine start per placement, 2 warm-up, 5 decode runs (31-token prompt, 512 tokens), 5 long-prompt runs (~5K tokens, unique prefix, 32 tokens); medians of engine-reported tok/s",
"placements": [
{"name": "A_node0", "numactl": "--cpunodebind=0 --membind=0", "hugepages_node0_node1": [28000, 0], "ready_s": 32,
"decode_tok_s_median": 94.9, "decode_tok_s_range": [93.7, 95.9], "hit_rate_pct": 90.7, "prompt_tok_s_median": 1304.4, "prompt_tok_s_range": [1295.7, 1307.6]},
{"name": "B_interleave", "numactl": "--interleave=all", "hugepages_node0_node1": [14000, 14000], "ready_s": 42,
"decode_tok_s_median": 98.8, "decode_tok_s_range": [95.9, 100.6], "hit_rate_pct": 90.7, "prompt_tok_s_median": 1238.9, "prompt_tok_s_range": [1233.1, 1242.7]},
{"name": "C_default", "numactl": null, "hugepages_node0_node1": [14000, 14000], "ready_s": 36,
"decode_tok_s_median": 90.1, "decode_tok_s_range": [88.2, 93.4], "hit_rate_pct": 90.6, "prompt_tok_s_median": 1267.5, "prompt_tok_s_range": [1261.7, 1271.9]}
],
"chosen": "A_node0"
},
"calibrate_sweep": {
"note": "setup.sh --calibrate under A_node0; cold cache each round, vision encoder not loaded (8605 experts / 16.32 GiB in VRAM during calibration)",
"pcie_frac": {"0.00": 63.1, "0.20": 65.6, "0.34": 64.8, "0.35": 65.5, "0.55": 58.3, "0.75": 51.8, "kept": 0.20},
"spec_min_p": {"0.30": 63.9, "0.50": 64.9, "0.70": 70.9, "kept": 0.70},
"pool_workers": {"17": 66.8, "11": 62.1, "8": 57.0, "kept": 17}
},
"load": {"experts_gib": 46.84, "read_gib_per_s": 5.24, "service_ready_s_node0": 32},
"memory": {"ram_used_gb_with_service": 64, "hugetlb_pages_used": 23983, "vram_used_gb": 23.85, "idle_gpu_power_w": 20},
"agent_traffic_observed": {"decode_tok_s_range": [56, 80], "hit_rate_pct_range": [76, 85], "prompt_13493_tokens_s": 7}
}
@@ -0,0 +1,171 @@
#!/usr/bin/env bash
# strata-numa-ab.sh — 在 Z840 上对比三种 NUMA 放置方案的 Strata 速度
#
# A_node0 numactl --cpunodebind=0 --membind=0 (现在 systemd 服务用的方案)
# B_interleave numactl --interleave=all (两路 35 核 + 内存交织)
# C_default 不加 numactl (内核默认放置,作基线)
#
# 每种方案:停服务 -> 调整大页分布 -> 启动引擎 -> 预热 -> 测 N 次解码 -> 测 N 次长提示词读取 -> 停引擎
# 结束后把大页恢复到节点 0 并重新启动 systemd 服务。
#
# 用法(在 Z840 上,tmux 里): sudo -v && ./strata-numa-ab.sh
# 可选环境变量: RUNS=5 WARM=2 ORDER="A_node0 B_interleave C_default"
set -u
STRATA_DIR="$HOME/Strata"
RUN="$STRATA_DIR/run-iq3_s.sh"
LOG="$STRATA_DIR/strata-iq3_s.log"
URL="http://127.0.0.1:8080"
KEY="z840-strata-key"
RUNS="${RUNS:-5}"
WARM="${WARM:-2}"
HP0=/sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
HP1=/sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages
TOTAL_HP=28000
STAMP="$(date +%Y%m%d-%H%M)"
OUT="$HOME/strata-numa-ab-$STAMP.txt"
ORDER="${ORDER:-A_node0 B_interleave C_default}"
declare -A CMD HP
CMD[A_node0]="numactl --cpunodebind=0 --membind=0"; HP[A_node0]="$TOTAL_HP 0"
CMD[B_interleave]="numactl --interleave=all"; HP[B_interleave]="$((TOTAL_HP/2)) $((TOTAL_HP/2))"
CMD[C_default]=""; HP[C_default]="$((TOTAL_HP/2)) $((TOTAL_HP/2))"
DECODE_PROMPT='用 Python 写一个带单元测试的 LRU 缓存类,并逐行解释。'
# 长提示词:一段中英混排文字重复 70 次,约 5K token;每次前面加序号让前缀缓存失效
PARA='Strata 把 24,576 个专家分成三层:最热的常驻显存,全部放内存,查表放 SSD。The expert pool is memory-bandwidth bound, so NUMA placement matters on a dual-socket Haswell. 每个 token 只激活 10 个专家。 '
LONG_BODY="$(python3 -c "import sys; print(sys.argv[1]*70)" "$PARA")"
say(){ printf '%s\n' "$*" | tee -a "$OUT"; }
die(){ say "!! $*"; exit 1; }
need(){ command -v "$1" >/dev/null 2>&1 || die "缺少命令: $1"; }
need numactl; need curl; need python3
hp_set(){ # $1=node0 页数 $2=node1 页数;先减后加,避免瞬时超额
local n0="$1" n1="$2" c0 c1
c0=$(cat $HP0); c1=$(cat $HP1)
if (( n0 < c0 )); then echo "$n0" | sudo tee $HP0 >/dev/null; fi
if (( n1 < c1 )); then echo "$n1" | sudo tee $HP1 >/dev/null; fi
echo "$n0" | sudo tee $HP0 >/dev/null
echo "$n1" | sudo tee $HP1 >/dev/null
say " 大页分布 node0/node1 = $(cat $HP0)/$(cat $HP1)(要求 $n0/$n1)"
[[ "$(cat $HP0)" == "$n0" && "$(cat $HP1)" == "$n1" ]] || say " !! 大页没有分满,内存可能碎片化;结果仍可参考"
}
wait_ready(){ # 最多等 300 s
local i
for i in $(seq 1 150); do
if curl -s -m 3 -H "Authorization: Bearer $KEY" "$URL/health" 2>/dev/null | grep -q '"loaded": true'; then return 0; fi
sleep 2
done
return 1
}
stop_engine(){
pkill -INT -f 'serve/server.py' 2>/dev/null
local i
for i in $(seq 1 60); do
pgrep -f 'serve/server.py' >/dev/null || break
sleep 1
done
pgrep -f 'serve/server.py' >/dev/null && pkill -9 -f 'serve/server.py'
pgrep -f 'engine/strata' >/dev/null && pkill -9 -f 'engine/strata'
sleep 3
}
chat(){ # $1=内容 $2=max_tokens;只关心服务端日志,不保留回答
python3 - "$1" "$2" <<'PY' > /tmp/strata-ab-req.json
import json, sys
print(json.dumps({"model": "qwen", "messages": [{"role": "user", "content": sys.argv[1]}],
"max_tokens": int(sys.argv[2]), "reasoning_effort": "none", "temperature": 0}))
PY
curl -s -m 900 -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
--data-binary @/tmp/strata-ab-req.json "$URL/v1/chat/completions" > /dev/null
}
# 从日志新增行里抽出 (prompt tok/s, decode tok/s, hit%);参数为测量前的日志行数
parse_new(){
tail -n +"$(( $1 + 1 ))" "$LOG" | python3 -c '
import re, sys
pp, tg, hit = [], [], []
for line in sys.stdin:
m = re.search(r"read in [\d.]+ ms \(([\d.]+) tok/s\).*generated in [\d.]+ ms \(([\d.]+) tok/s\)", line)
if m: pp.append(float(m.group(1))); tg.append(float(m.group(2)))
m = re.search(r"hit rate: ([\d.]+)%", line)
if m: hit.append(float(m.group(1)))
import statistics as st
def med(x): return f"{st.median(x):.1f}" if x else "-"
def rng(x): return f"{min(x):.1f}-{max(x):.1f}" if x else "-"
print(f"{med(pp)}|{rng(pp)}|{med(tg)}|{rng(tg)}|{med(hit)}")
'
}
say "=== Strata NUMA A/B $STAMP ==="
say "机器: $(hostname) 内核: $(uname -r) 引擎: $(grep -m1 -oE 'v0\.[0-9.]+' "$STRATA_DIR/setup.py" 2>/dev/null || echo ?)"
say "每方案: 预热 $WARM 次, 解码测 $RUNS 次(512 tok), 长提示词测 $RUNS 次(约 5K tok)"
say "GPU 挂在 NUMA 节点: $(cat /sys/bus/pci/devices/$(nvidia-smi --query-gpu=pci.bus_id --format=csv,noheader | sed 's/^0000//' | tr 'A-Z' 'a-z')/numa_node 2>/dev/null || echo ?)"
say ""
sudo -n true 2>/dev/null || die "请先运行 sudo -v 让 sudo 缓存密码,再启动本脚本"
say ">> 停止 systemd 服务 strata"
sudo systemctl stop strata
stop_engine
declare -A R_PP R_PPR R_TG R_TGR R_HIT R_START
for name in $ORDER; do
say ""
say "########## 方案 $name : ${CMD[$name]:-<不加 numactl>} ##########"
read -r n0 n1 <<<"${HP[$name]}"
hp_set "$n0" "$n1"
cd "$STRATA_DIR" || die "找不到 $STRATA_DIR"
t0=$(date +%s)
if [[ -n "${CMD[$name]}" ]]; then
${CMD[$name]} "$RUN" > "/tmp/strata-ab-$name.out" 2>&1 &
else
"$RUN" > "/tmp/strata-ab-$name.out" 2>&1 &
fi
if ! wait_ready; then
say " !! 引擎 300 s 内没就绪,跳过。最后输出:"; tail -5 "/tmp/strata-ab-$name.out" | tee -a "$OUT"
stop_engine; continue
fi
R_START[$name]=$(( $(date +%s) - t0 ))
say " 就绪用时 ${R_START[$name]} s;大页空闲: $(grep HugePages_Free /proc/meminfo | awk '{print $2}')"
say " 引擎内存分布(numastat, MB):"; numastat -p "$(pgrep -f engine/strata | head -1)" 2>/dev/null | tail -3 | sed 's/^/ /' | tee -a "$OUT"
grep -oE 'pcie_frac [0-9.]+|pool_workers=[0-9]+|hugetlb 2 MB pages|using 4 KB pages' "$LOG" | tail -3 | sed 's/^/ 日志: /' | tee -a "$OUT"
say " 预热 $WARM 次 ..."
for i in $(seq 1 "$WARM"); do chat "$DECODE_PROMPT" 512; done
say " 解码测速 $RUNS 次 ..."
l0=$(wc -l < "$LOG")
for i in $(seq 1 "$RUNS"); do chat "$DECODE_PROMPT" 512; printf '.'; done; echo
IFS='|' read -r _ _ tg tgr hit <<<"$(parse_new "$l0")"
R_TG[$name]="$tg"; R_TGR[$name]="$tgr"; R_HIT[$name]="$hit"
say " 解码: 中位数 $tg tok/s (范围 $tgr), 命中率 $hit%"
say " 长提示词测速 $RUNS 次 ..."
l0=$(wc -l < "$LOG")
for i in $(seq 1 "$RUNS"); do chat "第 $i 轮,请总结下文要点:$LONG_BODY" 32; printf '.'; done; echo
IFS='|' read -r pp ppr _ _ _ <<<"$(parse_new "$l0")"
R_PP[$name]="$pp"; R_PPR[$name]="$ppr"
say " 提示词读取: 中位数 $pp tok/s (范围 $ppr)"
stop_engine
done
say ""
say "=================== 汇总 ==================="
printf '%-14s %-10s %-14s %-18s %-10s %-16s %-18s\n' "方案" "就绪(s)" "解码中位 tok/s" "解码范围" "命中率%" "提示词中位 tok/s" "提示词范围" | tee -a "$OUT"
for name in $ORDER; do
printf '%-14s %-10s %-14s %-18s %-10s %-16s %-18s\n' "$name" "${R_START[$name]:--}" "${R_TG[$name]:--}" "${R_TGR[$name]:--}" "${R_HIT[$name]:--}" "${R_PP[$name]:--}" "${R_PPR[$name]:--}" | tee -a "$OUT"
done
say ""
say ">> 恢复大页到节点 0 并重启 systemd 服务(方案 A 的配置)"
hp_set "$TOTAL_HP" 0
sudo systemctl start strata
say "完成。结果已存到 $OUT"
say "如果方案 B 明显更快(>3%),改 /etc/systemd/system/strata.service:"
say " ExecStartPre 的大页行改为 node0=14000 node1=14000,ExecStart 改为 numactl --interleave=all ..."
say " 然后 sudo systemctl daemon-reload && sudo systemctl restart strata,并重跑 ./setup.sh --calibrate(在同样的 numactl 下)"