From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4ba8a742d14b4a3c2a9dec6273cecf0a.axp-list@archive.invalid> X-Archive-Original-Message-ID: Date: Tue, 4 Jun 96 12:39 PDT From: Eric Smith Subject: Re: First Alpha machine I wrote: > The reason for a hierarchy of cache is that it is impractical to make > (and interconnect) a very large amount of very fast memory. Vareck Bostrom wrote: > No, you may want differing cache policies across differing cache levels. > Perhaps a fully assocative small L1 cache, and a 4-way assocative L2 cache, > and an even larger 2-way or direct mapped L3 cache. You don't want to spend > a microsecond searching tag every time you want to see if somethings in your > L1 cache. Ah, but the reason you want differing cache policies is (as you suggest in your last sentence) *because* you can't build big, fast caches with the policies you want. No high-end microprocessors that I am familiar with implement fully associative caches at any level, because they would take too many transistors and be slower. Even a set associative cache is inherently slower than a direct-mapped. Given a particular transistor budget, it may make more sense to have separate I&D direct-mapped L1 caches and a unified 3-way set-associative L2 cache (i.e., the 21164 approach). The same transistors could have instead been spent making the L1 cache bigger or making it set-associative, but either approach would have increased the hit rate at the cost of increasing the cycle time. Cheers, Eric