【发布时间】:2021-04-12 17:53:55
【问题描述】:
针对卷运行 sysbench 我发现 gp3 卷要慢得多。即使我在等待优化后预置了 16000 IOPS 的卷,在通过 Percona PMM、New Relic CloudWatch 进行监控时,我也获得了 1000 IOPS 的上限。
实例:
- C5.4xlarge Ubuntu 18.04
卷:
- gp2 3000GB(提供 9000 IOPS)
- gp3 3000GB 9000 IOPS 250/s
Sysbench 结果如下:
sysbench --file-total-size=15G --file-num=16 fileio prepare
sysbench --file-total-size=15G --file-num=16 --file-test-mode=rndrw --time=600 fileio run
sysbench --file-total-size=15G --file-num=16 fileio cleanup
gp3 | 9000 | 3000 | 250/s
File operations:
reads/s: 576.37
writes/s: 384.24
fsyncs/s: 153.70
Throughput:
read, MiB/s: 9.01
written, MiB/s: 6.00
General statistics:
total time: 600.0333s
total number of events: 668612
Latency (ms):
min: 0.00
avg: 0.90
max: 337.40
95th percentile: 3.89
sum: 599693.33
Threads fairness:
events (avg/stddev): 668612.0000/0.00
execution time (avg/stddev): 599.6933/0.00
gp2 | 9000 | 3000 | gp2
File operations:
reads/s: 1523.68
writes/s: 1015.79
fsyncs/s: 406.33
Throughput:
read, MiB/s: 23.81
written, MiB/s: 15.87
General statistics:
total time: 600.0064s
total number of events: 1767487
Latency (ms):
min: 0.00
avg: 0.34
max: 70.10
95th percentile: 1.06
sum: 599390.12
Threads fairness:
events (avg/stddev): 1767487.0000/0.00
execution time (avg/stddev): 599.3901/0.00
Percona PMM gp3 > gp2对比:
【问题讨论】:
-
您可能会得到更好的回应:reddit.com/r/aws
-
我也在为
gp3卷做基准测试。但是,我观察到相反的情况:gp3的延迟比gp2少。您在哪个地区开展业务? -
由于存储空间的分配,首次使用块时,Amazon EBS 卷需要稍长的时间。在执行性能测试之前,建议将磁盘内容清零(例如使用
dd)。这将提供一致的性能。见:Initializing Amazon EBS volumes - Amazon Elastic Compute Cloud
标签: amazon-web-services amazon-ec2 amazon-ebs sysbench