{"id":32472,"date":"2025-04-24T12:36:08","date_gmt":"2025-04-24T04:36:08","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/32472.html"},"modified":"2025-04-24T12:36:08","modified_gmt":"2025-04-24T04:36:08","slug":"%e8%87%aa%e5%8a%a8%e5%8c%96%e8%bf%90%e7%bb%b4-%e6%a3%80%e6%b5%8blinux%e6%9c%8d%e5%8a%a1%e5%99%a8cpu%e3%80%81%e5%86%85%e5%ad%98%e3%80%81%e8%b4%9f%e8%bd%bd%e3%80%81io%e8%af%bb%e5%86%99%e3%80%81%e6%9c%ba","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/32472.html","title":{"rendered":"\u81ea\u52a8\u5316\u8fd0\u7ef4-\u68c0\u6d4bLinux\u670d\u52a1\u5668CPU\u3001\u5185\u5b58\u3001\u8d1f\u8f7d\u3001IO\u8bfb\u5199\u3001\u673a\u623f\u5e26\u5bbd\u548c\u670d\u52a1\u5668\u7c7b\u578b\u7b49\u4fe1\u606f\u811a\u672c"},"content":{"rendered":"<h3>\u524d\u8a00&#xff1a;\u4ee5\u4e0a\u811a\u672c\u4e3a\u4eca\u5e748\u67081\u53f7\u53d1\u5e03\u7684&#xff0c;\u5f53\u65f6\u662f\u6ca1\u6709\u4efb\u4f55\u95ee\u9898&#xff0c;\u4f46\u73b0\u5728\u811a\u672c\u91cc\u7f51\u7edc\u901f\u5ea6\u6d4b\u8bd5py\u6587\u4ef6\u83b7\u53d6\u4e0d\u4e86\u4e86&#xff0c;\u6d4b\u901f\u8fd9\u5757\u529f\u80fd\u76ee\u524d\u65e0\u6cd5\u5b9e\u73b0&#xff0c;\u540e\u9762\u6211\u4f1a\u62bd\u65f6\u95f4\u6765\u7814\u7a76&#xff0c;\u5927\u5bb6\u5982\u679c\u6709\u5efa\u8bae\u4e5f\u53ef\u4ee5\u5206\u4eab\u4e0b\u3002<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424043603-6809bfb39a7ce.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424043604-6809bfb4481ba.png\" alt=\"\" \/><\/p>\n<p>\u811a\u672c\u5185\u5bb9&#xff1a;<\/p>\n<p>#!\/usr\/bin\/env bash<br \/>\n#<br \/>\n#<br \/>\n#<br \/>\n#<\/p>\n<p>RED&#061;&#039;\\\\033[0;31m&#039;<br \/>\nGREEN&#061;&#039;\\\\033[0;32m&#039;<br \/>\nYELLOW&#061;&#039;\\\\033[0;33m&#039;<br \/>\nSKYBLUE&#061;&#039;\\\\033[0;36m&#039;<br \/>\nPLAIN&#061;&#039;\\\\033[0m&#039;<\/p>\n<p>about() {<br \/>\necho &#034;&#034;<br \/>\necho &#034; &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; &#034;<br \/>\necho &#034; \\\\                 Superbench.sh  Script                 \/ &#034;<br \/>\necho &#034; \\\\       Basic system info, I\/O test and speedtest       \/ &#034;<br \/>\necho &#034; \\\\                   v1.1.7 (7 Apr 2024)                 \/ &#034;<br \/>\necho &#034; \\\\                   Created by Oldking                  \/ &#034;<br \/>\necho &#034; &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061; &#034;<br \/>\necho &#034;&#034;<br \/>\necho &#034; Intro: https:\/\/www.oldking.net\/350.html&#034;<br \/>\necho &#034; Copyright (C) 2024 Oldking oooldking&#064;gmail.com&#034;<br \/>\necho &#034;&#034;<br \/>\n}<\/p>\n<p>cancel() {<br \/>\necho &#034;&#034;<br \/>\nnext;<br \/>\necho &#034; Abort &#8230;&#034;<br \/>\necho &#034; Cleanup &#8230;&#034;<br \/>\ncleanup;<br \/>\necho &#034; Done&#034;<br \/>\nexit<br \/>\n}<\/p>\n<p>trap cancel SIGINT<\/p>\n<p>benchinit() {<br \/>\nif [ -f \/etc\/redhat-release ]; then<br \/>\n    release&#061;&#034;centos&#034;<br \/>\nelif cat \/etc\/issue | grep -Eqi &#034;debian&#034;; then<br \/>\n    release&#061;&#034;debian&#034;<br \/>\nelif cat \/etc\/issue | grep -Eqi &#034;ubuntu&#034;; then<br \/>\n    release&#061;&#034;ubuntu&#034;<br \/>\nelif cat \/etc\/issue | grep -Eqi &#034;centos|red hat|redhat&#034;; then<br \/>\n    release&#061;&#034;centos&#034;<br \/>\nelif cat \/proc\/version | grep -Eqi &#034;debian&#034;; then<br \/>\n    release&#061;&#034;debian&#034;<br \/>\nelif cat \/proc\/version | grep -Eqi &#034;ubuntu&#034;; then<br \/>\n    release&#061;&#034;ubuntu&#034;<br \/>\nelif cat \/proc\/version | grep -Eqi &#034;centos|red hat|redhat&#034;; then<br \/>\n    release&#061;&#034;centos&#034;<br \/>\nfi<\/p>\n<p>[[ $EUID -ne 0 ]] &amp;&amp; echo -e &#034;${RED}Error:${PLAIN} This script must be run as root!&#034; &amp;&amp; exit 1<\/p>\n<p>if  [ ! -e &#039;\/usr\/bin\/python&#039; ]; then<br \/>\n        echo &#034; Installing Python &#8230;&#034;<br \/>\n            if [ &#034;${release}&#034; &#061;&#061; &#034;centos&#034; ]; then<br \/>\n            yum update &gt; \/dev\/null 2&gt;&amp;1<br \/>\n                    yum -y install python &gt; \/dev\/null 2&gt;&amp;1<br \/>\n                else<br \/>\n                apt-get update &gt; \/dev\/null 2&gt;&amp;1<br \/>\n                    apt-get -y install python &gt; \/dev\/null 2&gt;&amp;1<br \/>\n                fi<\/p>\n<p>fi<\/p>\n<p>if  [ ! -e &#039;\/usr\/bin\/curl&#039; ]; then<br \/>\n        echo &#034; Installing Curl &#8230;&#034;<br \/>\n            if [ &#034;${release}&#034; &#061;&#061; &#034;centos&#034; ]; then<br \/>\n                yum update &gt; \/dev\/null 2&gt;&amp;1<br \/>\n                yum -y install curl &gt; \/dev\/null 2&gt;&amp;1<br \/>\n            else<br \/>\n                apt-get update &gt; \/dev\/null 2&gt;&amp;1<br \/>\n                apt-get -y install curl &gt; \/dev\/null 2&gt;&amp;1<br \/>\n            fi<br \/>\nfi<\/p>\n<p>if  [ ! -e &#039;\/usr\/bin\/wget&#039; ]; then<br \/>\n        echo &#034; Installing Wget &#8230;&#034;<br \/>\n            if [ &#034;${release}&#034; &#061;&#061; &#034;centos&#034; ]; then<br \/>\n                yum update &gt; \/dev\/null 2&gt;&amp;1<br \/>\n                yum -y install wget &gt; \/dev\/null 2&gt;&amp;1<br \/>\n            else<br \/>\n                apt-get update &gt; \/dev\/null 2&gt;&amp;1<br \/>\n                apt-get -y install wget &gt; \/dev\/null 2&gt;&amp;1<br \/>\n            fi<br \/>\nfi<\/p>\n<p>if  [ ! -e &#039;.\/speedtest-cli\/speedtest&#039; ]; then<br \/>\necho &#034; Installing Speedtest-cli &#8230;&#034;<br \/>\nwget &#8211;no-check-certificate -qO speedtest.tgz https:\/\/cdn.jsdelivr.net\/gh\/oooldking\/script&#064;1.1.7\/speedtest_cli\/ookla-speedtest-1.0.0-$(uname -m)-linux.tgz &gt; \/dev\/null 2&gt;&amp;1<br \/>\nfi<br \/>\nmkdir -p speedtest-cli &amp;&amp; tar zxvf speedtest.tgz -C .\/speedtest-cli\/ &gt; \/dev\/null 2&gt;&amp;1 &amp;&amp; chmod a&#043;rx .\/speedtest-cli\/speedtest<\/p>\n<p>if  [ ! -e &#039;tools.py&#039; ]; then<br \/>\necho &#034; Installing tools.py &#8230;&#034;<br \/>\nwget &#8211;no-check-certificate https:\/\/cdn.jsdelivr.net\/gh\/oooldking\/script&#064;1.1.7\/tools.py &gt; \/dev\/null 2&gt;&amp;1<br \/>\nfi<br \/>\nchmod a&#043;rx tools.py<\/p>\n<p>if  [ ! -e &#039;fast_com.py&#039; ]; then<br \/>\necho &#034; Installing Fast.com-cli &#8230;&#034;<br \/>\nwget &#8211;no-check-certificate https:\/\/cdn.jsdelivr.net\/gh\/sanderjo\/fast.com&#064;master\/fast_com.py &gt; \/dev\/null 2&gt;&amp;1<br \/>\nwget &#8211;no-check-certificate https:\/\/cdn.jsdelivr.net\/gh\/sanderjo\/fast.com&#064;master\/fast_com_example_usage.py &gt; \/dev\/null 2&gt;&amp;1<br \/>\nfi<br \/>\nchmod a&#043;rx fast_com.py<br \/>\nchmod a&#043;rx fast_com_example_usage.py<\/p>\n<p>sleep 5<\/p>\n<p>start&#061;$(date &#043;%s)<br \/>\n}<\/p>\n<p>get_opsy() {<br \/>\n    [ -f \/etc\/redhat-release ] &amp;&amp; awk &#039;{print ($1,$3~\/^[0-9]\/?$3:$4)}&#039; \/etc\/redhat-release &amp;&amp; return<br \/>\n    [ -f \/etc\/os-release ] &amp;&amp; awk -F&#039;[&#061; &#034;]&#039; &#039;\/PRETTY_NAME\/{print $3,$4,$5}&#039; \/etc\/os-release &amp;&amp; return<br \/>\n    [ -f \/etc\/lsb-release ] &amp;&amp; awk -F&#039;[&#061;&#034;]&#043;&#039; &#039;\/DESCRIPTION\/{print $2}&#039; \/etc\/lsb-release &amp;&amp; return<br \/>\n}<\/p>\n<p>next() {<br \/>\n    printf &#034;%-70s\\\\n&#034; &#034;-&#034; | sed &#039;s\/\\\\s\/-\/g&#039; | tee -a $log<br \/>\n}<\/p>\n<p>speed_test(){<br \/>\nif [[ $1 &#061;&#061; &#039;&#039; ]]; then<br \/>\nspeedtest-cli\/speedtest -p no &#8211;accept-license &gt; $speedLog 2&gt;&amp;1<br \/>\nis_upload&#061;$(cat $speedLog | grep &#039;Upload&#039;)<br \/>\nresult_speed&#061;$(cat $speedLog | awk -F &#039; &#039; &#039;\/Result\/{print $3}&#039;)<br \/>\nif [[ ${is_upload} ]]; then<br \/>\n        local REDownload&#061;$(cat $speedLog | awk -F &#039; &#039; &#039;\/Download\/{print $3}&#039;)<br \/>\n        local reupload&#061;$(cat $speedLog | awk -F &#039; &#039; &#039;\/Upload\/{print $3}&#039;)<br \/>\n        local relatency&#061;$(cat $speedLog | awk -F &#039; &#039; &#039;\/Latency\/{print $2}&#039;)<\/p>\n<p>        temp&#061;$(echo &#034;$relatency&#034; | awk -F &#039;.&#039; &#039;{print $1}&#039;)<br \/>\n        if [[ ${temp} -gt 50 ]]; then<br \/>\n            relatency&#061;&#034;(*)&#034;${relatency}<br \/>\n        fi<br \/>\n        local nodeName&#061;$2<\/p>\n<p>        temp&#061;$(echo &#034;${REDownload}&#034; | awk -F &#039; &#039; &#039;{print $1}&#039;)<br \/>\n        if [[ $(awk -v num1&#061;${temp} -v num2&#061;0 &#039;BEGIN{print(num1&gt;num2)?&#034;1&#034;:&#034;0&#034;}&#039;) -eq 1 ]]; then<br \/>\n        printf &#034;${YELLOW}%-18s${GREEN}%-18s${RED}%-20s${SKYBLUE}%-12s${PLAIN}\\\\n&#034; &#034; ${nodeName}&#034; &#034;${reupload} Mbit\/s&#034; &#034;${REDownload} Mbit\/s&#034; &#034;${relatency} ms&#034; | tee -a $log<br \/>\n        fi<br \/>\nelse<br \/>\n        local cerror&#061;&#034;ERROR&#034;<br \/>\nfi<br \/>\nelse<br \/>\nspeedtest-cli\/speedtest -p no -s $1 &#8211;accept-license &gt; $speedLog 2&gt;&amp;1<br \/>\nis_upload&#061;$(cat $speedLog | grep &#039;Upload&#039;)<br \/>\nif [[ ${is_upload} ]]; then<br \/>\n        local REDownload&#061;$(cat $speedLog | awk -F &#039; &#039; &#039;\/Download\/{print $3}&#039;)<br \/>\n        local reupload&#061;$(cat $speedLog | awk -F &#039; &#039; &#039;\/Upload\/{print $3}&#039;)<br \/>\n        local relatency&#061;$(cat $speedLog | awk -F &#039; &#039; &#039;\/Latency\/{print $2}&#039;)<br \/>\n        local nodeName&#061;$2<\/p>\n<p>        temp&#061;$(echo &#034;${REDownload}&#034; | awk -F &#039; &#039; &#039;{print $1}&#039;)<br \/>\n        if [[ $(awk -v num1&#061;${temp} -v num2&#061;0 &#039;BEGIN{print(num1&gt;num2)?&#034;1&#034;:&#034;0&#034;}&#039;) -eq 1 ]]; then<br \/>\n        printf &#034;${YELLOW}%-18s${GREEN}%-18s${RED}%-20s${SKYBLUE}%-12s${PLAIN}\\\\n&#034; &#034; ${nodeName}&#034; &#034;${reupload} Mbit\/s&#034; &#034;${REDownload} Mbit\/s&#034; &#034;${relatency} ms&#034; | tee -a $log<br \/>\nfi<br \/>\nelse<br \/>\n        local cerror&#061;&#034;ERROR&#034;<br \/>\nfi<br \/>\nfi<br \/>\n}<\/p>\n<p>print_speedtest() {<br \/>\nprintf &#034;%-18s%-18s%-20s%-12s\\\\n&#034; &#034; Node Name&#034; &#034;Upload Speed&#034; &#034;Download Speed&#034; &#034;Latency&#034; | tee -a $log<br \/>\n    speed_test &#039;&#039; &#039;Speedtest.net&#039;<br \/>\n    speed_fast_com<br \/>\n    speed_test &#039;27377&#039; &#039;Beijing 5G   CT&#039;<br \/>\n    speed_test &#039;26352&#039; &#039;Nanjing 5G   CT&#039;<br \/>\n    speed_test &#039;17145&#039; &#039;Hefei 5G     CT&#039;<br \/>\nspeed_test &#039;27594&#039; &#039;Guangzhou 5G CT&#039;<br \/>\nspeed_test &#039;27154&#039; &#039;TianJin 5G   CU&#039;<br \/>\nspeed_test &#039;24447&#039; &#039;Shanghai 5G  CU&#039;<br \/>\nspeed_test &#039;26678&#039; &#039;Guangzhou 5G CU&#039;<br \/>\nspeed_test &#039;17184&#039; &#039;Tianjin 5G   CM&#039;<br \/>\nspeed_test &#039;26850&#039; &#039;Wuxi 5G      CM&#039;<br \/>\nspeed_test &#039;27249&#039; &#039;Nanjing 5G   CM&#039;<br \/>\nspeed_test &#039;26404&#039; &#039;Hefei 5G     CM&#039;<br \/>\nspeed_test &#039;28491&#039; &#039;Changsha 5G  CM&#039;<\/p>\n<p>rm -rf speedtest*<br \/>\n}<\/p>\n<p>print_speedtest_fast() {<br \/>\nprintf &#034;%-18s%-18s%-20s%-12s\\\\n&#034; &#034; Node Name&#034; &#034;Upload Speed&#034; &#034;Download Speed&#034; &#034;Latency&#034; | tee -a $log<br \/>\n    speed_test &#039;&#039; &#039;Speedtest.net&#039;<br \/>\n    speed_fast_com<br \/>\n    speed_test &#039;27377&#039; &#039;Beijing 5G   CT&#039;<br \/>\nspeed_test &#039;24447&#039; &#039;ShangHai 5G  CU&#039;<br \/>\nspeed_test &#039;27249&#039; &#039;Nanjing 5G   CM&#039;<\/p>\n<p>rm -rf speedtest*<br \/>\n}<\/p>\n<p>speed_fast_com() {<br \/>\ntemp&#061;$(python fast_com_example_usage.py 2&gt;&amp;1)<br \/>\nis_down&#061;$(echo &#034;$temp&#034; | grep &#039;Result&#039;)<br \/>\nif [[ ${is_down} ]]; then<br \/>\n        temp1&#061;$(echo &#034;$temp&#034; | awk -F &#039;:&#039; &#039;\/Result\/{print $2}&#039;)<br \/>\n        temp2&#061;$(echo &#034;$temp1&#034; | awk -F &#039; &#039; &#039;\/Mbps\/{print $1}&#039;)<br \/>\n        local REDownload&#061;&#034;$temp2 Mbit\/s&#034;<br \/>\n        local reupload&#061;&#034;0.00 Mbit\/s&#034;<br \/>\n        local relatency&#061;&#034;-&#034;<br \/>\n        local nodeName&#061;&#034;Fast.com&#034;<\/p>\n<p>        printf &#034;${YELLOW}%-18s${GREEN}%-18s${RED}%-20s${SKYBLUE}%-12s${PLAIN}\\\\n&#034; &#034; ${nodeName}&#034; &#034;${reupload}&#034; &#034;${REDownload}&#034; &#034;${relatency}&#034; | tee -a $log<br \/>\nelse<br \/>\n        local cerror&#061;&#034;ERROR&#034;<br \/>\nfi<br \/>\nrm -rf fast_com_example_usage.py<br \/>\nrm -rf fast_com.py<\/p>\n<p>}<\/p>\n<p>io_test() {<br \/>\n    (LANG&#061;C dd if&#061;\/dev\/zero of&#061;test_file_$$ bs&#061;512K count&#061;$1 conv&#061;fdatasync &amp;&amp; rm -f test_file_$$ ) 2&gt;&amp;1 | awk -F, &#039;{io&#061;$NF} END { print io}&#039; | sed &#039;s\/^[ \\\\t]*\/\/;s\/[ \\\\t]*$\/\/&#039;<br \/>\n}<\/p>\n<p>calc_disk() {<br \/>\n    local total_size&#061;0<br \/>\n    local array&#061;$&#064;<br \/>\n    for size in ${array[&#064;]}<br \/>\n    do<br \/>\n        [ &#034;${size}&#034; &#061;&#061; &#034;0&#034; ] &amp;&amp; size_t&#061;0 || size_t&#061;&#096;echo ${size:0:${#size}-1}&#096;<br \/>\n        [ &#034;&#096;echo ${size:(-1)}&#096;&#034; &#061;&#061; &#034;K&#034; ] &amp;&amp; size&#061;0<br \/>\n        [ &#034;&#096;echo ${size:(-1)}&#096;&#034; &#061;&#061; &#034;M&#034; ] &amp;&amp; size&#061;$( awk &#039;BEGIN{printf &#034;%.1f&#034;, &#039;$size_t&#039; \/ 1024}&#039; )<br \/>\n        [ &#034;&#096;echo ${size:(-1)}&#096;&#034; &#061;&#061; &#034;T&#034; ] &amp;&amp; size&#061;$( awk &#039;BEGIN{printf &#034;%.1f&#034;, &#039;$size_t&#039; * 1024}&#039; )<br \/>\n        [ &#034;&#096;echo ${size:(-1)}&#096;&#034; &#061;&#061; &#034;G&#034; ] &amp;&amp; size&#061;${size_t}<br \/>\n        total_size&#061;$( awk &#039;BEGIN{printf &#034;%.1f&#034;, &#039;$total_size&#039; &#043; &#039;$size&#039;}&#039; )<br \/>\n    done<br \/>\n    echo ${total_size}<br \/>\n}<\/p>\n<p>power_time() {<\/p>\n<p>result&#061;$(smartctl -a $(result&#061;$(cat \/proc\/mounts) &amp;&amp; echo $(echo &#034;$result&#034; | awk &#039;\/data&#061;ordered\/{print $1}&#039;) | awk &#039;{print $1}&#039;) 2&gt;&amp;1) &amp;&amp; power_time&#061;$(echo &#034;$result&#034; | awk &#039;\/Power_On\/{print $10}&#039;) &amp;&amp; echo &#034;$power_time&#034;<br \/>\n}<\/p>\n<p>install_smart() {<br \/>\nif  [ ! -e &#039;\/usr\/sbin\/smartctl&#039; ]; then<br \/>\necho &#034;Installing Smartctl &#8230;&#034;<br \/>\n    if [ &#034;${release}&#034; &#061;&#061; &#034;centos&#034; ]; then<br \/>\n    yum update &gt; \/dev\/null 2&gt;&amp;1<br \/>\n        yum -y install smartmontools &gt; \/dev\/null 2&gt;&amp;1<br \/>\n    else<br \/>\n    apt-get update &gt; \/dev\/null 2&gt;&amp;1<br \/>\n        apt-get -y install smartmontools &gt; \/dev\/null 2&gt;&amp;1<br \/>\n    fi<br \/>\nfi<br \/>\n}<\/p>\n<p>ip_info4(){<br \/>\nip_date&#061;$(curl -4 -s http:\/\/api.ip.la\/en?json)<br \/>\necho $ip_date &gt; ip_json.json<br \/>\nisp&#061;$(python tools.py geoip isp)<br \/>\nas_tmp&#061;$(python tools.py geoip as)<br \/>\nasn&#061;$(echo $as_tmp | awk -F &#039; &#039; &#039;{print $1}&#039;)<br \/>\norg&#061;$(python tools.py geoip org)<br \/>\nif [ -z &#034;ip_date&#034; ]; then<br \/>\necho $ip_date<br \/>\necho &#034;hala&#034;<br \/>\ncountry&#061;$(python tools.py ipip country_name)<br \/>\ncity&#061;$(python tools.py ipip city)<br \/>\ncountryCode&#061;$(python tools.py ipip country_code)<br \/>\nregion&#061;$(python tools.py ipip province)<br \/>\nelse<br \/>\ncountry&#061;$(python tools.py geoip country)<br \/>\ncity&#061;$(python tools.py geoip city)<br \/>\ncountryCode&#061;$(python tools.py geoip countryCode)<br \/>\nregion&#061;$(python tools.py geoip regionName)<br \/>\nfi<br \/>\nif [ -z &#034;$city&#034; ]; then<br \/>\ncity&#061;${region}<br \/>\nfi<\/p>\n<p>echo -e &#034; ASN &amp; ISP            : ${SKYBLUE}$asn, $isp${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; Organization         : ${YELLOW}$org${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; Location             : ${SKYBLUE}$city, ${YELLOW}$country \/ $countryCode${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; Region               : ${SKYBLUE}$region${PLAIN}&#034; | tee -a $log<\/p>\n<p>rm -rf tools.py<br \/>\nrm -rf ip_json.json<br \/>\n}<\/p>\n<p>virt_check(){<br \/>\nif hash ifconfig 2&gt;\/dev\/null; then<br \/>\neth&#061;$(ifconfig)<br \/>\nfi<\/p>\n<p>virtualx&#061;$(dmesg) 2&gt;\/dev\/null<\/p>\n<p>    if  [ $(which dmidecode) ]; then<br \/>\nsys_manu&#061;$(dmidecode -s system-manufacturer) 2&gt;\/dev\/null<br \/>\nsys_product&#061;$(dmidecode -s system-product-name) 2&gt;\/dev\/null<br \/>\nsys_ver&#061;$(dmidecode -s system-version) 2&gt;\/dev\/null<br \/>\nelse<br \/>\nsys_manu&#061;&#034;&#034;<br \/>\nsys_product&#061;&#034;&#034;<br \/>\nsys_ver&#061;&#034;&#034;<br \/>\nfi<\/p>\n<p>if grep docker \/proc\/1\/cgroup -qa; then<br \/>\n    virtual&#061;&#034;Docker&#034;<br \/>\nelif grep lxc \/proc\/1\/cgroup -qa; then<br \/>\nvirtual&#061;&#034;Lxc&#034;<br \/>\nelif grep -qa container&#061;lxc \/proc\/1\/environ; then<br \/>\nvirtual&#061;&#034;Lxc&#034;<br \/>\nelif [[ -f \/proc\/user_beancounters ]]; then<br \/>\nvirtual&#061;&#034;OpenVZ&#034;<br \/>\nelif [[ &#034;$virtualx&#034; &#061;&#061; *kvm-clock* ]]; then<br \/>\nvirtual&#061;&#034;KVM&#034;<br \/>\nelif [[ &#034;$cname&#034; &#061;&#061; *KVM* ]]; then<br \/>\nvirtual&#061;&#034;KVM&#034;<br \/>\nelif [[ &#034;$cname&#034; &#061;&#061; *QEMU* ]]; then<br \/>\nvirtual&#061;&#034;KVM&#034;<br \/>\nelif [[ &#034;$virtualx&#034; &#061;&#061; *&#034;VMware Virtual Platform&#034;* ]]; then<br \/>\nvirtual&#061;&#034;VMware&#034;<br \/>\nelif [[ &#034;$virtualx&#034; &#061;&#061; *&#034;Parallels Software International&#034;* ]]; then<br \/>\nvirtual&#061;&#034;Parallels&#034;<br \/>\nelif [[ &#034;$virtualx&#034; &#061;&#061; *VirtualBox* ]]; then<br \/>\nvirtual&#061;&#034;VirtualBox&#034;<br \/>\nelif [[ -e \/proc\/xen ]]; then<br \/>\nvirtual&#061;&#034;Xen&#034;<br \/>\nelif [[ &#034;$sys_manu&#034; &#061;&#061; *&#034;Microsoft Corporation&#034;* ]]; then<br \/>\nif [[ &#034;$sys_product&#034; &#061;&#061; *&#034;Virtual Machine&#034;* ]]; then<br \/>\nif [[ &#034;$sys_ver&#034; &#061;&#061; *&#034;7.0&#034;* || &#034;$sys_ver&#034; &#061;&#061; *&#034;Hyper-V&#034; ]]; then<br \/>\nvirtual&#061;&#034;Hyper-V&#034;<br \/>\nelse<br \/>\nvirtual&#061;&#034;Microsoft Virtual Machine&#034;<br \/>\nfi<br \/>\nfi<br \/>\nelse<br \/>\nvirtual&#061;&#034;Dedicated&#034;<br \/>\nfi<br \/>\n}<\/p>\n<p>power_time_check(){<br \/>\necho -ne &#034; Power time of disk   : &#034;<br \/>\ninstall_smart<br \/>\nptime&#061;$(power_time)<br \/>\necho -e &#034;${SKYBLUE}$ptime Hours${PLAIN}&#034;<br \/>\n}<\/p>\n<p>freedisk() {<br \/>\nfreespace&#061;$( df -m . | awk &#039;NR&#061;&#061;2 {print $4}&#039; )<br \/>\nif [[ $freespace &#061;&#061; &#034;&#034; ]]; then<br \/>\n$freespace&#061;$( df -m . | awk &#039;NR&#061;&#061;3 {print $3}&#039; )<br \/>\nfi<br \/>\nif [[ $freespace -gt 1024 ]]; then<br \/>\nprintf &#034;%s&#034; $((1024*2))<br \/>\nelif [[ $freespace -gt 512 ]]; then<br \/>\nprintf &#034;%s&#034; $((512*2))<br \/>\nelif [[ $freespace -gt 256 ]]; then<br \/>\nprintf &#034;%s&#034; $((256*2))<br \/>\nelif [[ $freespace -gt 128 ]]; then<br \/>\nprintf &#034;%s&#034; $((128*2))<br \/>\nelse<br \/>\nprintf &#034;1&#034;<br \/>\nfi<br \/>\n}<\/p>\n<p>print_io() {<br \/>\nif [[ $1 &#061;&#061; &#034;fast&#034; ]]; then<br \/>\nwritemb&#061;$((128*2))<br \/>\nelse<br \/>\nwritemb&#061;$(freedisk)<br \/>\nfi<\/p>\n<p>writemb_size&#061;&#034;$(( writemb \/ 2 ))MB&#034;<br \/>\nif [[ $writemb_size &#061;&#061; &#034;1024MB&#034; ]]; then<br \/>\nwritemb_size&#061;&#034;1.0GB&#034;<br \/>\nfi<\/p>\n<p>if [[ $writemb !&#061; &#034;1&#034; ]]; then<br \/>\necho -n &#034; I\/O Speed( $writemb_size )   : &#034; | tee -a $log<br \/>\nio1&#061;$( io_test $writemb )<br \/>\necho -e &#034;${YELLOW}$io1${PLAIN}&#034; | tee -a $log<br \/>\necho -n &#034; I\/O Speed( $writemb_size )   : &#034; | tee -a $log<br \/>\nio2&#061;$( io_test $writemb )<br \/>\necho -e &#034;${YELLOW}$io2${PLAIN}&#034; | tee -a $log<br \/>\necho -n &#034; I\/O Speed( $writemb_size )   : &#034; | tee -a $log<br \/>\nio3&#061;$( io_test $writemb )<br \/>\necho -e &#034;${YELLOW}$io3${PLAIN}&#034; | tee -a $log<br \/>\nioraw1&#061;$( echo $io1 | awk &#039;NR&#061;&#061;1 {print $1}&#039; )<br \/>\n[ &#034;&#096;echo $io1 | awk &#039;NR&#061;&#061;1 {print $2}&#039;&#096;&#034; &#061;&#061; &#034;GB\/s&#034; ] &amp;&amp; ioraw1&#061;$( awk &#039;BEGIN{print &#039;$ioraw1&#039; * 1024}&#039; )<br \/>\nioraw2&#061;$( echo $io2 | awk &#039;NR&#061;&#061;1 {print $1}&#039; )<br \/>\n[ &#034;&#096;echo $io2 | awk &#039;NR&#061;&#061;1 {print $2}&#039;&#096;&#034; &#061;&#061; &#034;GB\/s&#034; ] &amp;&amp; ioraw2&#061;$( awk &#039;BEGIN{print &#039;$ioraw2&#039; * 1024}&#039; )<br \/>\nioraw3&#061;$( echo $io3 | awk &#039;NR&#061;&#061;1 {print $1}&#039; )<br \/>\n[ &#034;&#096;echo $io3 | awk &#039;NR&#061;&#061;1 {print $2}&#039;&#096;&#034; &#061;&#061; &#034;GB\/s&#034; ] &amp;&amp; ioraw3&#061;$( awk &#039;BEGIN{print &#039;$ioraw3&#039; * 1024}&#039; )<br \/>\nioall&#061;$( awk &#039;BEGIN{print &#039;$ioraw1&#039; &#043; &#039;$ioraw2&#039; &#043; &#039;$ioraw3&#039;}&#039; )<br \/>\nioavg&#061;$( awk &#039;BEGIN{printf &#034;%.1f&#034;, &#039;$ioall&#039; \/ 3}&#039; )<br \/>\necho -e &#034; Average I\/O Speed    : ${YELLOW}$ioavg MB\/s${PLAIN}&#034; | tee -a $log<br \/>\nelse<br \/>\necho -e &#034; ${RED}Not enough space!${PLAIN}&#034;<br \/>\nfi<br \/>\n}<\/p>\n<p>print_system_info() {<br \/>\necho -e &#034; CPU Model            : ${SKYBLUE}$cname${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; CPU Cores            : ${YELLOW}$cores Cores ${SKYBLUE}$freq MHz $arch${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; CPU Cache            : ${SKYBLUE}$corescache ${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; OS                   : ${SKYBLUE}$opsy ($lbit Bit) ${YELLOW}$virtual${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; Kernel               : ${SKYBLUE}$kern${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; Total Space          : ${SKYBLUE}$disk_used_size GB \/ ${YELLOW}$disk_total_size GB ${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; Total RAM            : ${SKYBLUE}$uram MB \/ ${YELLOW}$tram MB ${SKYBLUE}($bram MB Buff)${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; Total SWAP           : ${SKYBLUE}$uswap MB \/ $swap MB${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; Uptime               : ${SKYBLUE}$up${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; Load Average         : ${SKYBLUE}$load${PLAIN}&#034; | tee -a $log<br \/>\necho -e &#034; TCP CC               : ${YELLOW}$tcpctrl${PLAIN}&#034; | tee -a $log<br \/>\n}<\/p>\n<p>print_end_time() {<br \/>\nend&#061;$(date &#043;%s)<br \/>\ntime&#061;$(( $end &#8211; $start ))<br \/>\nif [[ $time -gt 60 ]]; then<br \/>\nmin&#061;$(expr $time \/ 60)<br \/>\nsec&#061;$(expr $time % 60)<br \/>\necho -ne &#034; Finished in  : ${min} min ${sec} sec&#034; | tee -a $log<br \/>\nelse<br \/>\necho -ne &#034; Finished in  : ${time} sec&#034; | tee -a $log<br \/>\nfi<\/p>\n<p>printf &#039;\\\\n&#039; | tee -a $log<\/p>\n<p>bj_time&#061;$(curl -s http:\/\/cgi.im.qq.com\/cgi-bin\/cgi_svrtime)<\/p>\n<p>if [[ $(echo $bj_time | grep &#034;html&#034;) ]]; then<br \/>\nbj_time&#061;$(date -u &#043;%Y-%m-%d&#034; &#034;%H:%M:%S -d &#039;&#043;8 hours&#039;)<br \/>\nfi<br \/>\necho &#034; Timestamp    : $bj_time GMT&#043;8&#034; | tee -a $log<br \/>\necho &#034; Results      : $log&#034;<br \/>\n}<\/p>\n<p>get_system_info() {<br \/>\ncname&#061;$( awk -F: &#039;\/model name\/ {name&#061;$2} END {print name}&#039; \/proc\/cpuinfo | sed &#039;s\/^[ \\\\t]*\/\/;s\/[ \\\\t]*$\/\/&#039; )<br \/>\ncores&#061;$( awk -F: &#039;\/model name\/ {core&#043;&#043;} END {print core}&#039; \/proc\/cpuinfo )<br \/>\nfreq&#061;$( awk -F: &#039;\/cpu MHz\/ {freq&#061;$2} END {print freq}&#039; \/proc\/cpuinfo | sed &#039;s\/^[ \\\\t]*\/\/;s\/[ \\\\t]*$\/\/&#039; )<br \/>\ncorescache&#061;$( awk -F: &#039;\/cache size\/ {cache&#061;$2} END {print cache}&#039; \/proc\/cpuinfo | sed &#039;s\/^[ \\\\t]*\/\/;s\/[ \\\\t]*$\/\/&#039; )<br \/>\ntram&#061;$( free -m | awk &#039;\/Mem\/ {print $2}&#039; )<br \/>\nuram&#061;$( free -m | awk &#039;\/Mem\/ {print $3}&#039; )<br \/>\nbram&#061;$( free -m | awk &#039;\/Mem\/ {print $6}&#039; )<br \/>\nswap&#061;$( free -m | awk &#039;\/Swap\/ {print $2}&#039; )<br \/>\nuswap&#061;$( free -m | awk &#039;\/Swap\/ {print $3}&#039; )<br \/>\nup&#061;$( awk &#039;{a&#061;$1\/86400;b&#061;($1%86400)\/3600;c&#061;($1%3600)\/60} {printf(&#034;%d days %d hour %d min\\\\n&#034;,a,b,c)}&#039; \/proc\/uptime )<br \/>\nload&#061;$( w | head -1 | awk -F&#039;load average:&#039; &#039;{print $2}&#039; | sed &#039;s\/^[ \\\\t]*\/\/;s\/[ \\\\t]*$\/\/&#039; )<br \/>\nopsy&#061;$( get_opsy )<br \/>\narch&#061;$( uname -m )<br \/>\nlbit&#061;$( getconf LONG_BIT )<br \/>\nkern&#061;$( uname -r )<\/p>\n<p>disk_size1&#061;$( LANG&#061;C df -hPl | grep -wvE &#039;\\\\-|none|tmpfs|overlay|shm|udev|devtmpfs|by-uuid|chroot|Filesystem&#039; | awk &#039;{print $2}&#039; )<br \/>\ndisk_size2&#061;$( LANG&#061;C df -hPl | grep -wvE &#039;\\\\-|none|tmpfs|overlay|shm|udev|devtmpfs|by-uuid|chroot|Filesystem&#039; | awk &#039;{print $3}&#039; )<br \/>\ndisk_total_size&#061;$( calc_disk ${disk_size1[&#064;]} )<br \/>\ndisk_used_size&#061;$( calc_disk ${disk_size2[&#064;]} )<\/p>\n<p>tcpctrl&#061;$( sysctl net.ipv4.tcp_congestion_control | awk -F &#039; &#039; &#039;{print $3}&#039; )<\/p>\n<p>virt_check<br \/>\n}<\/p>\n<p>print_intro() {<br \/>\nprintf &#039; Superbench.sh &#8212; https:\/\/www.oldking.net\/350.html\\\\n&#039; | tee -a $log<br \/>\nprintf &#034; Mode  : \\\\e${GREEN}%s\\\\e${PLAIN}    Version : \\\\e${GREEN}%s${PLAIN}\\\\n&#034; $mode_name 1.1.7 | tee -a $log<br \/>\nprintf &#039; Usage : wget -qO- sb.oldking.net | bash\\\\n&#039; | tee -a $log<br \/>\n}<\/p>\n<p>sharetest() {<br \/>\necho &#034; Share result:&#034; | tee -a $log<br \/>\necho &#034; \u00b7 $result_speed&#034; | tee -a $log<br \/>\nlog_preupload<br \/>\ncase $1 in<br \/>\n&#039;ubuntu&#039;)<br \/>\nshare_link&#061;&#034;https:\/\/paste.ubuntu.com&#034;$( curl -v &#8211;data-urlencode &#034;content&#064;$log_up&#034; -d &#034;poster&#061;superbench.sh&#034; -d &#034;syntax&#061;text&#034; &#034;https:\/\/paste.ubuntu.com&#034; 2&gt;&amp;1 | \\\\<br \/>\ngrep &#034;Location&#034; | awk &#039;{print $3}&#039; );;<br \/>\n&#039;haste&#039; )<br \/>\nshare_link&#061;$( curl -X POST -s -d &#034;$(cat $log)&#034; https:\/\/hastebin.com\/documents | awk -F &#039;&#034;&#039; &#039;{print &#034;https:\/\/hastebin.com\/&#034;$4}&#039; );;<br \/>\n&#039;clbin&#039; )<br \/>\nshare_link&#061;$( curl -sF &#039;clbin&#061;&lt;-&#039; https:\/\/clbin.com &lt; $log );;<br \/>\n&#039;ptpb&#039; )<br \/>\nshare_link&#061;$( curl -sF c&#061;&#064;- https:\/\/ptpb.pw\/?u&#061;1 &lt; $log );;<br \/>\nesac<\/p>\n<p>echo &#034; \u00b7 $share_link&#034; | tee -a $log<br \/>\nnext<br \/>\necho &#034;&#034;<br \/>\nrm -f $log_up<\/p>\n<p>}<\/p>\n<p>log_preupload() {<br \/>\nlog_up&#061;&#034;$HOME\/superbench_upload.log&#034;<br \/>\ntrue &gt; $log_up<br \/>\n$(cat superbench.log 2&gt;&amp;1 | sed -r &#034;s\/\\\\x1B\\\\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]\/\/g&#034; &gt; $log_up)<br \/>\n}<\/p>\n<p>cleanup() {<br \/>\nrm -f test_file_*<br \/>\nrm -rf speedtest*<br \/>\nrm -f fast_com*<br \/>\nrm -f tools.py<br \/>\nrm -f ip_json.json<br \/>\n}<\/p>\n<p>bench_all(){<br \/>\nmode_name&#061;&#034;Standard&#034;<br \/>\nabout;<br \/>\nbenchinit;<br \/>\nclear<br \/>\nnext;<br \/>\nprint_intro;<br \/>\nnext;<br \/>\nget_system_info;<br \/>\nprint_system_info;<br \/>\nip_info4;<br \/>\nnext;<br \/>\nprint_io;<br \/>\nnext;<br \/>\nprint_speedtest;<br \/>\nnext;<br \/>\nprint_end_time;<br \/>\nnext;<br \/>\ncleanup;<br \/>\nsharetest ubuntu;<br \/>\n}<\/p>\n<p>fast_bench(){<br \/>\nmode_name&#061;&#034;Fast&#034;<br \/>\nabout;<br \/>\nbenchinit;<br \/>\nclear<br \/>\nnext;<br \/>\nprint_intro;<br \/>\nnext;<br \/>\nget_system_info;<br \/>\nprint_system_info;<br \/>\nip_info4;<br \/>\nnext;<br \/>\nprint_io fast;<br \/>\nnext;<br \/>\nprint_speedtest_fast;<br \/>\nnext;<br \/>\nprint_end_time;<br \/>\nnext;<br \/>\ncleanup;<br \/>\n}<\/p>\n<p>log&#061;&#034;.\/superbench.log&#034;<br \/>\ntrue &gt; $log<br \/>\nspeedLog&#061;&#034;.\/speedtest.log&#034;<br \/>\ntrue &gt; $speedLog<\/p>\n<p>case $1 in<br \/>\n&#039;info&#039;|&#039;-i&#039;|&#039;&#8211;i&#039;|&#039;-info&#039;|&#039;&#8211;info&#039; )<br \/>\nabout;sleep 3;next;get_system_info;print_system_info;next;;<br \/>\n    &#039;version&#039;|&#039;-v&#039;|&#039;&#8211;v&#039;|&#039;-version&#039;|&#039;&#8211;version&#039;)<br \/>\nnext;about;next;;<br \/>\n   &#039;io&#039;|&#039;-io&#039;|&#039;&#8211;io&#039;|&#039;-drivespeed&#039;|&#039;&#8211;drivespeed&#039; )<br \/>\nnext;print_io;next;;<br \/>\n&#039;speed&#039;|&#039;-speed&#039;|&#039;&#8211;speed&#039;|&#039;-speedtest&#039;|&#039;&#8211;speedtest&#039;|&#039;-speedcheck&#039;|&#039;&#8211;speedcheck&#039; )<br \/>\nabout;benchinit;next;print_speedtest;next;cleanup;;<br \/>\n&#039;ip&#039;|&#039;-ip&#039;|&#039;&#8211;ip&#039;|&#039;geoip&#039;|&#039;-geoip&#039;|&#039;&#8211;geoip&#039; )<br \/>\nabout;benchinit;next;ip_info4;next;cleanup;;<br \/>\n&#039;bench&#039;|&#039;-a&#039;|&#039;&#8211;a&#039;|&#039;-all&#039;|&#039;&#8211;all&#039;|&#039;-bench&#039;|&#039;&#8211;bench&#039; )<br \/>\nbench_all;;<br \/>\n&#039;about&#039;|&#039;-about&#039;|&#039;&#8211;about&#039; )<br \/>\nabout;;<br \/>\n&#039;fast&#039;|&#039;-f&#039;|&#039;&#8211;f&#039;|&#039;-fast&#039;|&#039;&#8211;fast&#039; )<br \/>\nfast_bench;;<br \/>\n&#039;share&#039;|&#039;-s&#039;|&#039;&#8211;s&#039;|&#039;-share&#039;|&#039;&#8211;share&#039; )<br \/>\nbench_all;<br \/>\nis_share&#061;&#034;share&#034;<br \/>\nif [[ $2 &#061;&#061; &#034;&#034; ]]; then<br \/>\nsharetest ubuntu;<br \/>\nelse<br \/>\nsharetest $2;<br \/>\nfi<br \/>\n;;<br \/>\n&#039;debug&#039;|&#039;-d&#039;|&#039;&#8211;d&#039;|&#039;-debug&#039;|&#039;&#8211;debug&#039; )<br \/>\nget_ip_whois_org_name;;<br \/>\n*)<br \/>\n    bench_all;;<br \/>\nesac<\/p>\n<p>if [[  ! $is_share &#061;&#061; &#034;share&#034; ]]; then<br \/>\ncase $2 in<br \/>\n&#039;share&#039;|&#039;-s&#039;|&#039;&#8211;s&#039;|&#039;-share&#039;|&#039;&#8211;share&#039; )<br \/>\nif [[ $3 &#061;&#061; &#039;&#039; ]]; then<br \/>\nsharetest ubuntu;<br \/>\nelse<br \/>\nsharetest $3;<br \/>\nfi<br \/>\n;;<br \/>\nesac<br \/>\nfi<\/p>\n<p>\u811a\u672c\u6267\u884c\u7ed3\u679c&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424043606-6809bfb6b8dcb.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb942\u6b21\u3002\u4ee5\u4e0a\u811a\u672c\u4e3a\u4eca\u5e748\u67081\u53f7\u53d1\u5e03\u7684\uff0c\u5f53\u65f6\u662f\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\uff0c\u4f46\u73b0\u5728\u811a\u672c\u91cc\u7f51\u7edc\u901f\u5ea6\u6d4b\u8bd5py\u6587\u4ef6\u83b7\u53d6\u4e0d\u4e86\u4e86\uff0c\u6d4b\u901f\u8fd9\u5757\u529f\u80fd\u76ee\u524d\u65e0\u6cd5\u5b9e\u73b0\uff0c\u540e\u9762\u6211\u4f1a\u62bd\u65f6\u95f4\u6765\u7814\u7a76\uff0c\u5927\u5bb6\u5982\u679c\u6709\u5efa\u8bae\u4e5f\u53ef\u4ee5\u5206\u4eab\u4e0b\u3002_\u68c0\u67e5\u670d\u52a1\u5668\u6027\u80fd\u7684\u811a\u672c<\/p>\n","protected":false},"author":2,"featured_media":32469,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,395,118,44],"topic":[],"class_list":["post-32472","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-395","tag-118","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u81ea\u52a8\u5316\u8fd0\u7ef4-\u68c0\u6d4bLinux\u670d\u52a1\u5668CPU\u3001\u5185\u5b58\u3001\u8d1f\u8f7d\u3001IO\u8bfb\u5199\u3001\u673a\u623f\u5e26\u5bbd\u548c\u670d\u52a1\u5668\u7c7b\u578b\u7b49\u4fe1\u606f\u811a\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/32472.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u81ea\u52a8\u5316\u8fd0\u7ef4-\u68c0\u6d4bLinux\u670d\u52a1\u5668CPU\u3001\u5185\u5b58\u3001\u8d1f\u8f7d\u3001IO\u8bfb\u5199\u3001\u673a\u623f\u5e26\u5bbd\u548c\u670d\u52a1\u5668\u7c7b\u578b\u7b49\u4fe1\u606f\u811a\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb942\u6b21\u3002\u4ee5\u4e0a\u811a\u672c\u4e3a\u4eca\u5e748\u67081\u53f7\u53d1\u5e03\u7684\uff0c\u5f53\u65f6\u662f\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\uff0c\u4f46\u73b0\u5728\u811a\u672c\u91cc\u7f51\u7edc\u901f\u5ea6\u6d4b\u8bd5py\u6587\u4ef6\u83b7\u53d6\u4e0d\u4e86\u4e86\uff0c\u6d4b\u901f\u8fd9\u5757\u529f\u80fd\u76ee\u524d\u65e0\u6cd5\u5b9e\u73b0\uff0c\u540e\u9762\u6211\u4f1a\u62bd\u65f6\u95f4\u6765\u7814\u7a76\uff0c\u5927\u5bb6\u5982\u679c\u6709\u5efa\u8bae\u4e5f\u53ef\u4ee5\u5206\u4eab\u4e0b\u3002_\u68c0\u67e5\u670d\u52a1\u5668\u6027\u80fd\u7684\u811a\u672c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/32472.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-24T04:36:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424043603-6809bfb39a7ce.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/32472.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/32472.html\",\"name\":\"\u81ea\u52a8\u5316\u8fd0\u7ef4-\u68c0\u6d4bLinux\u670d\u52a1\u5668CPU\u3001\u5185\u5b58\u3001\u8d1f\u8f7d\u3001IO\u8bfb\u5199\u3001\u673a\u623f\u5e26\u5bbd\u548c\u670d\u52a1\u5668\u7c7b\u578b\u7b49\u4fe1\u606f\u811a\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-24T04:36:08+00:00\",\"dateModified\":\"2025-04-24T04:36:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/32472.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/32472.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/32472.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u81ea\u52a8\u5316\u8fd0\u7ef4-\u68c0\u6d4bLinux\u670d\u52a1\u5668CPU\u3001\u5185\u5b58\u3001\u8d1f\u8f7d\u3001IO\u8bfb\u5199\u3001\u673a\u623f\u5e26\u5bbd\u548c\u670d\u52a1\u5668\u7c7b\u578b\u7b49\u4fe1\u606f\u811a\u672c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u81ea\u52a8\u5316\u8fd0\u7ef4-\u68c0\u6d4bLinux\u670d\u52a1\u5668CPU\u3001\u5185\u5b58\u3001\u8d1f\u8f7d\u3001IO\u8bfb\u5199\u3001\u673a\u623f\u5e26\u5bbd\u548c\u670d\u52a1\u5668\u7c7b\u578b\u7b49\u4fe1\u606f\u811a\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/32472.html","og_locale":"zh_CN","og_type":"article","og_title":"\u81ea\u52a8\u5316\u8fd0\u7ef4-\u68c0\u6d4bLinux\u670d\u52a1\u5668CPU\u3001\u5185\u5b58\u3001\u8d1f\u8f7d\u3001IO\u8bfb\u5199\u3001\u673a\u623f\u5e26\u5bbd\u548c\u670d\u52a1\u5668\u7c7b\u578b\u7b49\u4fe1\u606f\u811a\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb942\u6b21\u3002\u4ee5\u4e0a\u811a\u672c\u4e3a\u4eca\u5e748\u67081\u53f7\u53d1\u5e03\u7684\uff0c\u5f53\u65f6\u662f\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\uff0c\u4f46\u73b0\u5728\u811a\u672c\u91cc\u7f51\u7edc\u901f\u5ea6\u6d4b\u8bd5py\u6587\u4ef6\u83b7\u53d6\u4e0d\u4e86\u4e86\uff0c\u6d4b\u901f\u8fd9\u5757\u529f\u80fd\u76ee\u524d\u65e0\u6cd5\u5b9e\u73b0\uff0c\u540e\u9762\u6211\u4f1a\u62bd\u65f6\u95f4\u6765\u7814\u7a76\uff0c\u5927\u5bb6\u5982\u679c\u6709\u5efa\u8bae\u4e5f\u53ef\u4ee5\u5206\u4eab\u4e0b\u3002_\u68c0\u67e5\u670d\u52a1\u5668\u6027\u80fd\u7684\u811a\u672c","og_url":"https:\/\/www.wsisp.com\/helps\/32472.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-24T04:36:08+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424043603-6809bfb39a7ce.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"13 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/32472.html","url":"https:\/\/www.wsisp.com\/helps\/32472.html","name":"\u81ea\u52a8\u5316\u8fd0\u7ef4-\u68c0\u6d4bLinux\u670d\u52a1\u5668CPU\u3001\u5185\u5b58\u3001\u8d1f\u8f7d\u3001IO\u8bfb\u5199\u3001\u673a\u623f\u5e26\u5bbd\u548c\u670d\u52a1\u5668\u7c7b\u578b\u7b49\u4fe1\u606f\u811a\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-24T04:36:08+00:00","dateModified":"2025-04-24T04:36:08+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/32472.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/32472.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/32472.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u81ea\u52a8\u5316\u8fd0\u7ef4-\u68c0\u6d4bLinux\u670d\u52a1\u5668CPU\u3001\u5185\u5b58\u3001\u8d1f\u8f7d\u3001IO\u8bfb\u5199\u3001\u673a\u623f\u5e26\u5bbd\u548c\u670d\u52a1\u5668\u7c7b\u578b\u7b49\u4fe1\u606f\u811a\u672c"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/32472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=32472"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/32472\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/32469"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=32472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=32472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=32472"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=32472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}