Linux_ View System CPU count, number of cores, number of threads

Source: Internet
Author: User

Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the following sources, otherwise, the legal responsibility to pursue copyright.

Deep Blue Blog:http://blog.csdn.net/huangyanlong/article/details/43935535

(1), view CPU Information

[Email protected] ~]# Cat/proc/cpuinfo

-- View CPU Information

processor:0

Vendor_id:genuineintel

CPU Family:6

model:58

Model Name:intel (R) Core (TM) i5-3320m CPU @ 2.60GHz

Stepping:9

CPU mhz:2566.490

Cache size:6144 KB

Fpu:yes

Fpu_exception:yes

CPUID Level:5

Wp:yes

FLAGS:FPU VME de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA cmov Pat PSE36 Clflush MMX fxsr SSE SSE2 syscal L NX rdtscp LM constant_tsc up PNI monitor SSSE3 LAHF_LM

bogomips:5132.98

Clflush size:64

Cache_alignment:64

Address sizes:36 bits physical, bits virtual

Power Management:

(2), view CPU Brief information

[Email protected] ~]# cat/proc/cpuinfo |grep name |cut-f2-d: |uniq–c

-- View CPU Brief information

1 Intel (R) Core (TM) i5-3320m CPU @ 2.60GHz

(3), view the number of physical CPUs

[[email protected] ~]# grep ' physical id '/proc/cpuinfo | Sort-u

1

-- look at the physics. CPU number is 1

(4), view the number of cores

[[email protected] ~]# grep ' core ID '/proc/cpuinfo | Sort-u | Wc-l

6

-- View CPU The core number is 6

(5), view the number of threads

[[email protected] ~]# grep ' processor '/proc/cpuinfo | Sort-u | Wc-l

12

-- View CPU the number of bus threads is A ( 6 a core)

Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the following sources, otherwise, the legal responsibility to pursue copyright.

Deep Blue Blog:http://blog.csdn.net/huangyanlong/article/details/43935535

Linux_ View System CPU count, number of cores, number of threads

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.