腾讯云主机的 IO 惨不忍睹

2019-09-29 13:48:15 +08:00
 lihongjie0209

1U1G1M 的主机, 活动的时候购买的,随机 IO 不到 10M/s, 大家测试一下自己的服务器, 看看是不是活动主机的 IO 都是这么差。

测试流程

yum install sysbench
sysbench fileio --file-total-size=2G --file-num=100  --file-test-mode=rndrw prepare
sysbench fileio --file-total-size=2G --file-num=100  --file-test-mode=rndrw run
[root@VM_45_207_centos ~]# sysbench fileio --file-total-size=2G --file-num=100  --file-test-mode=rndrw run
sysbench 1.0.17 (using system LuaJIT 2.0.4)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Extra file open flags: (none)
100 files, 20.48MiB each
2GiB total file size
Block size 16KiB
Number of IO requests: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Initializing worker threads...

Threads started!


File operations:
    reads/s:                      137.04
    writes/s:                     91.33
    fsyncs/s:                     237.99

Throughput:
    read, MiB/s:                  2.14
    written, MiB/s:               1.43

General statistics:
    total time:                          10.0825s
    total number of events:              4603

Latency (ms):
         min:                                    0.00
         avg:                                    2.17
         max:                                   23.14
         95th percentile:                        5.67
         sum:                                 9988.99

Threads fairness:
    events (avg/stddev):           4603.0000/0.00
    execution time (avg/stddev):   9.9890/0.00

下面是我在本地机械硬盘上的虚拟机测试的测试结果, 虚拟机软件 VMware WorkStation

 ⚡ root@dev2  ~   master  sysbench fileio --file-test-mode=rndrw  run
sysbench 1.0.17 (using bundled LuaJIT 2.1.0-beta2)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Extra file open flags: (none)
128 files, 16MiB each
2GiB total file size
Block size 16KiB
Number of IO requests: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Initializing worker threads...

Threads started!


File operations:
    reads/s:                      5081.59
    writes/s:                     3387.73
    fsyncs/s:                     10846.47

Throughput:
    read, MiB/s:                  79.40
    written, MiB/s:               52.93

General statistics:
    total time:                          10.0160s
    total number of events:              193399

Latency (ms):
         min:                                    0.00
         avg:                                    0.05
         max:                                    5.00
         95th percentile:                        0.16
         sum:                                 9856.46

Threads fairness:
    events (avg/stddev):           193399.0000/0.00
    execution time (avg/stddev):   9.8565/0.00

7723 次点击
所在节点    程序员
62 条回复
wangxiyu191
2019-10-01 02:17:30 +08:00
还是钱的问题吧,去阿里云买块 PL3 的 ESSD 会惊喜的发现吞吐比单 PCIE 的 SSD 都大,延迟接近。当然价格也比普通的 SSD 云盘要贵。2333333
phithon
2019-10-28 21:43:02 +08:00
同腾讯云……

237481+0 records in
237481+0 records out
121590272 bytes (122 MB, 116 MiB) copied, 7.84412 s, 15.5 MB/s

dd if=/dev/zero of=test 0.10s user 0.44s system 6% cpu 7.846 total

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://tanronggui.xyz/t/605359

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX