Sunday, November 06, 2005 8:52:53 PM
Though the graph you present doesn't show any set-associative > 8-way it can be seen that the fully associative miss-ratio is essentially flat from 64K to infinite cache and the 8-way is flat from 128K onwards. (to my eye). 16-way and 1023-way must fall between the direct-mapped and the 8-way.
Like CJ said, you're reading the graph wrong. Pete presented two hypothetical scenarios:
- 512KB, 16-way SA
- 64KB, 1,023-way SA
At 64KB, 1,024-way is fully associative, because a cache line is 64B and there would be 1,024 total entries. I would think 1,023 is a typo, as you speculated (unless there is a subtlety that I'm missing....).
At any rate, if you look at the value of the yellow line at 64KB (call it node 1 value), and then look at the value between 256K and 1M where the yellow, purple, and blue lines converge (node 2), you'll see that the value is less than the node 1 case. Node 2 is actually the same miss rate for 4-way SA as well anything in between, so even a 4-way 512K cache will perform equally well to a fully associative cache of the same size, at least as far as SPEC_CPU2k goes.
Now here's the thing that Pete doesn't admit. The graphs assume a perfect eviction algorithm for all the associativities, and this is not a realistic case. The higher associativity you go, the more of a lookup penalty you have. With direct mapped cache (1-way associativity, basically), you don't have to look up the entries at all because you simply evict whatever line is in that location whenever new data comes in. In a 2-way cache, you need to find out which of two cache lines you want to evict. Preferably, you evict the one you haven't used in the longest time, which is what an LRU (Least Recently Used) algorithm does. For a 4-way cache, you need to look at all 4 entries before deciding which one to evict. As you can see, the more associativity you have, the longer the LRU algorithm is going to take to make its decision. In a fully associative cache (such as the 1,024-way one Pete mentions), the LRU lookup is going to take an ETERNITY. So in reality, fully associative caches can actually be SLOWER the more entries they have. Of course, there are other algorithms besides LRU, but often you end up evicting the cache lines you really need, which means your miss rate goes UP! So you can see there are many implementation issues in large caches, and you'll find that few if any cache designers will opt for more than 16-way SA in their caches, and I think AMD does it because they can afford a longer cycle delay time in their L2 if their main memory access is so much lower latency than Intel's. Larger caches can usually afford the longer lookup time, anyway, while smaller caches tend to use very small associativity ways. Pete is totally wrong in his arguments, but as usual, he'll never admit to it.
Recent AMD News
- BP Signals Rising Net Debt; Tesla Slumps; Stellantis CEO Announces Retirement; Berkshire Trims BofA Stake, and More • IH Market News • 10/11/2024 10:31:49 AM
- AMD Launches New Ryzen™ AI PRO 300 Series Processors to Power Next Generation of Commercial PCs • GlobeNewswire Inc. • 10/10/2024 06:01:00 PM
- AMD Delivers Leadership AI Performance with AMD Instinct MI325X Accelerators • GlobeNewswire Inc. • 10/10/2024 06:00:00 PM
- AMD Launches 5th Gen AMD EPYC CPUs, Maintaining Leadership Performance and Features for the Modern Data Center • GlobeNewswire Inc. • 10/10/2024 05:59:00 PM
- AMD Unveils Leadership AI Solutions at Advancing AI 2024 • GlobeNewswire Inc. • 10/10/2024 05:58:00 PM
- AMD Instinct MI300X Accelerators Available on Oracle Cloud Infrastructure for Demanding AI Applications • GlobeNewswire Inc. • 09/26/2024 01:00:00 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 09/17/2024 08:21:52 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 09/13/2024 08:15:04 PM
- Form 144 - Report of proposed sale of securities • Edgar (US Regulatory) • 09/11/2024 08:19:11 PM
- AMD Advancing AI 2024 Event to Highlight Next-gen Instinct and EPYC Processors and Expanding Solutions Ecosystem • GlobeNewswire Inc. • 09/10/2024 01:00:00 PM
- AMD to Present at the Goldman Sachs Communacopia and Technology Conference • GlobeNewswire Inc. • 09/04/2024 01:00:00 PM
- AMD Appoints AI Industry Veteran Keith Strier to Expand Global AI Capabilities and Engagements • GlobeNewswire Inc. • 09/03/2024 08:15:00 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 08/22/2024 08:13:14 PM
- AMD 2023-24 Corporate Responsibility Report: Advancing Sustainability, Collaboration and Inclusion • GlobeNewswire Inc. • 08/21/2024 01:00:00 PM
- Form 144 - Report of proposed sale of securities • Edgar (US Regulatory) • 08/20/2024 08:26:54 PM
- AMD to Present at the Deutsche Bank Technology Conference • GlobeNewswire Inc. • 08/20/2024 08:15:00 PM
- Berkshire Reduces Stake in BofA, Hawaiian Airlines Soars 10%, Paramount Receives $4.3B Offer, and More • IH Market News • 08/20/2024 09:56:02 AM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 08/19/2024 08:26:24 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 08/19/2024 08:24:17 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 08/19/2024 08:22:02 PM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 08/19/2024 08:19:38 PM
- Futures Pointing To Roughly Flat Open On Wall Street • IH Market News • 08/19/2024 01:13:22 PM
- Form 8-K - Current report • Edgar (US Regulatory) • 08/19/2024 10:22:30 AM
- AMD to Significantly Expand Data Center AI Systems Capabilities with Acquisition of Hyperscale Solutions Provider ZT Systems • GlobeNewswire Inc. • 08/19/2024 10:00:00 AM
- Form 4 - Statement of changes in beneficial ownership of securities • Edgar (US Regulatory) • 08/13/2024 08:36:07 PM
ZenaTech, Inc. (NASDAQ: ZENA) Launchs IQ Nano Drone for Commercial Indoor Use • HALO • Oct 10, 2024 8:09 AM
CBD Life Sciences Inc. (CBDL) Targets Alibaba as the Next Retail Giant for Wholesale Expansion of Top-Selling CBD Products • CBDL • Oct 10, 2024 8:00 AM
Foremost Lithium Announces Option Agreement with Denison on 10 Uranium Projects Spanning over 330,000 Acres in the Athabasca Basin, Saskatchewan • FAT • Oct 10, 2024 5:51 AM
Element79 Gold Corp. Reports Significant Progress in Community Relations and Development Efforts in Chachas, Peru • ELEM • Oct 9, 2024 10:30 AM
Unitronix Corp Launches Share Buyback Initiative • UTRX • Oct 9, 2024 9:10 AM
BASANITE INDUSTRIES, LLC RECEIVES U.S. PATENT FOR ITS BASAFLEX™ BASALT FIBER COMPOSITE REBAR AND METHOD OF MANUFACTURING • BASA • Oct 9, 2024 7:30 AM