{"id":145907,"date":"2020-08-18T06:42:00","date_gmt":"2020-08-17T22:42:00","guid":{"rendered":"http:\/\/4563.org\/?p=145907"},"modified":"2020-08-18T06:42:00","modified_gmt":"2020-08-17T22:42:00","slug":"%e3%80%90%e8%a1%8c%e4%b8%9a%e7%a6%81%e5%bf%8c%ef%bc%9f%e3%80%91%e5%b0%8f%e9%b8%a1%e7%9a%84cpu%e8%b7%91%e5%88%86%e5%a4%9a%e5%b0%91%e7%ae%97%e5%90%88%e6%a0%bc%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=145907","title":{"rendered":"\u3010\u884c\u4e1a\u7981\u5fcc\uff1f\u3011\u5c0f\u9e21\u7684CPU\u8dd1\u5206\u591a\u5c11\u7b97\u5408\u683c\uff1f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>CloudRaft<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u3010\u884c\u4e1a\u7981\u5fcc\uff1f\u3011\u5c0f\u9e21\u7684CPU\u8dd1\u5206\u591a\u5c11\u7b97\u5408\u683c\uff1f<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 CloudRaft \u4e8e 2020-8-17 22:23 \u7f16\u8f91 <\/p>\n<p> \u4e0d\u540c\u5546\u5bb6\u5bf9\u4e8e\u5c0f\u9e21CPU\u7684\u9650\u5236\u5dee\u522b\u633a\u5927\u7684\uff0c\u5c31\u7b97\u662f\u6211\u4eec\u81ea\u5df1\u5bf9\u4e8eCPU\u7684\u9650\u5236\u4e5f\u662f\u6839\u636e\u4ea7\u54c1\u7684\u5b9a\u4f4d\u800c\u5b9a\u7684\u3002<\/p>\n<p>  \u4e5f\u6ca1\u5565\u597d\u907f\u8bb3\u7684\uff0c\u6211\u4eec\u7684EPYC\u7684\u9650\u5236\u662f98%\uff0cKVM\u662f95%\uff0cVDS\u662f80%\uff0cRAM\u662f50%\uff0cNAT\u5c0f\u9e21\u662f30%<br \/>  \u540e\u9762\u6211\u4f1a\u9010\u6b65\u628a\u5404\u4e2a\u9650\u5236\u4e0b\u7684sysbench\u8dd1\u5206\u7ed3\u679c\u548c\u5bbf\u4e3b\u673a\u7684\u60c5\u51b5\u53d1\u51fa\u6765\uff0c\u4f9b\u5927\u5bb6\u53c2\u8003<\/p>\n<p>  \u5927\u5bb6\u4e5f\u53ef\u4ee5\u6d4b\u6d4b\u770b\u81ea\u5df1\u5c0f\u9e21\u7684\u8dd1\u5206\u7ed3\u679c\uff0c\u53d1\u5728\u8fd9\u91cc\uff0c\u884c\u4e1a\u900f\u660e\u624d\u6709\u5229\u4e8e\u884c\u4e1a\u7684\u53d1\u5c55<br \/>  \u4e00\u6b21\u8dd1\u5206\u8bf4\u660e\u4e0d\u4e86\u4ec0\u4e48\uff0c\u53ef\u4ee5\u6709\u4e8b\u6ca1\u4e8b\u8dd1\u4e2a\u5206\uff0c\u6837\u672c\u91cf\u5927\u4e86\u5c31\u6709\u4ee3\u8868\u6027\u4e86\uff08\u56de\u590d\u90fd\u6574\u7406\u5230\u7b2c\u4e8c\u9875\u4e86\uff0c\u53ef\u4ee5\u770b\u770b\uff09<\/p>\n<p>  CentOS\uff1a<br \/>  yum install epel-release -y<br \/>  yum install sysbench -y<br \/>  sysbench cpu run<\/p>\n<p>  Ubuntu\uff1a<br \/>  apt-get install sysbench<br \/>  sysbench cpu run<\/p>\n<p>  \u591a\u7ebf\u7a0b\u7684\u5c0f\u9e21\u8bf7\u52a0\u4e0a\u7ebf\u7a0b\u53c2\u6570\u8fdb\u884c\u6d4b\u8bd5\uff08\u66ff\u6362N\u4e3a\u81ea\u5df1\u7684\u6838\u6570\uff09<br \/>  &#8211;num-threads=N<\/p>\n<p>  \u53e6\u5916\u4e5f\u53ef\u4ee5\u53c2\u8003unixbench\uff08\u6bd4\u8f83\u8017\u65f6\uff0c\u6d4b\u8bd5\u66f4\u52a0\u504f\u5411\u5168\u6027\u80fd\uff09\uff1a<br \/>  wget &#8211;no-check-certificate https:\/\/github.com\/zq\/unixbench\/raw\/master\/unixbench.sh<br \/>  chmod +x unixbench.sh<br \/>  .\/unixbench.sh<\/p>\n<p>  &#8212;&#8212;-\u7b2c\u4e8c\u9875\u4e3a\u5404\u4f4d\u56de\u590d\u6c47\u603b&#8212;&#8212;&#8211;<br \/>  &#8212;&#8212;-\u5176\u540e\u4e3a\u6211\u4eec\u7684\u5b9e\u9645\u6d4b\u8bc4&#8212;&#8212;&#8211;<\/p>\n<p>  011\u697c@king51 \/ 90qh \/ 258.71<br \/>  011\u697c@king51 \/ bandwagonhost \/ 781.16<br \/>  012\u697c@enulann \/ \u4e91\u7b4f-KVM \/ 964.56<br \/>  013\u697c@enulann \/ \u4e91\u7b4f-NAT \/ 138.45<br \/>  014\u697c@enulann \/ \u817e\u8baf\u4e91-\u8f7b\u91cf \/ 858.41<br \/>  015\u697c@Zxwax \/ greencloudvps \/ 861.03<br \/>  015\u697c@Zxwax \/ iON \/ 789.12<br \/>  015\u697c@Zxwax \/ CloudCone \/ 428.16<br \/>  015\u697c@Zxwax \/ \u817e\u8baf\u4e91 \/ 942.58<br \/>  015\u697c@Zxwax \/ \u817e\u8baf\u4e91-\u8f7b\u91cf \/ 906.46<br \/>  015\u697c@Zxwax \/ PacificRack-7.25 \/ 587.91<br \/>  017\u697c@yimi233 \/ \u4e91\u7b4f-KVM \/ 954.91<br \/>  017\u697c@yimi233 \/ \u67d0NAT \/ 518.05<br \/>  017\u697c@yimi233 \/ ikoula-3990X \/ 2278.33<br \/>  018\u697c@micms \/ \u672a\u77e5 \/ 1480.20<br \/>  021\u697c@yizhuohao7 \/ Virmach-\u6c34\u725b \/ 959.01<br \/>  021\u697c@ApkB \/ Virmach \/ 556.06<\/p>\n<p>  \u6d4b\u8bc41 KVM-EU 1\u68382G<br \/>  \u5bbf\u4e3b\u673aCPU\uff1aE5-1650v3<br \/>  \u5bbf\u4e3b\u673a\u9650\u5236\uff1a95%<br \/>  \u8d85\u552e\u60c5\u51b5\uff1a\u7ea61:4<\/p>\n<p>  # sysbench cpu run<br \/>  sysbench 1.0.17 (using system LuaJIT 2.0.4)<\/p>\n<p>  Running the test with following options:<br \/>  Number of threads: 1<br \/>  Initializing random number generator from current time<\/p>\n<p>  Prime numbers limit: 10000<\/p>\n<p>  Initializing worker threads&#8230;<\/p>\n<p>  Threads started!<\/p>\n<p>  CPU speed:<br \/>  &nbsp; &nbsp; events per second:&nbsp; &nbsp;951.24<\/p>\n<p>  General statistics:<br \/>  &nbsp; &nbsp; total time:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;10.0002s<br \/>  &nbsp; &nbsp; total number of events:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;9514<\/p>\n<p>  Latency (ms):<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;min:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;0.93<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;avg:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;1.05<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;max:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;6.45<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;95th percentile:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;1.12<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;sum:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;9992.38<\/p>\n<p>  Threads fairness:<br \/>  &nbsp; &nbsp; events (avg\/stddev):&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;9514.0000\/0.00<br \/>  &nbsp; &nbsp; execution time (avg\/stddev):&nbsp; &nbsp;9.9924\/0.00<\/p>\n<p>  \u6d4b\u8bc42 NAT-EU 1\u68381G<br \/>  \u5bbf\u4e3b\u673aCPU\uff1aE5-1650v3<br \/>  \u5bbf\u4e3b\u673a\u9650\u5236\uff1a30%<br \/>  \u8d85\u552e\u60c5\u51b5\uff1a\u7ea61:9<\/p>\n<p>  # sysbench cpu run<br \/>  sysbench 1.0.17 (using system LuaJIT 2.0.4)<\/p>\n<p>  Running the test with following options:<br \/>  Number of threads: 1<br \/>  Initializing random number generator from current time<\/p>\n<p>  Prime numbers limit: 10000<\/p>\n<p>  Initializing worker threads&#8230;<\/p>\n<p>  Threads started!<\/p>\n<p>  CPU speed:<br \/>  &nbsp; &nbsp; events per second:&nbsp; &nbsp;135.34<\/p>\n<p>  General statistics:<br \/>  &nbsp; &nbsp; total time:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;10.0042s<br \/>  &nbsp; &nbsp; total number of events:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;1355<\/p>\n<p>  Latency (ms):<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;min:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;0.92<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;avg:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;7.37<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;max:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;25.89<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;95th percentile:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;11.04<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;sum:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;9983.19<\/p>\n<p>  Threads fairness:<br \/>  &nbsp; &nbsp; events (avg\/stddev):&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;1355.0000\/0.00<br \/>  &nbsp; &nbsp; execution time (avg\/stddev):&nbsp; &nbsp;9.9832\/0.00<\/p>\n<p>  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>van<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e91\u7b4f\u6211\u4e00\u76f4\u5370\u8c61\u633a\u597d\uff0c\u5c24\u5176\u662f\u6311\u5254\u7684mjj\u90fd\u6ca1\u4ec0\u4e48\u6495\u903c\u7684\u60c5\u51b5\u4e0b(\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u55f7\u55f7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7b49\u4f1a\u56de\u6765\u8d34\u5206\u6570<\/p>\n<p>  \u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>laogui<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5148\u5173\u6ce8\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>403_Forbidden<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u53c2\u89c2\u4e00\u4e0b\u3002:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>micto<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 micto \u4e8e 2020-8-17 21:28 \u7f16\u8f91 <\/p>\n<p> yc010t \u6211\u63a8\u8350UnixBench\u8dd1\u5206\uff0cVultr\u539f\u5148\u4e5f\u662f\u6807\u7684UnixBench\u8dd1\u5206\uff0c\u73b0\u5728\u6539Geekbench\u7684\u8dd1\u5206\u4e86\u3002<\/p>\n<p>  https:\/\/i.loli.net\/2020\/08\/17\/NYfaE56nChBgLWx.png<\/p>\n<p>  http:\/\/www.unixbench.org\/<\/p>\n<p>  1. \u8fa3\u9e21PR\uff0c\u5355\u68381G\uff1a\u6700\u5f00\u59cb300\u591a\u5206\uff0c\u540e\u9762\u8dd1\u5206500\u51fa\u5934\u3002<br \/>  2. \u642c\u74e6\u5de5\u53cc11\u6b3e\uff0c\u53cc\u68382G\uff0c\u5355\u6838881\/\u53cc\u68381337<br \/>  3. \u7ed9\u540c\u4e8b\u63a8\u8350\u7684Offer\u533aVPS\uff0c\u534a\u7ffb\u8f66\u4e86\uff0c\u8dd1\u5206\u5355\u6838285\/\u53cc\u6838536  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>nico<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tVDS\u600e\u4e48\u6bd4KVM\u4f4e\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>gzchenjz<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e00\u65f6\u7684\u8dd1\u5206\u8bf4\u660e\u4e0d\u4e86\u4ec0\u4e48\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>tir<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u633a\u597d\u7684\u554a\u94c1\u6c41 \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u7231\u56e0\u65af\u5766<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8def\u8fc7\u7ed1\u5b9a\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>CloudRaft \u5927\u4f6c\u6709\u8bdd\u8bf4 :&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/145907"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=145907"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/145907\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=145907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=145907"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=145907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}