Download Intel® Hyper-Threading Technology Technical User's Guide
Transcript
Contents Overview of Intel® Hyper-Threading Technology 4 The Evolution of System and Processor Architectures 4 Single Processor Systems 5 Key Practices of Memory Optimization Multithreading Key Practices of Front-end Optimization Multiprocessing 6 8 Multiprocessor Systems 9 Multitasking versus Multithreading Hyper-Threading Technology 22 Key Practices of Thread Synchronization Key Practices: Execution-resource Optimization 23 23 23 24 24 Optimization Techniques 24 Key Practices of System-bus Optimization Eliminate or Reduce the Impact of Spin-wait Loops 24 11 11 Avoiding 64K Aliasing in the First Level Data Cache 26 Balance the Impact of Background Task Priorities on Physical Processors Keys to Hyper-Threading Technology Performance 15 Understand and Have Clear Performance Expectations 15 Understand Hyper-Threading Technology Processor Resources Dealing with Multithreading Code Pitfalls Avoid Serializing Events and Instructions Optimize Cache Sharing Overcoming False Sharing in Data Cache Synchronization Overhead Greater Than Parallel Region 15 Correct Load Imbalance 30 30 31 Hyper-Threading Technology Application Development Resources 32 Intel C++ Compiler 32 General Compiler Recommendations 32 VTune Performance Analyzer 33 Automatic Parallelization of Code 34 Thread APIs 34 Parallel Regions Take Advantage of Write Combining Buffers Maximize Parallel Activity 16 Best Practices for Optimizing Multitasking Performance 18 Identifying Hyper-Threading Technology Performance Bottlenecks in an Application Logical vs. Physical Processors Validate “Genuine Intel® Processor” with Hyper-Threading Technology ® 19 TM 19 28 28 29 29 Query Number of Logical Processors 19 19 Associate Logical to Physical Processors Using APIC IDs 20 Work Sharing Gather Initial Performance Data 21 Reduction 35 37 38 Implement a Single Change and Benchmark Process References 40 21 General Performance Issues 22 Glossary 41 Identify Performance Discrepancies 22 3