View CPU information in Linux

Source: Internet
Author: User

Check the memory information, CAT/proc/meminfo. Similarly, check the CPU information. CAT/proc/cpuinfo sometimes has such questions. For example, if the 4-core CPU is a 2-core CPU * dual-core, or 1 CPU * quad core? There is a simple method: the number of processor, the number of cores, and the number of CPUs, depending on the physical ID + 1 of the last Processor

For example:

processor       : 0vendor_id       : GenuineIntelcpu family      : 6model           : 23model name      : Pentium(R) Dual-Core  CPU      E5300  @ 2.60GHzstepping        : 10cpu MHz         : 2593.270cache size      : 2048 KBphysical id     : 0siblings        : 2core id         : 0cpu cores       : 2apicid          : 0initial apicid  : 0fpu             : yesfpu_exception   : yescpuid level     : 13wp              : yesflags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm dts tpr_shadow vnmi flexprioritybogomips        : 5186.54clflush size    : 64cache_alignment : 64address sizes   : 36 bits physical, 48 bits virtualpower management:processor       : 1vendor_id       : GenuineIntelcpu family      : 6model           : 23model name      : Pentium(R) Dual-Core  CPU      E5300  @ 2.60GHzstepping        : 10cpu MHz         : 2593.270cache size      : 2048 KBphysical id : 0siblings        : 2core id         : 1cpu cores       : 2apicid          : 1initial apicid  : 1fpu             : yesfpu_exception   : yescpuid level     : 13wp              : yesflags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm dts tpr_shadow vnmi flexprioritybogomips        : 5186.54clflush size    : 64cache_alignment : 64address sizes   : 36 bits physical, 48 bits virtualpower management:

Here there are two processor code blocks, so the total number of cores is 2 core, the physical ID of the last processor is 0, then the number of CPUs is 1, so it is 1 CPU * dual-core

Another example:

processor       : 0vendor_id       : AuthenticAMDcpu family      : 16model           : 8model name      : AMD Opteron(tm) Processor 4171 HEstepping        : 1cpu MHz         : 2094.686cache size      : 512 KBphysical id     : 0siblings        : 4core id         : 0cpu cores       : 4apicid          : 0initial apicid  : 0fpu             : yesfpu_exception   : yescpuid level     : 5wp              : yesflags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good extd_apicid unfair_spinlock pni cx16 popcnt hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvwbogomips        : 4189.37TLB size        : 1024 4K pagesclflush size    : 64cache_alignment : 64address sizes   : 42 bits physical, 48 bits virtualpower management:processor       : 1vendor_id       : AuthenticAMDcpu family      : 16model           : 8model name      : AMD Opteron(tm) Processor 4171 HEstepping        : 1cpu MHz         : 2094.686cache size      : 512 KBphysical id     : 0siblings        : 4core id         : 1cpu cores       : 4apicid          : 1initial apicid  : 1fpu             : yesfpu_exception   : yescpuid level     : 5wp              : yesflags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good extd_apicid unfair_spinlock pni cx16 popcnt hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvwbogomips        : 4187.98TLB size        : 1024 4K pagesclflush size    : 64cache_alignment : 64address sizes   : 42 bits physical, 48 bits virtualpower management:processor       : 2vendor_id       : AuthenticAMDcpu family      : 16model           : 8model name      : AMD Opteron(tm) Processor 4171 HEstepping        : 1cpu MHz         : 2094.686cache size      : 512 KBphysical id     : 0siblings        : 4core id         : 2cpu cores       : 4apicid          : 2initial apicid  : 2fpu             : yesfpu_exception   : yescpuid level     : 5wp              : yesflags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good extd_apicid unfair_spinlock pni cx16 popcnt hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvwbogomips        : 4189.34TLB size        : 1024 4K pagesclflush size    : 64cache_alignment : 64address sizes   : 42 bits physical, 48 bits virtualpower management:processor       : 3vendor_id       : AuthenticAMDcpu family      : 16model           : 8model name      : AMD Opteron(tm) Processor 4171 HEstepping        : 1cpu MHz         : 2094.686cache size      : 512 KBphysical id     : 0siblings        : 4core id         : 3cpu cores       : 4apicid          : 3initial apicid  : 3fpu             : yesfpu_exception   : yescpuid level     : 5wp              : yesflags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good extd_apicid unfair_spinlock pni cx16 popcnt hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvwbogomips        : 4189.33TLB size        : 1024 4K pagesclflush size    : 64cache_alignment : 64address sizes   : 42 bits physical, 48 bits virtualpower management:processor       : 4vendor_id       : AuthenticAMDcpu family      : 16model           : 8model name      : AMD Opteron(tm) Processor 4171 HEstepping        : 1cpu MHz         : 2094.686cache size      : 512 KBphysical id     : 1siblings        : 4core id         : 0cpu cores       : 4apicid          : 4initial apicid  : 4fpu             : yesfpu_exception   : yescpuid level     : 5wp              : yesflags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good extd_apicid unfair_spinlock pni cx16 popcnt hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvwbogomips        : 4189.26TLB size        : 1024 4K pagesclflush size    : 64cache_alignment : 64address sizes   : 42 bits physical, 48 bits virtualpower management:processor       : 5vendor_id       : AuthenticAMDcpu family      : 16model           : 8model name      : AMD Opteron(tm) Processor 4171 HEstepping        : 1cpu MHz         : 2094.686cache size      : 512 KBphysical id     : 1siblings        : 4core id         : 1cpu cores       : 4apicid          : 5initial apicid  : 5fpu             : yesfpu_exception   : yescpuid level     : 5wp              : yesflags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good extd_apicid unfair_spinlock pni cx16 popcnt hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvwbogomips        : 4189.29TLB size        : 1024 4K pagesclflush size    : 64cache_alignment : 64address sizes   : 42 bits physical, 48 bits virtualpower management:processor       : 6vendor_id       : AuthenticAMDcpu family      : 16model           : 8model name      : AMD Opteron(tm) Processor 4171 HEstepping        : 1cpu MHz         : 2094.686cache size      : 512 KBphysical id     : 1siblings        : 4core id         : 2cpu cores       : 4apicid          : 6initial apicid  : 6fpu             : yesfpu_exception   : yescpuid level     : 5wp              : yesflags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good extd_apicid unfair_spinlock pni cx16 popcnt hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvwbogomips        : 4189.37TLB size        : 1024 4K pagesclflush size    : 64cache_alignment : 64address sizes   : 42 bits physical, 48 bits virtualpower management:processor       : 7vendor_id       : AuthenticAMDcpu family      : 16model           : 8model name      : AMD Opteron(tm) Processor 4171 HEstepping        : 1cpu MHz         : 2094.686cache size      : 512 KBphysical id : 1siblings        : 4core id         : 3cpu cores       : 4apicid          : 7initial apicid  : 7fpu             : yesfpu_exception   : yescpuid level     : 5wp              : yesflags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good extd_apicid unfair_spinlock pni cx16 popcnt hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvwbogomips        : 4189.36TLB size        : 1024 4K pagesclflush size    : 64cache_alignment : 64address sizes   : 42 bits physical, 48 bits virtualpower management:

There are eight processor code blocks, so the total number of cores is 8 cores. The physical ID of the last processor is 1, and the number of CPUs is 2, so it is 2 CPU * quad core

If it is reproduced, describe the source! Http://blog.csdn.net/xukunddp

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.