Announcement Three: Skylake-X's New L3 Cache Architecture

(AKA I Like Big Cache and I Cannot Lie)

SKU madness aside, there's more to this launch than just the number of cores at what price. Deviating somewhat from their usual pattern, Intel has made some interesting changes to several elements of Skylake-X that are worth discussing. Next is how Intel is implementing the per-core cache.

In previous generations of HEDT processors (as well as the Xeon processors), Intel implemented an three stage cache before hitting main memory. The L1 and L2 caches were private to each core and inclusive, while the L3 cache was a last-level cache covering all cores and that also being inclusive. This, at a high level, means that any data in L2 is duplicated in L3, such that if a cache line is evicted into L2 it will still be present in the L3 if it is needed, rather than requiring a trip all the way out to DRAM. The sizes of the memory are important as well: with an inclusive L2 to L3 the L3 cache is usually several multiplies of the L2 in order to store all the L2 data plus some more for an L3. Intel typically had 256 kilobytes of L2 cache per core, and anywhere between 1.5MB to 3.75MB of L3 per core, which gave both caches plenty of room and performance. It is worth noting at this point that L2 cache is closer to the logic of the core, and space is at a premium.

With Skylake-X, this cache arrangement changes. When Skylake-S was originally launched, we noted that the L2 cache had a lower associativity as it allowed for more modularity, and this is that principle in action. Skylake-X processors will have their private L2 cache increased from 256 KB to 1 MB, a four-fold increase. This comes at the expense of the L3 cache, which is reduced from ~2.5MB/core to 1.375MB/core.

With such a large L2 cache, the L2 to L3 connection is no longer inclusive and now ‘non-inclusive’. Intel is using this terminology rather than ‘exclusive’ or ‘fully-exclusive’, as the L3 will still have some of the L3 features that aren’t present in a victim cache, such as prefetching. What this will mean however is more work for snooping, and keeping track of where cache lines are. Cores will snoop other cores’ L2 to find updated data with the DRAM as a backup (which may be out of date). In previous generations the L3 cache was always a backup, but now this changes.

The good element of this design is that a larger L2 will increase the hit-rate and decrease the miss-rate. Depending on the level of associativity (which has not been disclosed yet, at least not in the basic slide decks), a general rule I have heard is that a double of cache size decreases the miss rate by the sqrt(2), and is liable for a 3-5% IPC uplift in a regular workflow. Thus here’s a conundrum for you: if the L2 has a factor 2 better hit rate, leading to an 8-13% IPC increase, it’s not the same performance as Skylake-S. It may be the same microarchitecture outside the caches, but we get a situation where performance will differ.

Fundamental Realisation: Skylake-S IPC and Skylake-X IPC will be different.

This is something that fundamentally requires in-depth testing. Combine this with the change in the L3 cache, and it is hard to predict the outcome without being a silicon design expert. I am not one of those, but it's something I want to look into as we approach the actual Skylake-X launch.

More things to note on the cache structure. There are many ‘ways’ to do it, one of which I imagined initially is a partitioned cache strategy. The cache layout could be the same as previous generations, but partitions of the L3 were designated L2. This makes life difficult, because then you have a partition of the L2 at the same latency of the L3, and that brings a lot of headaches if the L2 latency has a wide variation. This method would be easy for silicon layout, but hard to implement. Looking at the HCC silicon representation in our slide-deck, it’s clear that there is no fundamental L3 covering all the cores – each core has its partition. That being the case, we now have an L2 at approximately the same size as the L3, at least per core. Given these two points, I fully suspect that Intel is running a physical L2 at 1MB, which will give the design the high hit-rate and consistent low-latency it needs. This will be one feather in the cap for Intel.

Announcement Two: High Core Count Skylake-X Processors Announcement Four: The Other Stuff (AVX-512, Favored Core)
Comments Locked

203 Comments

View All Comments

  • zodiacfml - Tuesday, May 30, 2017 - link

    It was all AMD. Intel would rather let AMD starved for cash than lose profit.
  • Maleorderbride - Tuesday, May 30, 2017 - link

    Kudos to AMD for forcing Intel to do something interesting for a change!

    It is a bit of a low blow to gimp the 7820X with 28 PCI-e lanes though. It should still be great performance at that price, but there are some instances where I want all five PCI-e slots occupied.
  • Morawka - Tuesday, May 30, 2017 - link

    intel can keep their dual ring designs, no thanks. They won't overclock well at all, wait and see. I'm very dissapointed in the pricing.. I though intel would offer a 8 core for $350 this time around to match ryzen, but nope.
  • NEGuy123 - Tuesday, May 30, 2017 - link

    24 Core Threadrippers in 2018 (MY PREDICTION)

    I actually feel that if AMD can get to 7nm process next year and we will easily see 24 core Threadrippers out next year. at 7nm, i feel AMD Ryzens will be 12 core each (compared to the 8).

    AMD has said they are working on 7nm and saying they will have a 48 core server. Which tells me 12 x 4 = 48 Cores.

    All this tells us that Ryzen will be 12 core dies. So, next year AMD can slap 2 of those together.

    This is my prediction for 2018

    GLAD TO SEE YOU BACK AMD!
  • Meteor2 - Saturday, June 3, 2017 - link

    AMD won't be on 7 nm until 2019, as Global Foundaries is doing it property.
  • Meteor2 - Saturday, June 3, 2017 - link

    Properly! Apple auto-correct really is bollocks.
  • jhoff80 - Tuesday, May 30, 2017 - link

    Do we know if any of the Skylake-X chips will include full HEVC / 10-bit decode/encode, or would that still remain Kaby Lake only? (I assume Kaby Lake only, but figured it was worth asking.) I might be looking to upgrade my Haswell-based media server which is struggling with software decode when transcoding.
  • extide - Tuesday, May 30, 2017 - link

    I would expect none of the X299 based CPU's to support that -- but then again they also require a video card so you would get the support from, that.
  • Timoo - Tuesday, May 30, 2017 - link

    Looks like Intel is finally slicing it's prices:
    The 7800X looks like the successor of the 6800K, just $100 less expensive...
    The sweet spot, as mentioned above, is indeed the 7820X, which looks like the successor of the 6900K, for a whopping $500 less expensive.

    That makes the i9 7900X a re-branded i7 6950X, with its price almost cut in half. Just the i9 7920X seems to be new in line. Again; with its price cut in half. Where the 6950X costs almost 2k right now, suddenly they offer 2 extra cores for 600$ less...

    Seems like AMD did do something for the market after all: Intel cuts deep in their prices ánd start spicing up their core-count. Since the Margins for AMD are approx 30-35% right now, it means Intel is lowering their margins on CPUs considerably...
  • Morawka - Tuesday, May 30, 2017 - link

    Nobody seems to notice the 7820X and every sub $1K processor in the new skylake lineups only come with 28 lanes.

    to get 44 Lanes, you gotta spend a grand or more

Log in

Don't have an account? Sign up now