Simultaneous MultiThreading (SMT)

Zen will be AMD’s first foray into a true simultaneous multithreading structure, and certain parts of the core will act differently depending on their implementation. There are many ways to manage threads, particularly to avoid stalls where one thread is blocking another that ends in the system hanging or crashing. The drivers that communicate with the OS also have to make sure they can distinguish between threads running on new cores or when a core is already occupied – to achieve maximum throughput then four threads should be across two cores, but for efficiency where speed isn’t a factor, perhaps power gating/clock gating half the cores in a CCX is a good idea.

There are a number of ways that AMD will deal with thread management. The basic way is time slicing, and giving each thread an equal share of the pie. This is not always the best policy, especially when you have one performance dominant thread, or one thread that creates a lot of stalls, or a thread where latency is vital. In some methodologies the importance of a thread can be tagged or determined, and this is what we get here, though for some of the structures in the core it has to revert to a basic model.

With each thread, AMD performs internal analysis on the data stream for each to see which thread has algorithmic priority. This means that certain threads will require more resources, or that a branch miss needs to be prioritized to avoid long stall delays. The elements in blue (Branch Prediction, INT/FP Rename) operate on this methodology.

A thread can also be tagged with higher priority. This is important for latency sensitive operations, such as a touch-screen input or immediate user input elements required. The Translation Lookaside Buffers work in this way, to prioritize looking for recent virtual memory address translations. The Load Queue is similarly enabled this way, as typically low latency workloads require data as soon as possible, so the load queue is perfect for this.

Certain parts of the core are statically partitioned, giving each thread an equal timing. This is implemented mostly for anything that is typically processed in-order, such as anything coming out of the micro-op queue, the retire queue and the store queue. However, when running in SMT mode but only with a single thread, the statically partitioned parts of the core can end up as a bottleneck, as they are idle half the time.

The rest of the core is done via competitive scheduling, meaning that if a thread demands more resources it will try to get there first if there is space to do so each cycle.

New Instructions

AMD has a couple of tricks up its sleeve for Zen. Along with including the standard ISA, there are a few new custom instructions that are AMD only.

Some of the new commands are linked with ones that Intel already uses, such as RDSEED for random number generation, or SHA1/SHA256 for cryptography (even with the recent breakthrough in security). The two new instructions are CLZERO and PTE Coalescing.

The first, CLZERO, is aimed to clear a cache line and is more aimed at the data center and HPC crowds. This allows a thread to clear a poisoned cache line atomically (in one cycle) in preparation for zero data structures. It also allows a level of repeatability when the cache line is filled with expected data. CLZERO support will be determined by a CPUID bit.

PTE (Page Table Entry) Coalescing is the ability to combine small 4K page tables into 32K page tables, and is a software transparent implementation. This is useful for reducing the number of entries in the TLBs and the queues, but requires certain criteria of the data to be used within the branch predictor to be met.

The Core Complex, Caches, and Fabric Power, Performance, and Pre-Fetch: AMD SenseMI
Comments Locked

574 Comments

View All Comments

  • FriendlyUser - Thursday, March 2, 2017 - link

    True. The 1600X will be competitive with the i5 at gaming and probably much faster in anything multithreaded. The crucial point is the price... $200 would be great.
  • MrSpadge - Thursday, March 2, 2017 - link

    "Ryzen will need to drop in price. $500 1800x is still too expensive. According to this even a 7700k @ $300 -$350 is still a good choice for gamers."

    That's what the 1700X is for.
  • lilmoe - Thursday, March 2, 2017 - link

    +1
    And for that, I'd say the 1700 (non-x) is the best consumer CPU available ATM. BUT, if someone just wants to game, I'd say get the Core i5... For me though, screw Intel. Never going them again.
  • fanofanand - Thursday, March 2, 2017 - link

    The 1700 is the sweet spot for anyone not trying to eek out a few more fps or drop their encode/decode times by a couple of seconds. To save $170 and lose a couple hundred mhz, I know which chip seems like the best all-around for price/performance and that's the 1700.
  • lilmoe - Thursday, March 2, 2017 - link

    Yep. You get both efficiency and performance when needed. This should allow for super quiet and very performant builds. Just take a look at the idle system power draw of these chips. Super nice.

    Everything is going either multi-threaded or GPU accelerated, even compiling code. What I'm really waiting for is Raven Ridge. I've got lots of stock $$ and high hopes for a low power 4-6 core Zen APU, with HBM and some bonus blocks for video encode (akin to Quicksync). I have a feeling they'll be much better for idling power and have better support for Microsoft's connected standby.
  • khanikun - Friday, March 3, 2017 - link

    i5 is a good gamer and all around cpu for majority of users. If all you plan to do is game and a tight budget, the i3 7350k is a great cpu for just that. Once the workload goes a bit more multithreaded, that's where you'll want to move to an i5.
  • Valis - Friday, March 3, 2017 - link

    I game now and then, but I do a lot of other things too. Video rendering, Crypto coins, Folding @ home, VM, etc. So any Zen, perhaps even 4 Core later thins year with a good GPU will suit me fine. :)
  • nos024 - Thursday, March 2, 2017 - link

    So the 1800x is pointless?
  • lilmoe - Thursday, March 2, 2017 - link

    I don't think pointless is the right word. I'd say it's the worse value for dollar of the three.
  • tacitust - Thursday, March 2, 2017 - link

    Not at all pointless if you do a lot of video transcoding or other CPU intensive tasks well suited to multiple cores. The price premium is still for the 1800x is way lower than the price premium for the Intel processors.

Log in

Don't have an account? Sign up now