This commit is contained in:
dukai 2026-05-25 19:35:37 +08:00
parent 6ecb0390e5
commit 6cad5bca5d

View File

@ -651,8 +651,39 @@ python3 gpu_tester.py --test all --format html --output report.html
## 测试磁盘性能和使用方式
```bash
cd ./scripts
```
```bash
./disk_benchmark.sh -h
用法:
disk_benchmark.sh [选项]
选项:
-p, --path <路径> 测试文件所在目录 (默认: /tmp
-j, --numjobs <并发数> 并发工作线程数 (默认: 1
-r, --rw <策略> 读写策略 (默认: randread
-b, --bs <块大小> I/O 块大小 (默认: 4k
-d, --iodepth <队列深度> I/O 队列深度 (默认: 1
-s, --size <大小> 测试文件大小 (默认: 80G
-t, --runtime <> 测试持续时间 (默认: 300s
--ramp <> 预热时间 (默认: 10s
-o, --output <目录> 结果输出目录 (默认: 当前目录)
-h, --help 显示此帮助
支持的 --rw 策略:
read 顺序读
write 顺序写
randread 随机读 ← 默认
randwrite 随机写
readwrite 顺序混合读写50/50
randrw 随机混合读写50/50
trimwrite Trim + 写NVMe 专用)
示例:
disk_benchmark.sh --path /data --numjobs 8 --rw randread --iodepth 32
```
```bash