我想要比较一下Xen、OpenVZ和XenServer。我成功地安装了这三个工具,并加载了Debian VM。请推荐一些方法和工具来评估这三个方面的性能。等待你的回复,任何建议都会很有帮助。我真的需要一些工具或方法来评估。请帮帮忙。
谢谢
Yedhu Sastri
发布于 2014-03-20 03:56:52
有很多方法可以让你开始进行性能测试。如果你分享你的目标,你可能更容易提出更多的建议。以下是我一直在使用的工具:
1. Disk Performance
我使用http://www.coker.com.au/bonnie++/的bonnie++获取主机和每个虚拟机的基准磁盘性能指标:
$ 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.html2. LAMP堆栈性能(Apache + MySQL/PostgreSQL)
在您的虚拟机中设置DVD store 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商店设置很复杂,但值得努力,因为这是一个实际应用程序的示例,而不是合成测试。
https://stackoverflow.com/questions/22470138
复制相似问题