An in-depth analysis of hyper-threading technology, a micro-architecture innovation that allows a single processor to appear as two logical processors. Traditional approaches to increasing processor performance, the concept and implementation of hyper-threading, and its performance results. It also discusses os supports and concludes with the benefits of this technology.
Download Hyper-Threading Technology: Making One Processor Act as Two Logical Units and more Slides Computer Architecture and Organization in PDF only on Docsity!
Hyper-Threading Technology
Architecture and Micro-Architecture
Outline
Introduction
Traditional Approaches
Hyper-Threading Overview
Hyper-Threading Implementation
Front-End Execution
Out-of-Order Execution
Performance Results
OS Supports
Conclusion
Traditional Approaches (I)
• High requirements of Internet and
Telecommunications Industries
• Results are unsatisfactory compared the gain they
provide with the cost they cause
• Well-known techniques;
Super Pipelining
Branch Prediction
Super-scalar Execution
Out-of-order Execution
Fast memories (Caches)
Traditional Approaches (II)
Super Pipelining:
Have finer granularities, execute far more instructions within a second (Higher clock frequencies)
Hard to handle cache misses, interrupts and branch mispredictions
Instruction Level Parallelism (ILP)
Mainly targets to increase the number of instructions within a cycle
Super Scalar Processors with multiple parallel execution units
Execution needs to be verified for out-of-order execution
Fast Memory (Caches)
To reduce the memory latencies, hierarchical units are using which are not an exact solution
Thread-Level Parallelism
• Chip Multi-Processing (CMP)
Put 2 processors on a single die
Processors (only) may share on-chip cache
Cost is still high
IBM Power4 PowerPC chip
• Single Processor Multi-Threading;
Time-sliced multi-threading
Switch-on-event multi-threading
Simultaneous multi-threading
Hyper-Threading (HT) Technology
Provides more satisfactory solution
Single physical processor is shared as two logical processors
Each logical processor has its own architecture state
Single set of execution units are shared between logical processors
N-logical PUs are supported
Have the same gain % with only 5% die- size penalty.
HT allows single processor to fetch andexecute two separate code streamssimultaneously.
HT Pipeline (I)
HT Pipeline (II)
Execution Trace Cache (TC) (I)
Stores decoded instructions called “micro-operations”
or “uops”
Arbitrate access to the TC using two IPs
If both PUs ask for access then switch will occur in the next cycle.
Otherwise, access will be taken by the available PU
Stalls (stem from misses) lead to switch
Entries are tagged with the owner thread info
8-way set associative, Least Recently Used (LRU)
algorithm
Unbalanced usage between processors
Execution Trace Cache (TC) (I)
Microcode Store ROM (MSROM) (II)
ITLB and Branch Prediction (I)
If there is a TC miss, bytes need to be loaded from L
cache and decoded into TC
ITLB gets the “instruction deliver” request
ITLB translates next Pointer address to the physical
address
ITLBs are duplicated for processors
L2 cache arbitrates on first-come first-served basis while
always reserve at least one slot for each processor
Branch prediction structures are either duplicated or