﻿{"id":1157,"date":"2018-01-11T09:59:49","date_gmt":"2018-01-11T01:59:49","guid":{"rendered":"http:\/\/www.oracle.name\/?p=1157"},"modified":"2020-06-18T16:26:46","modified_gmt":"2020-06-18T08:26:46","slug":"linux%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e6%9f%a5%e7%9c%8bcpu%e7%9b%b8%e5%85%b3%e4%bf%a1%e6%81%af","status":"publish","type":"post","link":"https:\/\/www.llku.com\/?p=1157","title":{"rendered":"Linux\u64cd\u4f5c\u7cfb\u7edf\u67e5\u770bCPU\u53ca\u7cfb\u7edf\u7248\u672c\u76f8\u5173\u4fe1\u606f"},"content":{"rendered":"<p>\u4e00\u3001CPU\u76f8\u5173\u4fe1\u606f<\/p>\n<p>\u67e5\u770bCPU\u4fe1\u606f\uff08\u578b\u53f7\uff09<br \/>\ncat \/proc\/cpuinfo | grep name | cut -f2 -d: | uniq -c<\/p>\n<p># \u603b\u6838\u6570 = \u7269\u7406CPU\u4e2a\u6570 X \u6bcf\u9897\u7269\u7406CPU\u7684\u6838\u6570<br \/>\n# \u603b\u903b\u8f91CPU\u6570 = \u7269\u7406CPU\u4e2a\u6570 X \u6bcf\u9897\u7269\u7406CPU\u7684\u6838\u6570 X \u8d85\u7ebf\u7a0b\u6570<\/p>\n<p># \u67e5\u770b\u7269\u7406CPU\u4e2a\u6570<br \/>\ncat \/proc\/cpuinfo| grep &#8220;physical id&#8221;| sort| uniq| wc -l<\/p>\n<p># \u67e5\u770b\u6bcf\u4e2a\u7269\u7406CPU\u4e2dcore\u7684\u4e2a\u6570(\u5373\u6838\u6570)<br \/>\ncat \/proc\/cpuinfo| grep &#8220;cpu cores&#8221;| uniq<\/p>\n<p># \u67e5\u770b\u903b\u8f91CPU\u7684\u4e2a\u6570<br \/>\ncat \/proc\/cpuinfo| grep &#8220;processor&#8221;| wc -l<\/p>\n<p>\u603b\u7ed3\uff1aOracle EBS\u6807\u51c6\u7ba1\u7406\u5668\u7684\u5de5\u4f5c\u73ed\u6b21\u4e0b\u7684\u6d41\u7a0b\u6570\u8bbe\u7f6e\u6570\uff08\u6570\u636e\u5e93\u8282\u70b9\u670d\u52a1\u5668\uff09\u4e3a\u4e0d\u8d85\u8fc7\u903b\u8f91CPU\u4e2a\u6570\u7684\u4e24\u500d\uff0c\u6bd4\u5982\u67e5\u8be2\u7ed3\u679c\u4e3a8\uff0c\u6700\u5927\u8bbe\u7f6e16\uff0c\u56e0\u4e3a\u6240\u6709\u8fdb\u7a0b\u90fd\u9700\u8981\u5728CPU\u4e0a\u6392\u961f\u5904\u7406\uff0c\u591a\u4e86\u4e5f\u65e0\u7528\uff1b\u4f46\u662f\u5982\u679c\u8bbe\u7f6e\u6570\u8fc7\u5c0f\uff0c\u53c8\u4f1a\u9020\u6210CPU\u6d6a\u8d39\u3002<\/p>\n<p>\u4e8c\u3001\u64cd\u4f5c\u7cfb\u7edf\u5185\u5b58\u5927\u5c0f\u4fe1\u606f<\/p>\n<p>cat \/proc\/meminfo | grep MemTotal<\/p>\n<p>\u4e09\u3001\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u76f8\u5173\u4fe1\u606f<\/p>\n<p>cat \/etc\/issue<br \/>\nOracle Linux Server release 6.8<\/p>\n<p>cat \/etc\/redhat-release<br \/>\nRed Hat Enterprise Linux Server release 6.8 (Santiago)<\/p>\n<p>cat \/proc\/version<br \/>\nLinux version 2.6.32-642.el6.x86_64 (mockbuild@x86-ol6-builder-05)<br \/>\n(gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) ) #1 SMP Tue May<br \/>\n10 12:00:56 PDT 2016<\/p>\n<p>uname -a<br \/>\nLinux r3115035596-1 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 12:00:56 PDT 2016 x86_64 x86_64 x86_64 GNU\/Linux<\/p>\n<p>lsb_release -a<br \/>\nLSB Version: \u00a0 \u00a0:base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch<br \/>\nDistributor ID: OracleServer<br \/>\nDescription: \u00a0 \u00a0Oracle Linux Server release 6.8<br \/>\nRelease: \u00a0 \u00a0 \u00a0 \u00a06.8<br \/>\nCodename: \u00a0 \u00a0 \u00a0 n\/a<\/p>\n<p>\u56db\u3001SWAP\u7a7a\u95f4<\/p>\n<p>\u4f46\u6211\u4eec\u5e73\u65f6\u5b89\u88c5\u7cfb\u7edf\u65f6\uff0c\u9ed8\u8ba4\u90fd\u5206\u5185\u5b58\u76842\u500d.<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td align=\"center\"><strong>\u7269\u7406\u5185\u5b58<\/strong><\/td>\n<td align=\"center\"><strong>\u4ea4\u6362\u5206\u533a\uff08SWAP\uff09<\/strong><\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><strong>&lt;= 4G<\/strong><\/td>\n<td align=\"center\"><strong>\u81f3\u5c114G<\/strong><\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><strong>4~16G<\/strong><\/td>\n<td align=\"center\"><strong>\u81f3\u5c118G<\/strong><\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><strong>16G~64G<\/strong><\/td>\n<td align=\"center\"><strong>\u81f3\u5c1116G<\/strong><\/td>\n<\/tr>\n<tr>\n<td align=\"center\"><strong>64G~256G<\/strong><\/td>\n<td align=\"center\"><strong>\u81f3\u5c1132G<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<article><!--StartFragment-->#\u00a0<a title=\"Linux\u77e5\u8bc6\u5e93\" href=\"http:\/\/lib.csdn.net\/base\/linux\" target=\"_blank\" rel=\"noopener noreferrer\">Linux<\/a>\u00a0\u4e0b \u53d6\u8fdb\u7a0b\u5360\u7528 cpu \u6700\u9ad8\u7684\u524d10\u4e2a\u8fdb\u7a0b<br \/>\nps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head<\/p>\n<p># linux \u4e0b \u53d6\u8fdb\u7a0b\u5360\u7528\u5185\u5b58(MEM)\u6700\u9ad8\u7684\u524d10\u4e2a\u8fdb\u7a0b<br \/>\nps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head<\/p>\n<p><!--EndFragment--><\/p>\n<\/article>\n<p>https:\/\/blog.csdn.net\/bingqingsuimeng\/article\/details\/51858858<\/p>\n<p>https:\/\/linux.cn\/article-211-1.html<\/p>\n<p>https:\/\/blog.csdn.net\/sunqp0208\/article\/details\/41343443<\/p>\n<p>\u67e5\u8be2ebs jdk\u7248\u672c\uff1a<\/p>\n<p>sh -c &#8220;`awk -F= &#8216;$1 ~ \/^JSERVJAVA.*$\/ {print $2}&#8217; $ADMIN_SCRIPTS_HOME\/java.sh` -version;&#8221;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001CPU\u76f8\u5173\u4fe1\u606f \u67e5\u770bCPU\u4fe1\u606f\uff08\u578b\u53f7\uff09 cat \/proc\/cpuinfo | grep name | c &hellip; <a href=\"https:\/\/www.llku.com\/?p=1157\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Linux\u64cd\u4f5c\u7cfb\u7edf\u67e5\u770bCPU\u53ca\u7cfb\u7edf\u7248\u672c\u76f8\u5173\u4fe1\u606f<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[31],"tags":[186],"_links":{"self":[{"href":"https:\/\/www.llku.com\/index.php?rest_route=\/wp\/v2\/posts\/1157"}],"collection":[{"href":"https:\/\/www.llku.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.llku.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.llku.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.llku.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1157"}],"version-history":[{"count":11,"href":"https:\/\/www.llku.com\/index.php?rest_route=\/wp\/v2\/posts\/1157\/revisions"}],"predecessor-version":[{"id":1781,"href":"https:\/\/www.llku.com\/index.php?rest_route=\/wp\/v2\/posts\/1157\/revisions\/1781"}],"wp:attachment":[{"href":"https:\/\/www.llku.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.llku.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.llku.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}