View cpu physics number, core number, logical cpu number under linux

  
        First, we must first clear the concept of physical cpu number, core number, logical cpu number 1. Physical cpu number: the number of CPUs actually inserted on the motherboard, the number of physical ids that can be repeated is several (physical id) 2.cpu core Number: The number of chipsets that can process data on a single CPU, such as dual-core, quad-core, etc. (cpu cores) 3. Logical cpu number: In general, logical cpu = physical CPU number & times; each core number, if If they are not equal, it means that the server's CPU supports Hyper-Threading Technology (HT: In short, it can make 1 kernel in the processor work like the 2 cores in the operating system. In this way, the operating system can use The execution resources have been doubled, and the overall performance of the system has been greatly improved. At this time, the logic cpu = the number of physical CPUs & times; the number of cores x2) (processer 0-n) Second, by looking at /proc/cpuinfo Cpu related information 1. Physical cpu number: [XXXX@server ~]$ grep 'physical id' /proc/cpuinfo
Copyright © Windows knowledge All Rights Reserved