How does Windows utilize Hyperthreaded cores? - The Workshop
0 up · 0 down · 0 ratings
Channels and socials
How does Hyperthreading actually work? Is there a difference between physical and logical cores? Luke explains! Massdrop link: dro.ps Cooler Master link: linustechtips.com Pricing & discussion: linustechtips.com Support us: linustechtips.com Join our community forum: bit.ly twitter.com @LinusTech Intro Screen Music Credit: Title: Laszlo - Supernova Video Link: youtube.com iTunes Download Link: itunes.apple.com Artist Link: soundcloud.com Outro Screen Music Credit: Approaching Nirvana - Sugar High youtube.com Sound effects provided by freesfx.co.uk
Hyperthreading is a long standing feature on high end Intel CPUs, but the Workshop episode sets out to demystify what actually happens inside Windows when you run multi threading on a hyperthreaded quad core. The presenter begins by clarifying the difference between physical cores and logical cores, explaining that four physical cores can present eight logical cores due to hyperthreading, and that these eight logical units are not equal to eight real cores. He demonstrates how Windows Task Manager shows eight CPUs on a system with a hyperthreaded CPU and emphasizes that the eight logical cores do not translate to eight physical cores. By setting up two Windows virtual machines with four logical cores each and running benchmarks, he tests whether Windows cares which logical core is allocated to a VM and whether there is any performance advantage to using one logical thread over another. The results show minimal differences between individual logical cores when benchmarked separately, but a small performance dip when both VMs run simultaneously, illustrating that hyperthreading can improve utilization of a physical core but does not create a clean one-to-one improvement in performance. The discussion then turns to practical implications, noting that hyperthreading enables better utilization of CPU cycles by allowing two threads to share a single physical core when resources permit, rather than doubling performance. The takeaway is clear: you do not have eight physical cores, but you can leverage four physical cores more effectively through hyperthreading, while recognizing that the logical cores are equivalent in Windows’ scheduling context. The episode ends with a quick reminder that this is a tuning and understanding exercise, not a wholesale replacement of physical cores, followed by sponsorship plugs and a promo for Massdrop products.
Topics · technology · computer-hardware · operating-systems · performance-benchmarks
Questions answered
- What is the fundamental difference between physical cores and logical cores in a hyperthreaded CPU?
- Physical cores are real processing units on the CPU, while logical cores are the result of Hyper-Threading, which allows multiple threads to be scheduled on a single physical core when resources permit. Logical cores do not equal additional physical cores and do not double performance.
- How does Windows scheduling affect performance when two threads run on the same physical core via Hyper-Threading?
- Windows can schedule two different threads on the same physical core at the same time if there are available resources, which can improve utilization but does not guarantee a simple twofold speedup. Performance differences depend on the workload and resource availability.
- What was the key empirical finding from the VM benchmarks in this video?
- Benchmark results showed minimal differences between using different logical cores individually, and a small performance dip when two VMs ran simultaneously, indicating that hyperthreading improves utilization but does not provide uniform, linear gains.