To improve the CPU performance, CPU manufacturers generally increase the clock frequency of the CPU and increase the cache capacity. However, the current CPU frequency is getting faster and faster. If you increase the CPU frequency and cache to improve the performance, it is often subject to manufacturing process restrictions and high costs.
Although it can indeed improve the performance by increasing the clock frequency of the CPU and the cache capacity, it is technically difficult to improve the CPU performance. In fact, for many reasons, the CPU execution units are not fully used. If the CPU cannot read data normally (the bottleneck of the bus/memory), the utilization rate of the Execution Unit will decrease significantly. In addition, most execution threads currently lack ILP (Instruction-Level Parallelism, multiple commands are executed simultaneously) support. These results in the current CPU performance is not fully utilized. Therefore, Intel uses another idea to improve the CPU performance, so that the CPU can execute multiple threads at the same time, so that the CPU can play a greater efficiency, that is, the so-called "hyper-threading, ("ht") technology. 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, the P4 processor needs to add one more logical 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, it is not like two real CPUs, each CPU has its own resources. 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 and multi task mode. When the program does not support multi-processing (multi-processor jobs, the system will stop running one of the logical CPUs and concentrate the resources in a single logical CPU, so that the single-thread program will not reduce performance because one of the logical CPUs is idle, however, because the logical CPU that is stopped will still wait for work and occupy some resources, when the hyper-threading CPU runs the single Task Mode Program mode, however, there may be insufficient CPU performance without hyper-threading, 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.
Note that CPUs with hyper-Threading Technology require chipset and software support to take advantage of this technology. Currently, hyper-Threading Technology supported chipsets include Intel i845ge, PE, and Alibaba Cloud isr658 RDRAM, sis645dx, and sis651. Intel i845e and i850e can be supported after BIOS upgrade; wei Sheng p4x400 and p4x400a are supported, but are not officially authorized. Operating systems such as Microsoft Windows XP, Microsoft Windows 2003, and Linux kernel Versions later than 2.4.x also support hyper-Threading Technology.
In principle, hyper-Threading Technology is a technology that enables a single CPU to have multi-thread processing capabilities. It can set two as (Architecture state, architecture state) interfaces for each physical processor, so that software such as the operating system can recognize it as two logical processors. However, they still need to share the same execution unit, cache, and system bus interface during operation. When multiple threads are executed, the two logical processors still need to work in turn: if both threads need a resource at the same time, one of them must be paused and the resource must be transferred out, and can continue until the resource is idle. The dual-core technology implements multi-threaded work through two physical cores in parallel. That is, each core has an independent instruction set and execution unit, which is completely different from the simulation sharing mechanism used in hyper-threading. In short, the processor can be seen as integrating two processors into a single kernel space and connecting the core of each processor through the parallel bus. In the operating system's view, it is a real dual-processor that can execute multiple tasks at the same time. Theoretically, the performance of a dual-core processor is almost 50%-70% higher than that of a single-core processor.