{"id":197,"date":"2010-08-26T16:51:02","date_gmt":"2010-08-26T08:51:02","guid":{"rendered":"http:\/\/www.ipcpu.com\/?p=197"},"modified":"2010-08-26T16:51:02","modified_gmt":"2010-08-26T08:51:02","slug":"linux-cpu-info","status":"publish","type":"post","link":"https:\/\/c.ipcpu.com\/2010\/08\/linux-cpu-info\/","title":{"rendered":"Linux\u5b66\u4e60\u7b14\u8bb0\u4e4b\/proc\/cpuinfo\u4fe1\u606f"},"content":{"rendered":"

cat \/proc\/cpuinfo \u53ef\u4ee5\u67e5\u770bCPU\u7684\u786c\u4ef6\u4fe1\u606f\uff0c<\/p>\n

\u5982\u4e0b\u4e3a\u4e00\u53f0\u53ccCPU\u4e3b\u673a<\/p>\n

[root@s2.ipcpu.com ~]# cat \/proc\/cpuinfo
\nprocessor<\/strong>\u00a0 \u00a0 \u00a0\u00a0\u00a0: 0<\/strong>
\nvendor_id : GenuineIntel
\ncpu family : 6
\nmodel : 23
\nmodel name : Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
\nstepping : 10
\ncpu MHz : 2493.749
\ncache size : 6144 KB
\nphysical id<\/strong>\u00a0 \u00a0\u00a0\u00a0: 0<\/strong>
\nsiblings : 4
\ncore id : 0
\ncpu cores : 4
\napicid : 0
\nfpu : yes
\nfpu_exception : yes
\ncpuid level : 13
\nwp : yes
\nflags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
\nclflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor
\nds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm
\nbogomips : 4987.49
\nclflush size : 64
\ncache_alignment : 64
\naddress sizes : 38 bits physical, 48 bits virtual
\npower management:<\/span><\/p>\n

\u7565^\u2026\u2026<\/p>\n

processor<\/strong>\u00a0 \u00a0 \u00a0\u00a0\u00a0: 7<\/strong>\u00a0\u00a0######\u8868\u793a\u5185\u6838\u6570\u4ece0-7
\n<\/span><\/strong>vendor_id : GenuineIntel
\ncpu family : 6
\nmodel : 23
\nmodel name : Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
\nstepping : 10
\ncpu MHz : 2493.749
\ncache size : 6144 KB
\nphysical id<\/strong>\u00a0 \u00a0\u00a0\u00a0: 1<\/strong>\u00a0<\/span>##########\u8868\u793aCPU\u6570\u91cf\u4ece0-1\uff0c\u4e5f\u6709\u4e9b\u4e0d\u662f0\uff0c1\u4f46\u540c\u4e00\u4e2aCPU<\/strong><\/span>\u00a0\u00a0physical id\u4e00\u6837<\/strong><\/span>
\nsiblings : 4
\ncore id : 3
\ncpu cores : 4
\napicid : 7
\nfpu : yes
\nfpu_exception : yes
\ncpuid level : 13
\nwp : yes
\nflags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
\nclflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor
\nds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm
\nbogomips : 4987.52
\nclflush size : 64
\ncache_alignment : 64
\naddress sizes : 38 bits physical, 48 bits virtual
\npower management:<\/p>\n

[root@s2.ipcpu.com ~]###\u8be5\u673a2\u9897CPU\u4e00\u51718\u4e2a\u6838
\n[root@s2.ipcpu.com ~]# top ####top\u76d1\u63a7\u65f6\u4f1a\u5217\u51fa\u6240\u6709\u7684CPU\u6838\u5fc3\u4f7f\u7528\u91cf<\/p>\n

top \u2013 21:56:35 up 106 days, 10:43, 1 user, load average: 0.33, 0.24, 0.19
\nTasks: 269 total, 2 running, 267 sleeping, 0 stopped, 0 zombie
\nCpu0\u00a0<\/span><\/strong>: 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
\nCpu1\u00a0<\/span><\/strong>: 0.0%us, 0.0%sy, 0.0%ni, 99.3%id, 0.7%wa, 0.0%hi, 0.0%si, 0.0%st
\n\u7565\u2026\u2026
\nCpu7<\/strong>\u00a0<\/span>: 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
\nMem: 8174016k total, 8118624k used, 55392k free, 142976k buffers
\nSwap: 2096472k total, 132k used, 2096340k free, 5661888k cached<\/p>\n

\u4e0b\u9762\u662f\u5355CPU-AMD\u4e3b\u673a
\n<\/strong>[root@s6.ipcpu.com ~]# cat \/proc\/cpuinfo
\nprocessor : 0
\nvendor_id : AuthenticAMD
\ncpu family : 15
\nmodel : 5
\nmodel name : AMD Opteron(tm) Processor 246
\nstepping : 10
\ncpu MHz : 1994.376
\ncache size : 1024 KB
\nfpu : yes
\nfpu_exception : yes
\ncpuid level : 1
\nwp : yes
\nflags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
\nclflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
\nbogomips : 3994.34
\nTLB size : 1088 4K pages
\nclflush size : 64
\ncache_alignment : 64
\naddress sizes : 40 bits physical, 48 bits virtual
\npower management: ts fid vid ttp<\/p>\n

[root@s6.ipcpu.com ~]#
\n\u53e6\u5916\u591a\u6838\u7684CPU\u5728\u4f7f\u7528top\u65f6\uff0c\u4e0d\u4e00\u5b9a\u80fd\u663e\u793a\u6240\u6709\u6838\u5fc3\u7684\u4f7f\u7528\u60c5\u51b5\uff0c\u8fd9\u53ef\u80fd\u662f\u53d7\u523032\u4f4d\u621664\u4f4d\u7cfb\u7edf\u7684\u5f71\u54cd\uff0c\u8fd8\u6ca1\u8be6\u7ec6\u6d4b\u8bd5\u3002<\/p>\n

\u5176\u4ed6\u7684\u4fe1\u606f\u8fd8\u4e0d\u662f\u5f88\u61c2\uff0c\u5148\u653e\u7740\u5427~<\/p>\n

\u2460\u7269\u7406cpu\u4e2a\u6570:
\n[root@localhost ~]# cat \/proc\/cpuinfo | grep \u201cphysical id\u201d | sort | uniq | wc -l
\n2
\n\u2461\u6bcf\u4e2a\u7269\u7406cpu\u4e2dcore\u7684\u4e2a\u6570(\u5373\u6838\u6570)
\n[root@localhost ~]# cat \/proc\/cpuinfo | grep \u201ccpu cores\u201d | uniq
\ncpu cores : 4
\n\u2462\u6bcf\u4e2a\u7269\u7406cpu\u4e2d\u903b\u8f91cpu(\u53ef\u80fd\u662fcore\u3001threads\u6216both)\u7684\u4e2a\u6570
\n[root@localhost ~]# cat \/proc\/cpuinfo | grep \u201csiblings\u201d | uniq
\nsiblings : 8<\/span><\/p>\n

\u53c2\u8003\u8d44\u6599\uff1a<\/span><\/p>\n

http:\/\/hi.baidu.com\/yuhongchun027\/blog\/item\/0afba7da4b4e75d0b6fd48b5.html<\/p>\n

\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aIPCPU-\u7f51\u7edc\u4e4b\u8def<\/a> » Linux\u5b66\u4e60\u7b14\u8bb0\u4e4b\/proc\/cpuinfo\u4fe1\u606f<\/a><\/p>","protected":false},"excerpt":{"rendered":"

cat \/proc\/cpuinfo \u53ef\u4ee5\u67e5\u770bCPU\u7684\u786c\u4ef6\u4fe1\u606f\uff0c \u5982\u4e0b\u4e3a\u4e00\u53f0\u53ccCPU\u4e3b\u673a [root@s2.ipcpu.com ~]# cat \/proc\/cpuinfo processor\u00a0 \u00a0 \u00a0\u00a0\u00a0: 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5420 @ 2.50GHz stepping : 10 cpu MHz : 2493.749 cache size : 6144 KB physical id\u00a0 \u00a0\u00a0\u00a0: 0 siblings : 4 core id : 0 cpu […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"_links":{"self":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/197"}],"collection":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/comments?post=197"}],"version-history":[{"count":0,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/197\/revisions"}],"wp:attachment":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/media?parent=197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/categories?post=197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/tags?post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}