0

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

谢谢

耶杜萨斯特里

4

1 回答 1

0

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

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 商店设置很复杂,但值得付出努力,因为这是现实生活中的应用示例,而不是综合测试。

于 2014-03-19T19:56:51.983 回答