性能测试/Performance Test
目录
1 声明
本文描述准确性仅限于存储系统.
2 简述
3 名词介绍
3.1 带宽
系统的最大吞吐量. 一般单位是KBps/MBps/GBps/TBps, 指每秒数据的传输量.
在精确的定义下, KB/MB/GB/TB是以1000为单位的倍增, 而KiB/MiB/GiB/TiB是以\(2^10\)为单位的倍增. 因此有: \(1MB=1000KB, 1MiB=1024KiB\).
典型存储的带宽在5GB~15GB之间.
3.2 IOPS
IOPS/Throughput/Response Time/Latency/Utilization/Saturation/Bottleneck
IOPS | 每秒输入输出次数 |
Throughput/带宽 | 每秒数据量 |
Latency/延时 | 一个操作完成的所有时间 |
Utilization/使用率 | 资源的繁忙程度 |
Saturation/饱和度 | 等待资源服务的排队程度 |
Bottleneck/瓶颈 | 资源限制点 |
SUT: System Undet Test Trade-offs: Pick two: Fast, Good, Cheap On-Time, Inexpensive, Performance
U=B\/T Cache Cold, Hot, Warm, Warmth
4 Resource list
- CPU
- RAM
- Network interfaces
- Storage Devices
- Controllers
- Interconnect
5 Patterns
- Linear scalability
- Contention
- Coherence
- Knee point
- scalability ceiling
6 素材搜集
6.1 性能影响因素
- 是否所有IO来自首选节点(preferred node)
- 测试工具vdbench/fio/iometer, OLTP/OLAP
- 不同卷是否运行不同模式
- 卷状态: RAID同步完成
- 性能统计信息搜集
- 链路层是否有错误
- 预热时间: 每盘300 IOPS, 12GB缓存实现, 96盘, 4K IO, RAID写放大3倍, 240s时间
12G*3/300*4K*96 = 327s?
- 影响随机+数据的测试
7 SNIA Storage Performance Benchmarking Introduction And Fundamentals
- Metrics and Terminology: IOPS, MBps, Response Time
- System Under Test:
- File Components: CIFS/NFS
- Block Components
- Workload Definitions
7.1 Three Great Buckets Of Testing
- Bake-offs: Single Obscure Metric, DD, IOMETER, IOZONE, VDBENCH
- Benchmarks: Balanced Professional Approach, Spec, SFS, SPC1, LOGIN VSI VMMARK
- Business: Run production Applications, Database Compute Farm VDI
7.2 Block/SAN operations
- LOG SENSE
- LOG SELECT
- REQUEST SENSE
- MODE SELECT
- SEND DIAGNOSTIC
- REPORT LUNS
- …
7.3 Terminology
- IO Operation AKA type READ WRITE
- Throughput Same as IOPS
- IOOPS count every IO Operation per second
- Bandwidth same as MBps
- MBps Payload sum of every operation per second
- MiB vs. MB: 1024 : 1000