{"id":353,"date":"2011-06-09T15:49:09","date_gmt":"2011-06-09T15:49:09","guid":{"rendered":""},"modified":"2013-02-07T12:10:28","modified_gmt":"2013-02-07T04:10:28","slug":"linux%e6%9f%a5%e7%9c%8bcpu%ef%bc%8c%e5%86%85%e5%ad%98%e7%ad%89%e4%bf%a1%e6%81%af","status":"publish","type":"post","link":"https:\/\/ybzx.vip\/wp\/?p=353","title":{"rendered":"linux\u67e5\u770bCPU\uff0c\u5185\u5b58\u7b49\u4fe1\u606f"},"content":{"rendered":"<p>Linux\u91cc\uff0c\u786c\u4ef6\u4fe1\u606f\u5728\/proc\u76ee\u5f55\u4e0b\u3002\u4e0b\u9762\u5217\u51fa\u5e38\u7528\u67e5\u8be2\u3002<\/p>\n<p>\u6d4b\u8bd5\u673a\u5668\u7684\u786c\u4ef6\u4fe1\u606f\uff1a <\/p>\n<p>\u67e5\u770bCPU\u4fe1\u606f\uff08\u578b\u53f7\uff09 <br \/># cat \/proc\/cpuinfo &#124; grep name &#124; cut -f2 -d: &#124; uniq -c <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8&nbsp;&nbsp;Intel(R) Xeon(R) CPU&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;E5410&nbsp;&nbsp; @ 2.33GHz <br \/>(\u770b\u5230\u67098\u4e2a\u903b\u8f91CPU, \u4e5f\u77e5\u9053\u4e86CPU\u578b\u53f7) <\/p>\n<p># cat \/proc\/cpuinfo &#124; grep physical &#124; uniq -c <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4 physical id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 0 <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4 physical id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: 1 <br \/>(\u8bf4\u660e\u5b9e\u9645\u4e0a\u662f\u4e24\u98974\u6838\u7684CPU) <\/p>\n<p># getconf LONG_BIT <br \/>&nbsp;&nbsp; 32 <br \/>(\u8bf4\u660e\u5f53\u524dCPU\u8fd0\u884c\u572832bit\u6a21\u5f0f\u4e0b, \u4f46\u4e0d\u4ee3\u8868CPU\u4e0d\u652f\u630164bit) <\/p>\n<p># cat \/proc\/cpuinfo &#124; grep flags &#124; grep &#8216; lm &#8216; &#124; wc -l <br \/>&nbsp;&nbsp; 8 <br \/>(\u7ed3\u679c\u5927\u4e8e0, \u8bf4\u660e\u652f\u630164bit\u8ba1\u7b97. lm\u6307long mode, \u652f\u6301lm\u5219\u662f64bit) <\/p>\n<p>\u518d\u5b8c\u6574\u770bcpu\u8be6\u7ec6\u4fe1\u606f, \u4e0d\u8fc7\u5927\u90e8\u5206\u6211\u4eec\u90fd\u4e0d\u5173\u5fc3\u800c\u5df2. <br \/># dmidecode &#124; grep &#8216;Processor Information&#8217; <\/p>\n<p>\u67e5\u770b\u5185 \u5b58\u4fe1\u606f <br \/># cat \/proc\/meminfo <\/p>\n<p># uname -a <br \/>Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU\/Linux <br \/>(\u67e5\u770b\u5f53\u524d\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u4fe1\u606f) <\/p>\n<p># cat \/etc\/issue &#124; grep Linux <br \/>Red Hat Enterprise Linux AS release 4 (Nahant Update 5) <br \/>(\u67e5\u770b\u5f53\u524d\u64cd\u4f5c\u7cfb\u7edf\u53d1\u884c\u7248\u4fe1\u606f) <\/p>\n<p>\u67e5\u770b\u673a\u5668\u578b\u53f7 <br \/># dmidecode &#124; grep &#8220;Product Name&#8221;&nbsp;&nbsp;<\/p>\n<p>\u67e5\u770b\u7f51\u5361\u4fe1\u606f <br \/># dmesg &#124; grep -i eth<\/p>\n<p>\u539f\u6587\u51fa\u5904\uff1ahttp:\/\/www.51testing.com\/?uid-225738-action-viewspace-itemid-210333 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u91cc\uff0c\u786c\u4ef6\u4fe1\u606f\u5728\/proc\u76ee\u5f55\u4e0b\u3002\u4e0b\u9762\u5217\u51fa\u5e38\u7528\u67e5\u8be2\u3002 \u6d4b\u8bd5\u673a\u5668\u7684\u786c\u4ef6\u4fe1\u606f\uff1a \u67e5\u770bCPU\u4fe1\u606f\uff08\u578b\u53f7\uff09 # &hellip; <a href=\"https:\/\/ybzx.vip\/wp\/?p=353\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">linux\u67e5\u770bCPU\uff0c\u5185\u5b58\u7b49\u4fe1\u606f<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[78],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-network","tag-linux"],"_links":{"self":[{"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=353"}],"version-history":[{"count":0,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/posts\/353\/revisions"}],"wp:attachment":[{"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}