Core: It’s all in the Prefetch

In a simple CPU design, instructions are decoded in the core and data is fetched from the caches. In a perfect world, such as the Mill architecture, the data and instructions are ready to go in the lowest level cache at all times. This allows for the lowest latency and removes a potential bottleneck. Real life is not that rosy, and it all comes down to how the core can predict what data it needs and has enough time to drag it down to the lowest level of cache it can before it is needed. Ideally it needs to predict the correct data, and not interfere with memory sensitive programs. This is Prefetch.

The Core microarchitecture added multiple prefetchers in the design, as well as improving the prefetch algorithms, to something not seen before on a consumer core. For each core there are two data and one instruction prefetchers, plus another couple for the L2 cache. That’s a total of eight for a dual core CPU, with instructions not to interfere with ‘on-demand’ bandwidth from running software.

One other element to the prefetch is tag lookup for cache indexing. Data prefetchers do this, as well as running software, so in order to avoid a higher latency for the running program, the data prefetch uses the store port to do this. As a general rule (at least at the time), loads happen twice as often as stores, meaning that the store port is generally more ‘free’ to be used for tag lookup by the prefetchers. Stores aren’t critical for most performance metrics, unless the system can’t process stores quickly enough that it backs up the pipeline, but in most cases the rest of the core will be doing things regardless. The cache/memory sub-system is in control for committing the store through the caches, so as long as this happens eventually the process works out.

Core: More Cache Please

Without having access to a low latency data and instruction store, having a fast core is almost worthless. The most expensive SRAMs sit closest to the execution ports, but are also the smallest due to physical design limitations. As a result, we get a nested cache system where the data you need should be in the lowest level possible, and accesses to higher levels of cache are slightly further away. Any time spent waiting for data to complete a CPU instruction is time lost without an appropriate way of dealing with this, so large fast caches are ideal. The Core design, over the previous Netburst family but also over AMD’s K8 ‘Hammer’ microarchitecture, tried to swat a fly with a Buick.

Core gave a 4 MB Level 2 cache between two cores, with a 12-14 cycle access time. This allows each core to use more than 2MB of L2 if needed, something Presler did not allow. Each core also has a 3-cycle 32KB instruction + 32KB data cache, compared to the super small Netburst, and also supports 256 entries in the L1 data TLB, compared to 8. Both the L1 and L2 are accessible by a 256-bit interface, giving good bandwidth to the core.

Note that AMD’s K8 still has a few advantages over Core. The 2-way 64KB L1 caches on AMD’s K8 have a slightly better hit rate to the 8-way 32KB L1 caches on Core, with a similar latency. AMD’s K8 also used an on-die memory controller, lowering memory latency significantly, despite the faster FSB of Intel Core (relative to Netburst) giving a lower latency to Core. As stated in our microarchitecture overview at the time, Athlon 64 X2s memory advantage had gotten smaller, but a key element to the story is that these advantages were negated by other memory sub-system metrics, such as prefetching. Measured by ScienceMark, the Core microarchitecture’s L1 cache delivers 2x bandwidth, and the L2 cache is about 2.5x faster, than the Athlon one.

Ten Year Anniversary of Core 2 Duo and Conroe Core: Decoding, and Two Goes Into One
Comments Locked

158 Comments

View All Comments

  • Namisecond - Thursday, July 28, 2016 - link

    NVMe may not be all it's cracked up to be. It, for the most part, limits you to booting windows 8 and higher, and good luck with the free upgrade to windows 10 (which supposedly ends tomorrow).
  • FourEyedGeek - Monday, August 8, 2016 - link

    Same CPU here, mine is running at 4Ghz, I can't see a reason other than NVMe to upgrade.
  • dotwayne - Thursday, July 28, 2016 - link

    Had a trusty E6300 @ 3.4-5 ghz back then. ahhh...miss those days of oc-ing the shit out of these cheap but super capable silicons.
  • jamyryals - Thursday, July 28, 2016 - link

    Neat article, I enjoyed it Ian!
  • azazel1024 - Thursday, July 28, 2016 - link

    Yeah a lot of those assumptions and guestimates for the future seem either overly optimistic or seem to ignore realities. I realize board power doesn't equate to average power use, but you are still talking about max power consumption that would drain a current cell phone battery dead in less than an hour, even on some of the biggest phone batteries.

    Beyond that is the heat dissipation, that phone is going to get mighty hot trying to dissipate 8+ watts out of even a large phone chassis.

    As pointed out, 32 cores seems a wee excessive. A lot of it seems to be "if we take it to the logical extreme" as opposed to "what we think is likely".
  • Peichen - Thursday, July 28, 2016 - link

    Take a 45nm C2Q Q9650 ($50 eBay), overclock to 4.0GHz, and you will be as fast as AMD's FX-9590 that's running at 220W. Older motherboard and DDR2 will be harder to come by but it is sad how AMD never managed to catch up to Core 2 after all these years. E6400 was my first Intel after switching to AMD after the original Pentium and I have never look back at AMD again.
  • Panoramix0903 - Thursday, July 28, 2016 - link

    I have made an upgrade from C2D 6550 to Q9650 in my old DELL Optiplex 755 MT. Plus 4x 2GB DDR2 800 MHz, Intel 535 SSD 240 GB, Sapphire Radeon HD7750 1GB DDR5, Sound Blaster X-FI, and USB 3.0 PCI-E card. Running Windows 7 Professional. 3-times more power then original DELL configuration :-)
  • JohnRO - Thursday, July 28, 2016 - link

    I just logged in to tell you that I'm reading this article on my desktop PC which has a Intel Core 2 Duo E4300 processor (1,8 GHz, 200 MHz FSB) with 4 GB of RAM (started with 2). When I wanted (or needed) I overclocked this processor to 3 GHz (333 MHz FSB).
    My PC will have its 10 years anniversary this December. During the years I upgraded the video card (for 1080p h264 hardware decoding and games when I still played them) and added more hard drives. The PC has enough performance for what I’m using it right now – so I would say that this is a good processor.
  • siriq - Thursday, July 28, 2016 - link

    I still got my mobile 2600+ barton @2750 mhz , 939 3800+ x2 @2950 mhz . They were awesome!
  • althaz - Thursday, July 28, 2016 - link

    I bought a C2D E6300 the week it came out, my first Intel CPU since 2000. My previous CPUs had been an AMD Athlon 64 and an AMD Athlon Thunderbird.

    That E6300 remains my all-time favourite CPU. It's still running in a friend of mine's PC (@ 2.77Ghz, which I overclocked it to soon after getting it). It was just *so* fast compared to my old PC. Everything just instantly got faster (and I hadn't even upgraded my GPU!).

Log in

Don't have an account? Sign up now