V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
66CCFF
V2EX  ›  VPS

关于DigitalOcean各机房IO性能的不靠谱测试

  •  
  •   66CCFF · 2013-12-13 02:04:21 +08:00 · 1251 次点击
    这是一个创建于 3994 天前的主题,其中的信息可能已经有所发展或是发生改变。
    以下均使用$5方案机器测试,系统为ubuntu 12.04.3 x64
    具体参数看命令即可= =


    SFO机房:(目前买不到了)
    root@xxx:/dev/shm# dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0145575 s, 2.3 GB/s

    root@xxx:dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.602141 s, 55.7 MB/s



    NY2机房
    内存映射的结果很不稳定,全部贴上来供参考吧。
    33554432 bytes (34 MB) copied, 0.057651 s, 582 MB/s
    root@NewYorkTEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0277458 s, 1.2 GB/s
    root@NewYorkTEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0507823 s, 661 MB/s
    root@NewYorkTEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0373388 s, 899 MB/s
    root@NewYorkTEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0389341 s, 862 MB/s
    root@NewYorkTEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0256757 s, 1.3 GB/s
    root@NewYorkTEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0273382 s, 1.2 GB/s
    root@NewYorkTEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0384177 s, 873 MB/s
    root@NewYorkTEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0735749 s, 456 MB/s
    root@NewYorkTEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0413351 s, 812 MB/s
    root@NewYorkTEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0616208 s, 545 MB/s
    root@NewYorkTEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out

    磁盘:
    root@NewYorkTEST:~# dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 1.02819 s, 32.6 MB/s



    AMS1买不到了,不测了。


    NY1机房:

    root@NY1TEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0252742 s, 1.3 GB/s

    磁盘
    root@NY1TEST:~# dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.316573 s, 106 MB/s (哎呀这个屌)


    AMS2 SSH连不上。。大概是买到的机器被墙了。于是改用sfo的再次ssh过去。国内ping测试也是400ms+的。。网络不能忍

    同样不太稳定,贴一下
    33554432 bytes (34 MB) copied, 0.0426417 s, 787 MB/s
    root@AMS2TEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0674407 s, 498 MB/s
    root@AMS2TEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0344091 s, 975 MB/s
    root@AMS2TEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.030421 s, 1.1 GB/s
    root@AMS2TEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0359137 s, 934 MB/s
    root@AMS2TEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0501897 s, 669 MB/s
    root@AMS2TEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0531157 s, 632 MB/s
    root@AMS2TEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0268672 s, 1.2 GB/s
    root@AMS2TEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0380566 s, 882 MB/s
    root@AMS2TEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.028463 s, 1.2 GB/s
    root@AMS2TEST:/dev/shm# cd /dev/shm;dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.0265787 s, 1.3 GB/s

    磁盘
    root@AMS2TEST:~# dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 0.474761 s, 70.7 MB/s



    总的来说,NY1看起来很不错的样子。以上可能运气成分很大,仅供参考。
    6 条回复    1970-01-01 08:00:00 +08:00
    regmach
        1
    regmach  
       2013-12-13 08:11:37 +08:00
    天蓝你好
    结论是NY1最好吧?
    maxduke
        2
    maxduke  
       2013-12-13 09:31:29 +08:00 via iPhone   ❤️ 1
    测试用的Count太小了,不准确,增大试试
    66CCFF
        3
    66CCFF  
    OP
       2013-12-13 12:16:46 +08:00
    @regmach 是的~网络也还凑合。。比SFO差点
    ch3nz
        4
    ch3nz  
       2013-12-14 01:47:29 +08:00   ❤️ 1
    给你看个google comput engine硬盘的
    dd if=/dev/zero of=test bs=64k count=512 oflag=dsync
    512+0 records in
    512+0 records out
    33554432 bytes (34 MB) copied, 18.5088 s, 1.8 MB/s
    leisudeng
        5
    leisudeng  
       2013-12-19 01:32:05 +08:00
    还是google的NB一些
    66CCFF
        6
    66CCFF  
    OP
       2013-12-20 12:02:42 +08:00
    @ch3nz 感人= =。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3204 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 13:20 · PVG 21:20 · LAX 05:20 · JFK 08:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.