View the real number of CPU cores in CentOS

Source: Internet
Author: User
Cat/proc/cpuinfo: you can see the actual number of cpu cores in detail. it should be the cpucores parameter value, the number of physical CPUs, and the number of non-repeated physicalids. There are several [user @ localhost ~] # Cat/proc/cpuinfoprocessor & nb

Cat/proc/cpuinfo to view detailed cpu information

 

The actual number of cores should be the value of cpu cores, the number of physical CPUs. There are several physical IDs that can be used to count non-repeated

 

[User @ localhost ~] # Cat/proc/cpuinfo
Processor: 0
Vendor_id: GenuineIntel
Cpu family: 6
Model: 45
Model name: Intel (R) Xeon (R) CPU E5-2609 0 @ 2.40 GHz
Stepping: 7
Cpu MHz: 2400.111
Cache size: 10240 KB
Physical id: 0
Siblings: 4
Core id: 0
Cpu cores: 4
Apicid: 0
Fpu: yes
Fpu_exception: yes
Cpuid level: 13
Wp: yes
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx limit rdtscp lm limit arat pni monitor vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
Bogomips: 4800.22
Clflush size: 64
Cache_alignment: 64
Address sizes: 46 bits physical, 48 bits virtual
Power management: [8]

Related Article

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.