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

  • Ninjawithagun - Monday, July 8, 2019 - link

    Originally, I was going to wait for Zen 3, but I think I can consider buying a 3700X to 'get me by' until next year. No way am I buying a new X570 motherboard. Replaceing my 2700X with the 3700X is good enough until Zen 3 and new AM5 socket and new X670(?) chipset are released next year. Of course, the chipset name is hypothetical, so it's my best guess as to what AMD will call next year's new hardware ;-)
  • Ninjawithagun - Monday, July 8, 2019 - link

    *Replacing
  • haukionkannel - Tuesday, July 9, 2019 - link

    Am4 next year. Am5 two years from now...
  • Korguz - Tuesday, July 9, 2019 - link

    um.. we have AM4 now....
  • AntonErtl - Monday, July 8, 2019 - link

    Thanks for the review.

    Two things I would like to see (maybe in an update): ECC support (I expect that it's like for Ryzen 1XXX: unsupported, but works with Asrock and ASUS boards) and RAM capacity: Can you use 4 of Samsung's 32GB DIMMs for 128GB RAM?
  • The Average - Monday, July 8, 2019 - link

    This x570 motherboard states that it supports ECC so maybe it is indeed up to the motherboard vendors to support it.
    https://www.amazon.com/ASUS-Pro-WS-Workstation-Mot...
  • phoenix_rizzen - Tuesday, July 9, 2019 - link

    ECC is supported in all Ryzen CPUs as it's part of the built-in memory controller. However, it's up to the motherboard makers to enable support for it in the RAM slots and BIOS and whatnot.

    If a motherboard claims support for Ryzen Pro, I believe that's a good indication it supports ECC. Otherwise, you have to dig around in the motherboard manual to find out.
  • UberHamburgler - Monday, July 8, 2019 - link

    This is quite impressive, as AMD engineers hinted last year in leaks that they feared Zen 2 would be server and mobile only design. TSMC's first generation 7nm process is heavily optimized for efficiency and they didn't expect it to scale well past 3.5 GHz. Intel better have its 10nm process in full swing by the end of the year, otherwise they're in for a beating when Rome and the mobile variant launch - it's no secret that chip manufacturers only care about desktop to the extent that they win good press from enthusiasts.

    On a side note. What are the potential gains from kernel optimizaions similar to what happened a few months after the original Ryzen, this seems to be a similar restructuring of the cache.
  • Irata - Monday, July 8, 2019 - link

    Cudos to you guys for re-running the benches.

    It's kinda sad that that AMD's releases seem like a "beta fest". While the products themselves are pretty good, issues with Bios or drivers often seem to be a let down.

    It must stink to put in all the work to bench a system just to have to re-do it again.

    Still, seeing how the results are already pretty good, I am hopeful that they will improve further after updates / patches.
  • poohbear - Monday, July 8, 2019 - link

    Why are the gaming benchmarks at only 720p and 1080p? Is this what most people game at these days? Most gaming benchmarks are 1080, 1440 and 4k. Oh the CPU doesn't have much affect above 1080 you say? Well good, PLEASE SHOW THAT. People need to know this when making CPU decisions. If AMD trounces Intel at everything office related, and @ 1440 & 4k there is no difference, then that will absolutely affect my buying decision. Why are you showing 720p when hardly anyone games at that rez?

Log in

Don't have an account? Sign up now