News for hackers. Stuff that matters.
Re:Why do CPUs have multiple cache levels? by posterboy on Monday August 08, 2016 @06:27AM (#12246633)
The abstract and transparent explanation would involve a lot of maths, in which case a blog post might be the wrong place to start.
Re:Why do CPUs have multiple cache levels? by EliRivers on Monday August 08, 2016 @07:02AM (#12246755)
I'm not convinced it would.

They're different kinds of storage, with principal differences in access speed, sharing between cores, physical location and so on. No mathematics needed for a working understanding.

Re:Why do CPUs have multiple cache levels? by smallnamespace on Monday August 08, 2016 @01:57PM (#12249616)
I think you have it backwards.

The differences in access speed, density, and power between different types of caches are due to how our physical world works.

Therefore,uUsing a physical analogy is totally appropriate since we see the same constraints in different contexts; namely, there's an energetic cost to be paid for increased physical locality, and this is intuitively obvious to most people.

The specific details (e.g. eviction policy, cache topology, etc.) are mostly irrelevant for understanding this key point.

Re:Why do CPUs have multiple cache levels? by EliRivers on Thursday August 11, 2016 @04:04AM (#12266815)
Analogies are unhelpful here. I don't need an analogy to help people understand that different kinds of memory have different characteristics. I can just say it.

It is easier to understand if I simply state that there are different kinds of memory, and that they have different constraints in terms of speed, density and power. That is really, really easy to understand and from there I can accurately reason about it.

I don't need an analogy to understand any of this. Just saying that different kinds of memory have different speed, densities and power consumptions explains everything and provides all the intuition needed.