zoukankan      html  css  js  c++  java
  • HV和VM 内存性能测试对比结果

    安装工具: apt-get install mbw

     使用 mbw 1024 测试

    VM ubuntu12.04 :

    ldd --version
    ldd (Ubuntu EGLIBC 2.15-0ubuntu10.14) 2.15

    AVG Method: MEMCPY Elapsed: 0.17797 MiB: 1024.00000 Copy: 5753.646 MiB/s
    AVG Method: DUMB Elapsed: 0.17991 MiB: 1024.00000 Copy: 5691.653 MiB/s
    AVG Method: MCBLOCK Elapsed: 0.09243 MiB: 1024.00000 Copy: 11078.918 MiB/s


    VM (CentOS 6.5):

    ldd --version

    ldd (GNU libc) 2.12

    AVG Method: MEMCPY Elapsed: 0.37693 MiB: 1024.00000 Copy: 2716.670 MiB/s
    AVG Method: DUMB Elapsed: 0.11355 MiB: 1024.00000 Copy: 9018.316 MiB/s
    AVG Method: MCBLOCK Elapsed: 0.14531 MiB: 1024.00000 Copy: 7047.090 MiB/s

    HV(Ubuntu16.04):

    ldd --version
    ldd (Ubuntu GLIBC 2.23-0ubuntu3) 2.23


    AVG Method: MEMCPY Elapsed: 0.17625 MiB: 1024.00000 Copy: 5810.054 MiB/s
    AVG Method: DUMB Elapsed: 0.11353 MiB: 1024.00000 Copy: 9019.476 MiB/s
    AVG Method: MCBLOCK Elapsed: 0.16999 MiB: 1024.00000 Copy: 6023.887 MiB/s

    结论:   glibc memcpy() 在 2.12存性能问题

    There was a change in memcpy() in glibc 2.12 that exposed several bugs for calling memcpy on overlapping buffers (http://lwn.net/Articles/414467/) and I believe the issue was caused by switching to a version of memcpy that operates backwards.

    升级glibc版本方法: https://cnodejs.org/topic/56dc21f1502596633dc2c3dc

  • 相关阅读:
    服务器出现大量的127.0.0.1:3306 TIME_WAIT连接 解决方法 [转载]
    phpize安装php扩展CURL
    linux位数查看
    Linux下Sublime Text 3的安装
    ECstore后台报表显示空白问题解决办法
    centos 上安装phpstorm
    Nginx禁止目录执行php文件权限
    vue 动画
    vue的路由
    组件的传值 组件之间的通讯
  • 原文地址:https://www.cnblogs.com/bodhitree/p/6007730.html
Copyright © 2011-2022 走看看