指点云用户44 发表于 2022-7-29 21:01:34

Linux服务器一键测试CPU/硬盘/

<p data-first-child="" data-pid="HC_L-PTl" style="margin-top: 0px; margin-bottom: 1.4em; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);"><span style="font-weight: 600; font-synthesis: style;">服务器性能</span>怎么样,自然就是跑分和测试啦!<span style="font-weight: 600; font-synthesis: style;">服务器带宽</span>好不好跑跑上行下行带宽就知道怎么样了。由于单项目来测试比较耗时间,特别是测试<span style="font-weight: 600; font-synthesis: style;">服务器</span>带宽速度的时候单一测试节点很费时间,并且需要记住多个命令,估计这样的长时间值守没有人原因了,因此网络很多大佬制作了适用于Linux系统服务器测试速度、性能的脚本,都只需一个简单命令即可完成测试。主机测评及技术分享之前也在一些文章当中整理过比较好用且全面的Linux服务器性能速度测试脚本,有兴趣的可在下面文章当中逐一测试一番。下面文章当中几乎汇聚了全网热门的<span style="font-weight: 600; font-synthesis: style;">Linux服务器</span>测试脚本:</p><p><br/></p><figure data-size="normal" style="margin: 1.4em 0px; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);"></figure><p><br/></p><h3 style="margin: calc(1.90909em) 0px calc(1.27273em); font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; font-size: 1.1em; line-height: 1.5; font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; clear: left; font-synthesis: style; color: rgb(18, 18, 18); white-space: normal; background-color: rgb(255, 255, 255);">一、yabs.sh服务器性能测试脚本命令</h3><p data-pid="brdTf_Ag" style="margin-top: 1.4em; margin-bottom: 1.4em; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">这里<span style="font-weight: 600; font-synthesis: style;">主机测评分享</span>再为大家分享一个比较全面测试Linux系统服务器CPU性能及硬盘性能的脚本,有兴趣的可以试试,特别是对CPU性能测试比较全面。此脚本支持在CentOS 6&7+、Debian 8+、Fedora 30、Ubuntu 16.04+系统中使用,并且无需安装其他依赖程序。测试命令如下:</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background-color: rgb(246, 246, 246); border-radius: 4px;">curl&nbsp;-sL&nbsp;yabs.sh&nbsp;|&nbsp;bash</pre><p data-pid="v8werO09" style="margin-top: 1.4em; margin-bottom: 1.4em; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">yabs.sh脚本比较全面的测试下面CPU、基本信息、硬盘、带宽等内容,如果需要排除一些不想测试的项目可以使用下面命令。</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background-color: rgb(246, 246, 246); border-radius: 4px;">curl&nbsp;-sL&nbsp;yabs.sh&nbsp;|&nbsp;bash&nbsp;-s&nbsp;--&nbsp;-fg</pre><p data-pid="H6VGNjUg" style="margin-top: 1.4em; margin-bottom: 1.4em; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">可以将选项组合在一起以跳过多个测试,即-fg跳过磁盘和系统性能测试(实际上仅测试网络性能)</p><ul style="padding: 0px; margin-top: 1.4em; margin-bottom: 1.4em; display: table; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);" class=" list-paddingleft-2"><li><p>-f/-d此选项禁用fio(磁盘性能)测试</p></li><li><p>-i 此选项禁用iperf(网络性能)测试</p></li><li><p>-g 此选项禁用Geekbench(系统性能)测试</p></li><li><p>-h 此选项显示帮助消息以及用法,检测到的标志和本地软件包(fio / iperf)状态</p></li><li><p>-r 此选项减少了iperf位置(<a href="https://link.zhihu.com/?target=http%3A//Online.net/Clouvider" class=" external" target="_blank" rel="nofollow noreferrer" data-za-detail-view-id="1043" style="text-decoration-line: none; cursor: pointer; border-bottom: 1px solid rgb(128, 128, 128);"><span class="invisible" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 0px; line-height: 0; font-family: a; color: transparent; text-shadow: none; background-color: transparent;">http://</span><span class="visible">Online.net/Clouvider</span><span class="invisible" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 0px; line-height: 0; font-family: a; color: transparent; text-shadow: none; background-color: transparent;"></span></a>&nbsp;LON + NYC)的数量,以减少带宽使用量</p></li><li><p>-4 此选项将覆盖Geekbench 5性能测试,并运行Geekbench 4测试</p></li><li><p>-9 除了Geekbench 5测试外,此选项还运行Geekbench 4测试</p></li></ul><h3 style="margin: calc(1.90909em) 0px calc(1.27273em); font-variant-numeric: inherit; font-variant-east-asian: inherit; font-stretch: inherit; font-size: 1.1em; line-height: 1.5; font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; clear: left; font-synthesis: style; color: rgb(18, 18, 18); white-space: normal; background-color: rgb(255, 255, 255);">二、yabs.sh服务器性能测试结果展示</h3><p data-pid="vme137V0" style="margin-top: 1.4em; margin-bottom: 1.4em; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">在下面测试结果当中,我们即可查看到详细的CPU性能测试信息。</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background-color: rgb(246, 246, 246); border-radius: 4px;">#&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;#
#&nbsp;Yet-Another-Bench-Script&nbsp;#
#&nbsp;v2021-10-2&nbsp;#
#&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;##&nbsp;#
2021年&nbsp;10月&nbsp;2日&nbsp;星期六&nbsp;22:18:21&nbsp;CST
Basic&nbsp;System&nbsp;Information:
---------------------------------
Processor&nbsp;:&nbsp;Intel&nbsp;Xeon&nbsp;E3-12xx&nbsp;v2&nbsp;(Ivy&nbsp;Bridge,&nbsp;IBRS)
CPU&nbsp;cores&nbsp;:&nbsp;2&nbsp;@&nbsp;2599.998&nbsp;MHz
AES-NI&nbsp;:&nbsp;✔&nbsp;Enabled
VM-x/AMD-V&nbsp;:&nbsp;❌&nbsp;Disabled
RAM&nbsp;:&nbsp;1.9&nbsp;GiB
Swap&nbsp;:&nbsp;2.0&nbsp;GiB
Disk&nbsp;:&nbsp;18.0&nbsp;GiB
fio&nbsp;Disk&nbsp;Speed&nbsp;Tests&nbsp;(Mixed&nbsp;R/W&nbsp;50/50):
---------------------------------
Block&nbsp;Size&nbsp;|&nbsp;4k&nbsp;(IOPS)&nbsp;|&nbsp;64k&nbsp;(IOPS)
------&nbsp;|&nbsp;---&nbsp;----&nbsp;|&nbsp;----&nbsp;----
Read&nbsp;|&nbsp;4.64&nbsp;MB/s&nbsp;(1.1k)&nbsp;|&nbsp;70.78&nbsp;MB/s&nbsp;(1.1k)
Write&nbsp;|&nbsp;4.67&nbsp;MB/s&nbsp;(1.1k)&nbsp;|&nbsp;71.15&nbsp;MB/s&nbsp;(1.1k)
Total&nbsp;|&nbsp;9.31&nbsp;MB/s&nbsp;(2.3k)&nbsp;|&nbsp;141.94&nbsp;MB/s&nbsp;(2.2k)
|&nbsp;|
Block&nbsp;Size&nbsp;|&nbsp;512k&nbsp;(IOPS)&nbsp;|&nbsp;1m&nbsp;(IOPS)
------&nbsp;|&nbsp;---&nbsp;----&nbsp;|&nbsp;----&nbsp;----
Read&nbsp;|&nbsp;172.45&nbsp;MB/s&nbsp;(336)&nbsp;|&nbsp;186.14&nbsp;MB/s&nbsp;(181)
Write&nbsp;|&nbsp;181.61&nbsp;MB/s&nbsp;(354)&nbsp;|&nbsp;198.54&nbsp;MB/s&nbsp;(193)
Total&nbsp;|&nbsp;354.06&nbsp;MB/s&nbsp;(690)&nbsp;|&nbsp;384.69&nbsp;MB/s&nbsp;(374)
iperf3&nbsp;Network&nbsp;Speed&nbsp;Tests&nbsp;(IPv4):
---------------------------------
Provider&nbsp;|&nbsp;Location&nbsp;(Link)&nbsp;|&nbsp;Send&nbsp;Speed&nbsp;|&nbsp;Recv&nbsp;Speed
|&nbsp;|&nbsp;|
Clouvider&nbsp;|&nbsp;London,&nbsp;UK&nbsp;(10G)&nbsp;|&nbsp;51.8&nbsp;Mbits/sec&nbsp;|&nbsp;45.4&nbsp;Mbits/sec
Online.net&nbsp;|&nbsp;Paris,&nbsp;FR&nbsp;(10G)&nbsp;|&nbsp;50.2&nbsp;Mbits/sec&nbsp;|&nbsp;43.1&nbsp;Mbits/sec
WorldStream&nbsp;|&nbsp;The&nbsp;Netherlands&nbsp;(10G)&nbsp;|&nbsp;busy&nbsp;|&nbsp;46.4&nbsp;Mbits/sec
Biznet&nbsp;|&nbsp;Jakarta,&nbsp;Indonesia&nbsp;(1G)&nbsp;|&nbsp;54.5&nbsp;Mbits/sec&nbsp;|&nbsp;48.5&nbsp;Mbits/sec
Clouvider&nbsp;|&nbsp;NYC,&nbsp;NY,&nbsp;US&nbsp;(10G)&nbsp;|&nbsp;52.5&nbsp;Mbits/sec&nbsp;|&nbsp;46.0&nbsp;Mbits/sec
Velocity&nbsp;Online&nbsp;|&nbsp;Tallahassee,&nbsp;FL,&nbsp;US&nbsp;(10G)&nbsp;|&nbsp;50.8&nbsp;Mbits/sec&nbsp;|&nbsp;45.9&nbsp;Mbits/sec
Clouvider&nbsp;|&nbsp;Los&nbsp;Angeles,&nbsp;CA,&nbsp;US&nbsp;(10G)&nbsp;|&nbsp;53.4&nbsp;Mbits/sec&nbsp;|&nbsp;46.9&nbsp;Mbits/sec
Iveloz&nbsp;Telecom&nbsp;|&nbsp;Sao&nbsp;Paulo,&nbsp;BR&nbsp;(2G)&nbsp;|&nbsp;busy&nbsp;|&nbsp;busy
Geekbench&nbsp;5&nbsp;Benchmark&nbsp;Test:
---------------------------------
Test&nbsp;|&nbsp;Value
|
Single&nbsp;Core&nbsp;|&nbsp;647</pre><p><br/></p><link rel="stylesheet" href="//www.zhidianyun.cn/source/plugin/wcn_editor/public/wcn_editor_fit.css?v134_TZ8" id="wcn_editor_css"/>
页: [1]
查看完整版本: Linux服务器一键测试CPU/硬盘/