您现在的位置是:群英 > 互联网资讯 > 云服务
如何测试云服务器性能?
Admin发表于 2023-05-31 17:32:31466 次浏览
这篇文章给大家分享的是“如何测试云服务器性能?”,文中的讲解内容简单清晰,对大家学习和理解有一定的参考价值和帮助,有这方面学习需要的朋友,接下来就跟随小编一起学习一下“如何测试云服务器性能?”吧。

centos系统

phoronix-test-suite是目前Linux下比较常用的性能测试软件。

使用phoronix-test-suite条件前提:需要安装php5,需要PHP都DOM扩展

因为是云服务器,首先建立实例,然后使用secureCRT连接IP地址,进入终端

1.下载压缩包

   # wget http://www.phoronix.net/downloads/phoronix-test-suite/releases/phoronix-test-suite-7.4.0.tar.gz

2.解压

  # tar -xzvf phoronix-test-suite-7.4.0.tar.gz

3.安装

   3.1进入phoronix-test-suite的目录

        # cd phoronix-test-suite/

   3.2 执行install.sh

       # ./install-sh

4.cpu压力测试

    # yum install -y screen

       在linux的环境中,我们想要在后台持续运行一些脚本,但是又因为关闭这个tty的话,脚本就会中断,这个时候我们就需要screen这个工具的帮助啦!已有就不用安装了

   # screen     进入另一个页面(也可以不进)screen -ls -r 自己搜

   # phoronix-test-suite benchmark smallpt
      这条命令表示下载、安装、执行并报告一个简单的CPU测试smallpt。
      这个benchmark命令把整套测试工作(下载、安装、执行并报告)给执行完毕了。

         php安装完成后再次执行   # phoronix-test-suite benchmark smallpt(在后面是否上传到官网我选的是n)

输出如下:
Phoronix Test Suite v7.2.1
To Install: pts/smallpt-1.0.2
Determining File Requirements ..........................................
Searching Download Caches ..............................................
1 Test To Install
1 File To Download [0.01MB]
1MB Of Disk Space Is Needed
pts/smallpt-1.0.2:
Test Installation 1 of 1
1 File Needed [0.01 MB]
Downloading: smallpt-1.tar.gz [0.01MB]
Downloading ........................................................
Installation Size: 0.1 MB
Installing Test @ 23:27:18
System Information
.......
.....
.......
Would you like to save these test results (Y/n):

/*该测试命令先下载安装smalltp测试套件,并识别系统信息。
    最后一条显示是否保存测试结果,选择Y,提示输入一个保存文件的结果名字和描述附后,如下段文字显示,完毕后开始启        动测试:*/

Enter a name to save these results under: ptstestnmae
Enter a unique name to describe this test run / configuration: smalltp

If desired, enter a new description below to better describe this result set / system configuration under test.
Press ENTER to proceed without changes.
Current Description: 2 x Intel Xeon xxxx via the Phoronix Test Suite.
New Description: no description
Smallpt 1.0:
pts/smallpt-1.0.2
Test 1 of 1
Estimated Trial Run Count: 3
Estimated Time To Completion: 4 Minutes [23:33 CDT]
Started Run 1 @ 23:29:57
Started Run 2 @ 23:30:31
Started Run 3 @ 23:31:04
Global Illumination Renderer; 100 Samples:
32
32
32
Average: 32 Seconds
Deviation: 0.00%
Do you want to view the text results of the testing (Y/n): ptstestnmae
no description
smalltp:
…….

/可以选择是否上传到官网,这样可以和其他测试人员数据进行对比/

Would you like to upload the results to OpenBenchmarking.org (Y/n):     Would you like to attach the system logs (lspci, dmesg, lsusb, etc) to the test result (Y/n): 

Results Uploaded To: http://openbenchmarking.org/result/[testid]

ps:本地的测试结果保存在 /var/lib/phoronix-test-suite/test-results/ptstestnmae文件夹中。是否上传在测试结束时候可以进行人工选择。
如果上传了,可以通过登陆

http://openbenchmarking.org/result/[testid]
本次测试结果中显示了CPU、主板、内存、硬盘、操作系统、显卡、网络、文件系统、编译器等系统信息。

5. 自己的结果图(云主机是8核16G)

单位:Seconds (数值越小越好)

5.Apache 业务环境测试

  单位:Requests Per Second(每秒请求)(数值越大越好)

  # phoronix-test-suite benchmark apache

 

6.内存测试

   测试套件:pts/ramspee

   # phoronix-test-suite benchmark ramspeed

                                  

 

 结果:

7.磁盘测试

测试套件:pts/tiobench

# phoronix-test-suite benchmark tiobench


通过以上内容的阐述,相信大家对“如何测试云服务器性能?”已经有了进一步的了解,更多相关的问题,欢迎关注群英网络或到群英官网咨询客服。

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:mmqy2019@163.com进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。

相关信息推荐
2023-06-06 09:19:06 
摘要:基于Wechaty+Docker打造一个ChatGPT机器人
2023-06-06 09:10:23 
摘要:码农饭碗不保——ChatGPT正在取代Coder(转)
2023-09-23 10:43:02 
摘要:ChatGPT实用使用指南:ChatGPT提示工程备忘录
群英网络助力开启安全的云计算之旅
立即注册,领取新人大礼包
  • 联系我们
  • 24小时售后:4006784567
  • 24小时TEL :0668-2555666
  • 售前咨询TEL:400-678-4567

  • 官方微信

    官方微信
Copyright  ©  QY  Network  Company  Ltd. All  Rights  Reserved. 2003-2019  群英网络  版权所有   茂名市群英网络有限公司
增值电信经营许可证 : B1.B2-20140078   粤ICP备09006778号
免费拨打  400-678-4567
免费拨打  400-678-4567 免费拨打 400-678-4567 或 0668-2555555
微信公众号
返回顶部
返回顶部 返回顶部