News for hackers. Stuff that matters.
Re:Why do CPUs have multiple cache levels? by jgord on Monday August 08, 2016 @08:20AM (#12247115)
When my son was 5 or 6 I had a great discussion about salt containers - the little one you have on the table, the big packet in the pantry, the pallet that gets delivered to the supermarket, the vast piles of salt at the salt mine, and all that salt in the ocean.

Next time we had an egg and he wanted salt I scratched my head and asked him what should we do .. take our egg to the supermarket or we could take a pack lunch to the beach, and maybe wave the egg around in the water ? "No daddy, remember, we have a little salt cache in the kitchen." hehe.

I guess a lot of the world can be seen thru the glasses of caching data or physical things.

Re:Why do CPUs have multiple cache levels? by csours on Monday August 08, 2016 @09:43AM (#12247654)
That's a beautiful analogy. I wonder if we would still use small salt shakers if they cost 1000x a large salt container.

Edit: Cunningham's Law in action! https://meta.wikimedia.org/wiki/Cunningham%27s_Law

Re:Why do CPUs have multiple cache levels? by zepolen on Monday August 08, 2016 @10:12AM (#12247882)
From 100x to 1250x

              container (40’)     shaker
    payload:  27,600 kg           100g
       cost:  1000$ to 5000$      2$ to 5%
    cost/kg:  0.04$ to 0.18$/kg   $20/kg to $50/kg
Re:Why do CPUs have multiple cache levels? by dghughes on Monday August 08, 2016 @12:20PM (#12248902)
Farming is similar $200/tonne of potatoes and one 25kg bag is $10. Quite a difference in what a farmer gets and what the end products costs although not as bad as salt.
Re:Why do CPUs have multiple cache levels? by CyberDildonics on Monday August 08, 2016 @10:09AM (#12247864)
For the amount of salt they contain I would guess that they do.
Re:Why do CPUs have multiple cache levels? by zepolen on Tuesday August 09, 2016 @07:02PM (#12258303)
Wtf this isn't Cunningham's. I had the same thought and did the math and decided to post the results since other people were thinking the same thing.
Re:Why do CPUs have multiple cache levels? by Bluestrike2 on Monday August 08, 2016 @02:42PM (#12249944)
Most physical analogies make me cringe (the security ones are the worst), but that one's perfect.
Re:Why do CPUs have multiple cache levels? by softwarefounder on Monday August 08, 2016 @12:53PM (#12249143)
amazing analogy