diff --git a/README.md b/README.md index ed15862..aaf444a 100644 --- a/README.md +++ b/README.md @@ -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