Electronic – Why does small cache memory take less time to index

cacheoptimization

I was going though these slides (page 3) which are adapted from Computer Architecture: A Quantitative Approach, 4th Edition by Patterson and Hennessey.

The topic is about Advanced Cache Optimizations. It suggests that we can get fast hit times via small and simple caches and the reason it gives is "smaller memory takes less time to index"

I could not understand why? I mean if tags are compared in parallel. Why should the size matter?

Best Answer

At least two factors:

  • bigger caches means longer wires, so it takes more time for the information to travel (remember, at 1Ghz, light travel 30cm per cycle, and electrical signals are slower), both from the address to the memory cells, and from the memory cells to the place where the data is used.

  • if your cache is fully associative, that means that you have to address more comparators, increasing the load on the address lines and thus reducing the speed more than just what the wire length increase would hint.

Related Topic