【问题标题】:Tools for performance evaluation of Xen, OpenVZ and XenServer?用于 Xen、OpenVZ 和 XenServer 性能评估的工具?
【发布时间】:2014-03-18 04:03:18
【问题描述】:

我想比较一下 Xen、OpenVZ 和 XenServer。我成功安装了这三个并加载了一个 Debian VM。请为这三者的绩效评估提出一些方法和工具。等待您的回复任何建议都会非常有帮助。我真的需要一些工具或方法来进行评估。请帮忙。

谢谢

耶杜萨斯特里

【问题讨论】:

    标签: virtual-machine virtualization xen openvz


    【解决方案1】:

    您可以通过多种方式开始进行性能测试。如果您分享您的目标,可能会更容易提出更多建议。以下是我一直在使用的工具:

    1.磁盘性能

    我使用来自 http://www.coker.com.au/bonnie++/ 的 bonnie++ 来获取主机和每个 VM 的基准磁盘性能指标:

    $ bonnie++  -u root -s 200000 -n 10000 -x 1 -f -d /testdisk/testdir
    

    地点:

    -s test data set size in Mb. Use at least twice the amount of RAM,
       or better 80% of available disk space
    -d test data set location (use the drive where you placed VMs on Host)
    

    结果输出是逗号分隔值的列表,如下所示: testedhost.local,200000M,,,37805,11,27388,5,,,62129,4,259.5,0,1000,16993,37,334825,99,872,1,14232,31,440769,99,463,1

    要可视化这实际上意味着什么,请加载到 excel 或将 csv 值转换为 html(粘贴上面的行):

    bon_csv2html >bonnie.html
    

    2。 LAMP 堆栈性能(Apache + MySQL/PostgreSQL)

    在您的 VM 中设置 DVD 商店 Web 应用程序:http://linux.dell.com/dvdstore/,然后使用 http 测试工具(即 Apache ab 或 httperf)快速对其进行压力测试:

    ab -n 100000 -c 100 -t 1 -k "testsite.local"
    

    地点:

    -n number of HTTP requests
    -c number of concurrent connections
    -t number of seconds of the test
    

    还有一个更复杂的压力测试客户端(称为驱动程序)作为 DVD 商店的一部分,可以执行客户端和订单创建等测试场景。测试结果将取决于您如何设置应用程序,即数据库、apache。通常,您需要调整设置以利用经过测试的 VM 中可用的所有资源。

    DVD 商店设置很复杂,但值得付出努力,因为这是实际应用的示例,而不是综合测试。

    【讨论】:

      猜你喜欢
      • 2018-07-28
      • 1970-01-01
      • 1970-01-01
      • 2014-02-08
      • 2014-12-28
      • 2013-06-18
      • 2020-01-13
      • 1970-01-01
      相关资源
      最近更新 更多