V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Recommended Services
Amazon Web Services
LeanCloud
New Relic
ClearDB
huaxing0211
V2EX  ›  云计算

测试腾讯云 CVM 的 IO,这个感觉如何?

  •  
  •   huaxing0211 · 2017-05-30 13:42:18 +08:00 · 3853 次点击
    这是一个创建于 2495 天前的主题,其中的信息可能已经有所发展或是发生改变。

    手贱,搞了台腾讯腾讯云 CVM,系统盘和数据盘都是 20G 的云盘(数据盘挂载在 /mnt 下),测试了下 IO,这效果还行么?

    root@Qcloud:/mnt# dd if=/dev/zero of=/mnt/iotest bs=8k count=204800
    204800+0 records in
    204800+0 records out
    1677721600 bytes (1.7 GB, 1.6 GiB) copied, 11.3853 s, 147 MB/s
    
    root@Qcloud:/mnt# dd if=/mnt/iotest of=/mnt/rwtest
    3276800+0 records in
    3276800+0 records out
    1677721600 bytes (1.7 GB, 1.6 GiB) copied, 15.2966 s, 110 MB/s
    
    21 条回复    2017-06-18 09:08:17 +08:00
    blankme
        1
    blankme  
       2017-05-30 14:00:12 +08:00
    垃圾 do:
    204800+0 records in
    204800+0 records out
    1677721600 bytes (1.7 GB) copied, 2.76551 s, 607 MB/s

    不过 qcloud 比 aliyun 还是好点,aliyun 惨不忍睹
    zuolan
        2
    zuolan  
       2017-05-30 14:10:28 +08:00
    相比 DO 这些,国内还得远呢。
    huaxing0211
        3
    huaxing0211  
    OP
       2017-05-30 14:12:41 +08:00
    @blankme 这 IO 性能可以啊! VPS ?还是独立服务器?
    blankme
        4
    blankme  
       2017-05-30 14:13:19 +08:00
    @huaxing0211 就是普通的 vps
    huaxing0211
        5
    huaxing0211  
    OP
       2017-05-30 14:17:25 +08:00
    再来看看阿里云的哈,确实惨不忍睹!

    [root@aliyun mnt]# dd if=/dev/zero of=/mnt/iotest bs=8k count=204800
    204800+0 records in
    204800+0 records out
    1677721600 bytes (1.7 GB) copied, 50.9125 s, 33.0 MB/s
    [root@aliyunr mnt]# dd if=/mnt/iotest of=/mnt/rwtest
    3276800+0 records in
    3276800+0 records out
    1677721600 bytes (1.7 GB) copied, 121.988 s, 13.8 MB/s
    huaxing0211
        6
    huaxing0211  
    OP
       2017-05-30 14:19:34 +08:00
    @blankme 哪家的 VPS ?
    blankme
        7
    blankme  
       2017-05-30 14:22:23 +08:00
    @huaxing0211 前面写了 do 啊。。。digital ocean。。。
    xiaoyu9527
        8
    xiaoyu9527  
       2017-05-30 14:48:45 +08:00
    不知道腾讯云是否使用了什么特殊的骚操作。

    测试起来确实很快 实际使用并没有比阿里云感觉快 10 倍
    qcloud
        9
    qcloud  
       2017-05-30 15:33:27 +08:00   ❤️ 1
    醉了。。。这样都能被艾特。。。。。
    qcloud
        10
    qcloud  
       2017-05-30 15:36:59 +08:00
    瞅了半天不知道被谁艾特了。。。。
    KIDJourney
        11
    KIDJourney  
       2017-05-30 15:52:41 +08:00   ❤️ 1
    @qcloud 哈哈哈,root@qcloud。
    imxieke
        12
    imxieke  
       2017-05-30 16:49:17 +08:00
    @huaxing0211 #5 貌似我这深圳的比你的好点
    ```
    阿里云深圳节点
    ➜ ~ dd if=/dev/zero of=/mnt/iotest bs=8k count=204800
    204800+0 records in
    204800+0 records out
    1677721600 bytes (1.7 GB, 1.6 GiB) copied, 35.9768 s, 46.6 MB/s
    ➜ ~ dd if=/mnt/iotest of=/mnt/rwtest
    3276800+0 records in
    3276800+0 records out
    1677721600 bytes (1.7 GB, 1.6 GiB) copied, 68.9083 s, 24.3 MB/s


    某 USvps 3 美元的
    ➜ ~ dd if=/dev/zero of=/mnt/iotest bs=8k count=204800
    204800+0 records in
    204800+0 records out
    1677721600 bytes (1.7 GB) copied, 5.21785 s, 322 MB/s
    ➜ ~ dd if=/mnt/iotest of=/mnt/rwtest
    3276800+0 records in
    3276800+0 records out
    1677721600 bytes (1.7 GB) copied, 21.0724 s, 79.6 MB/s
    ```
    qwe321
        13
    qwe321  
       2017-05-30 18:37:11 +08:00
    云盘和本地盘之间速度上的区别吧
    dwj437220696
        14
    dwj437220696  
       2017-05-30 19:51:28 +08:00
    root@ECS:~# dd if=/dev/zero of=/mnt/iotest bs=8k count=204800
    204800+0 records in
    204800+0 records out
    1677721600 bytes (1.7 GB) copied, 19.6736 s, 85.3 MB/s、
    root@ECS:~# dd if=/mnt/iotest of=/mnt/rwtest
    3276800+0 records in
    3276800+0 records out
    1677721600 bytes (1.7 GB) copied, 18.7478 s, 89.5 MB/s

    以上数据出自北京节点华为企业云
    Fishdrowned
        15
    Fishdrowned  
       2017-05-30 19:58:41 +08:00 via Android
    测试随机读写用 fio,别用 dd
    mooncakejs
        16
    mooncakejs  
       2017-05-30 20:23:14 +08:00 via iPhone
    dd 的全 0 全 1 数据不随机,测不出性能的
    goodryb
        17
    goodryb  
       2017-05-30 20:52:45 +08:00
    原来测试磁盘用 dd,学习了
    zhengxiaowai
        18
    zhengxiaowai  
       2017-05-31 11:15:39 +08:00
    linode 吊打一切 I/O 读写 700 多
    fordoo
        19
    fordoo  
       2017-05-31 14:49:44 +08:00
    root@localhost:~# dd if=/dev/zero of=/mnt/iotest bs=8k count=204800
    204800+0 records in
    204800+0 records out
    1677721600 bytes (1.7 GB, 1.6 GiB) copied, 4.0128 s, 418 MB/s
    root@localhost:~# dd if=/mnt/iotest of=/mnt/rwtest
    3276800+0 records in
    3276800+0 records out
    1677721600 bytes (1.7 GB, 1.6 GiB) copied, 8.91559 s, 188 MB/s


    搬瓦工最便宜的
    voocel
        20
    voocel  
       2017-06-01 00:35:11 +08:00 via Android
    @qcloud 题主的代码里 @的
    q57893
        21
    q57893  
       2017-06-18 09:08:17 +08:00
    204800+0 records in
    204800+0 records out
    1677721600 bytes (1.7 GB) copied, 2.90376 s, 578 MB/s
    3276800+0 records in
    3276800+0 records out
    1677721600 bytes (1.7 GB) copied, 12.2718 s, 137 MB/s

    腾讯云本地硬盘。。
    看来云盘还是差了很多
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2858 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:31 · PVG 19:31 · LAX 04:31 · JFK 07:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.