View CPU Information
# Cat/proc/cpuinfo
Note:
1. process starts counting from 0 and continues until the end. We can clearly see the number of CPUs on the machine. 2. Check whether the physical CPU is concerned with the physical id value. If the value is the same, it indicates the same CPU. 3. Check the flag. If the HT flag is available, it indicates that hyper-Threading Technology is supported. [For details, see the end of this article]
Common combined commands
1. view the number and model of CPU
# Cat/proc/cpuinfo | grep name | cut-F2-D: | uniq-C
2. view the number of physical CPUs
# Cat/proc/cpuinfo | grep physical | uniq-C
View memory messages
# Cat/proc/meminfo
Of course, you can also use the top command to view the memery information (the top command will be displayed)
View hard disk Information
# DF-lH
More detailed information
# Cat/proc/SCSI
View Nic Information
# Dmesg | grep ETH
More common commands (display the system core version number, name, and machine type)
# Uname-
Appendix 1:
View CPU information on Windows
1. Open the command prompt and enterSysteminfoTo view.
2. Open the command prompt and enterDxdiagYou can view more information.
Appendix 2: hyper-Threading Technology Overview
Hyper-Threading Technology uses special hardware commands to simulate two logical kernels into two physical chips, so that a single processor can use thread-level parallel computing, and thus be compatible with multi-threaded operating systems and software, this reduces the idle CPU time and improves the CPU running efficiency. With hyper-threading, applications can use different chips at the same time. Although a single-thread chip can process thousands of commands per second, it can operate only one command at any time. The hyper-threading technology enables the chip to process multiple threads at the same time, improving the chip performance. Hyper-threading technology is used to execute multiple programs at the same time on one CPU and share resources in one CPU. Theoretically, we need to execute two threads at the same time like two CPUs, one more logical is required for the P4 processor.
CPU pointer (logical processing unit ). Therefore, the new generation of P4 HT die is increased by 5% compared with the previous P4. The remaining parts, such as ALU, FPU, and L2 cache, remain unchanged. Although hyper-threading technology can be used to execute two threads at the same time, each CPU has independent resources, not just like two real CPUs. When both threads need a certain resource at the same time, one of them must be temporarily stopped and the resources must be made available until these resources are idle. Therefore, the performance of hyper-threading is not equal to the performance of two CPUs. Intel P4 hyper-threading has two operating modes: single task
Mode (single task mode) and multi task mode. When the program does not support multi-processing (multi-processor job), the system stops running one of the logical CPUs, resources are concentrated in a single logical CPU, so that a single thread program will not reduce performance because one of the logical CPUs is idle. However, the logical CPU that is stopped will still wait for work, it occupies some resources. Therefore, when the hyper-threading CPU runs the single Task Mode Program mode, it may fail to achieve the CPU performance without the hyper-threading function, but the performance gap will not be too large. That is to say, when running a single thread to use software, hyper-Threading Technology may even reduce system performance, especially when a multi-threaded operating system runs a single thread software.