Section by Dr. Ian Cutress (Orignal article)

Windows Optimizations

One of the key points that have been a pain in the side of non-Intel processors using Windows has been the optimizations and scheduler arrangements in the operating system. We’ve seen in the past how Windows has not been kind to non-Intel microarchitecture layouts, such as AMD’s previous module design in Bulldozer, the Qualcomm hybrid CPU strategy with Windows on Snapdragon, and more recently with multi-die arrangements on Threadripper that introduce different memory latency domains into consumer computing.

Obviously AMD has a close relationship with Microsoft when it comes down to identifying a non-regular core topology with a processor, and the two companies work towards ensuring that thread and memory assignments, absent of program driven direction, attempt to make the most out of the system. With the May 10th update to Windows, some additional features have been put in place to get the most out of the upcoming Zen 2 microarchitecture and Ryzen 3000 silicon layouts.

The optimizations come on two fronts, both of which are reasonably easy to explain.

Thread Grouping

The first is thread allocation. When a processor has different ‘groups’ of CPU cores, there are different ways in which threads are allocated, all of which have pros and cons. The two extremes for thread allocation come down to thread grouping and thread expansion.

Thread grouping is where as new threads are spawned, they will be allocated onto cores directly next to cores that already have threads. This keeps the threads close together, for thread-to-thread communication, however it can create regions of high power density, especially when there are many cores on the processor but only a couple are active.

Thread expansion is where cores are placed as far away from each other as possible. In AMD’s case, this would mean a second thread spawning on a different chiplet, or a different core complex/CCX, as far away as possible. This allows the CPU to maintain high performance by not having regions of high power density, typically providing the best turbo performance across multiple threads.

The danger of thread expansion is when a program spawns two threads that end up on different sides of the CPU. In Threadripper, this could even mean that the second thread was on a part of the CPU that had a long memory latency, causing an imbalance in the potential performance between the two threads, even though the cores those threads were on would have been at the higher turbo frequency.

Because of how modern software, and in particular video games, are now spawning multiple threads rather than relying on a single thread, and those threads need to talk to each other, AMD is moving from a hybrid thread expansion technique to a thread grouping technique. This means that one CCX will fill up with threads before another CCX is even accessed. AMD believes that despite the potential for high power density within a chiplet, while the other might be inactive, is still worth it for overall performance.

For Matisse, this should afford a nice improvement for limited thread scenarios, and on the face of the technology, gaming. It will be interesting to see how much of an affect this has on the upcoming EPYC Rome CPUs or future Threadripper designs. The single benchmark AMD provided in its explanation was Rocket League at 1080p Low, which reported a +15% frame rate gain.

Clock Ramping

For any of our users familiar with our Skylake microarchitecture deep dive, you may remember that Intel introduced a new feature called Speed Shift that enabled the processor to adjust between different P-states more freely, as well as ramping from idle to load very quickly – from 100 ms to 40ms in the first version in Skylake, then down to 15 ms with Kaby Lake. It did this by handing P-state control back from the OS to the processor, which reacted based on instruction throughput and request. With Zen 2, AMD is now enabling the same feature.

AMD already has sufficiently more granularity in its frequency adjustments over Intel, allowing for 25 MHz differences rather than 100 MHz differences, however enabling a faster ramp-to-load frequency jump is going to help AMD when it comes to very burst-driven workloads, such as WebXPRT (Intel’s favorite for this sort of demonstration). According to AMD, the way that this has been implemented with Zen 2 will require BIOS updates as well as moving to the Windows May 10th update, but it will reduce frequency ramping from ~30 milliseconds on Zen to ~1-2 milliseconds on Zen 2. It should be noted that this is much faster than the numbers Intel tends to provide.

The technical name for AMD’s implementation involves CPPC2, or Collaborative Power Performance Control 2, and AMD’s metrics state that this can increase burst workloads and also application loading. AMD cites a +6% performance gain in application launch times using PCMark10’s app launch sub-test.

Hardened Security for Zen 2

Another aspect to Zen 2 is AMD’s approach to heightened security requirements of modern processors. As has been reported, a good number of the recent array of side channel exploits do not affect AMD processors, primarily because of how AMD manages its TLB buffers that have always required additional security checks before most of this became an issue. Nonetheless, for the issues to which AMD is vulnerable, it has implemented a full hardware-based security platform for them.

The change here comes for the Speculative Store Bypass, known as Spectre v4, which AMD now has additional hardware to work in conjunction with the OS or virtual memory managers such as hypervisors in order to control. AMD doesn’t expect any performance change from these updates. Newer issues such as Foreshadow and Zombieload do not affect AMD processors.

X570 Motherboards: PCIe 4.0 For Everybody Test Bed and Setup
Comments Locked

447 Comments

View All Comments

  • LordanSS - Tuesday, July 9, 2019 - link

    My 2700X set up for 85W TDP single clock boosts to 5Ghz, given enough cooling (280mm liquid cooler).

    5Ghz. Last generation.
  • RSAUser - Monday, July 8, 2019 - link

    You saw a better performance per clock, these chips hitting 4.65 is about the same performance as 2000 series hitting 5GHz.
  • 5080 - Sunday, July 7, 2019 - link

    Gaming performance benchmarks really shows what sad state the gaming industry is in that we still have to rely on single core performance.
  • Korguz - Sunday, July 7, 2019 - link

    Maxiking where did you read that we were promised this ??? you are bashing AMD for making promises.. what about all the promises intel has made over the years?? i dont see you bashing them for that. didnt intel promise 5ghz ?? but yet... we only see that in ONE chip, and its a special binned chip, in limited quantities... and practically needs exotic cooling
  • Maxiking - Tuesday, July 9, 2019 - link

    8700k, 9900k, special edition of 8700k.

    It is one chip sure. The difference is Intel can reach its boost on a single core for unlimited amount of time unlike AMD and its sporadical 100ms long 4.55ghz boosts and when confronted they lie on twitter there is not such thing as boost in their CPU anymore lol. What does have Intel with this?
  • Korguz - Tuesday, July 9, 2019 - link

    geeze.. drop this BS already.. maybe intel can. but how much power is it using to achieve this ?? 150 watts on what intel says is a 95 watt cpu ?? just drop this crap already, you obviously have NO real proof, other then your own BS words.. cause if you did.. you would of posts links to this garbage
  • StormyParis - Sunday, July 7, 2019 - link

    I'd be really interested in a recap of which CPU includes which optionnal features. It's been my experience that Intel mostly, but also AMD a bit, play a shell game with advanced mutimedia, virtualization, security,... extensions and it's a pain to suss out which CPU supports what.
  • RSAUser - Monday, July 8, 2019 - link

    AFAIK AMD support hyper V, no issues with docker for me. Check your use case though, think there was a small feature AMD did not support, but can't remember what it was, didn't affect me for docker or if rendering video.
  • 0ldman79 - Sunday, July 7, 2019 - link

    Still reading, but one minor complaint, the latency graphs, I can either easily read the key or see the entire graph while clicking the button, but not both.

    I have to zoom out to see the entire graph then the text gets pretty small.

    Not a huge thing, just an ease of access thing. The graphs have extremely interesting info, but it's not easy to read them.
  • futrtrubl - Sunday, July 7, 2019 - link

    "While going from X370 at 6.8 W TDP at maximum load, X470 was improved upon in terms of power consumption to a lower TDP of 4.8 W." This is the opposite of what the chart right above it says.

Log in

Don't have an account? Sign up now