Linux to determine the number of CPU physics, a few cores

Source: Internet
Author: User

Output of your own server

1. View the number of physical CPUs

  #cat/proc/cpuinfo |grep "Physical id" |sort |uniq|wc-l  12. View the number of logical CPUs #cat/proc/cpuinfo |grep "Processor" |wc-l 83. View CPU is a few cores #cat/proc/cpuinfo |grep "cores" |uniq cpu cores:44. View CPU Frequency #cat/proc/cpuinfo |grep mhz|uniq cpu MHz  : 1600.000# uname-alinux 54acm 2.6.32-25-generic-pae #44-ub Untu SMP Fri Sep 21:57:48 UTC i686 gnu/linux (view current operating system core information)  # Cat/etc/issue ubuntu 10.04 LTS (view current operating system release Information)  # Cat/proc/cpuinfo | grep name | Cut-f2-d: | uniq-c       8  intel (R) Xeon (r) CPU           E5620  @ 2.40GHz (see Have 8 logical CPUs and know the CPU model)  # Cat/proc/cpuinfo | grep Physical | uniq-c      1 Physical id:1      1 address sizes:40 bits physical, bits VI rtual      1 Physical id:1      1 address sizes:40 bits physical, bits virt ual      1 Physical id:1      1 address sizes:40 bits physical, bits virtual      1 physical id:1     &N Bsp;1 address sizes:40 bits physical, bits virtual      1 physical id:1     &NBS P;1 address sizes:40 bits physical, bits virtual      1 physical id:1       1 Address sizes:40 bits physical, bits virtual      1 physical id:1      1 Address sizes:40 bits physical, bits virtual      1 physical id:1      1 AD Dress sizes:40 bits physical, bits virtual  (description is actually two 4-core CPUs)  # getconf Long_bit32 (indicates that the current CPU is running in 32bit mode, but does not represent C PU does not support 64bit)  # Cat/proc/cpuinfo | grep Flags | grep ' LM ' | WC-L8 (Result greater than 0, description supports 64bit calculation. LM means long mode, LM is 64bit)      how to get CPU Details: Linux command: cat/proc/ Cpuinfo using commands to determine several physical CPUs, several cores, etc.: Number of logical CPUs: # Cat/proc/cpuinfo | grep "Processor" | Wc-l number of physical CPUs: # Cat/proc/cpuinfo | grep "Physical ID" | Sort | Uniq | Wc-l number of cores per physical CPU: # Cat/proc/cpuinfo | grep "CPU Cores" | Wc-l is Hyper-threading? If there are two logical CPUs with the same "core ID", then Hyper-threading is turned on. The number of logical CPUs (possibly cores, threads, or both) in each physical CPU: # Cat/proc/cpuinfo | grep "Siblings"  siblings:81. View the CPU Information command Cat/proc/cpuinfo2. View the Memory Information command Cat/proc/meminfo3. View hard disk Info command fdisk-l 

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.