kv_bench/plan_exec.md

51 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# kv_bench 执行记录benchmark_refactor
## Phase 0已完成
- 日期2026-03-03
- 范围:
- 重构 `src/main.rs``rocksdb/main.cpp`,完成 v2 方法学最小清单:
- workload preset`W1..W6`
- mixed/read/scan 的 prefill + shared keyspace
- 时长模式:`--warmup-secs` / `--measure-secs`
- 显式 read path parity`--read-path snapshot|rw_txn`
- 统一 schema 结果落盘CSV并自动附带机器/环境元数据
- 更新脚本:`scripts/mace.sh`、`scripts/rocksdb.sh`、`scripts/plot.py`、`scripts/init.sh`
- 默认数据目录切换为 `/nvme` 体系(脚本强制 db_root 在 `/nvme` 下)
- 编译验证:
- `cargo check -q` 通过
- `cargo build --release -q` 通过
- `cmake --build --preset release -j` 通过
- 运行烟测:
- `mace``rocksdb` 均可按新参数运行并写入统一 schema 结果文件
- 提交:待本阶段 commit
## Phase 1已完成
- 日期2026-03-03
- 范围:
- 新增 `scripts/phase1.sh`:按文档矩阵执行小规模试跑
- dataset`tier-s`
- workload`W1/W3/W6`
- profile`P2/P3`
- threads`1/12`
- repeats默认 `3`(可由 `REPEATS` 覆盖)
- 新增 `scripts/phase1_eval.py`:按 case 聚合并计算
- throughput CV
- p99 CV
- 稳定性通过率门槛throughput CV<=10%, p99 CV<=15%
- 验证:
- `bash -n scripts/phase1.sh` 通过
- `python3 -m py_compile scripts/phase1_eval.py` 通过
- 提交:待本阶段 commit
## Phase 2已完成
- 日期2026-03-03
- 范围:
- 新增 `scripts/phase2.sh`:稳态核心报告矩阵执行器
- `tier-m` 全量:`W1/W2/W3/W4/W6` × `P2/P3` × `threads(1/6/12)` × `repeats(默认5)`
- 可选 `tier-l` 代表集:`RUN_TIER_L_REPRESENTATIVE=1` 启用,默认 `TIER_L_REPEATS=1`
- 新增 `scripts/phase2_report.py`:输出按 case 的 `throughput/p95/p99 median`,并给出慢场景对比表
- 验证:
- `bash -n scripts/phase2.sh` 通过
- `python3 -m py_compile scripts/phase2_report.py` 通过
- 提交:待本阶段 commit