Why do CPUs Need Caches? - Computerphile

309,703
0
Published 2015-11-20
We've all heard of web browser caches, but why does a super fast modern CPU need a cache? Because it's too fast. Dr Steve "Heartbleed" Bagley explains.

Professor Steve Furber on Building the BBC Micro:    • Building the BBC Micro (The Beeb) - C...  
How Computer Memory Works:    • How Computer Memory Works - Computerp...  
Why Asimov's Laws Don't Work:    • Why Asimov's Laws of Robotics Don't W...  
The Problem with JPEG:    • The Problem with JPEG - Computerphile  

www.facebook.com/computerphile
twitter.com/computer_phile

This video was filmed and edited by Sean Riley.

Computer Science at the University of Nottingham: bit.ly/nottscomputer

Computerphile is a sister project to Brady Haran's Numberphile. More at www.bradyharan.com/

All Comments (21)
  • @simon24h
    Modern CPUs often have three caches, the one that is described by this video (separate for data and instructions) is the L1 cache, the fastest, and every core has it's own. L2 is larger often shared between cores (2 on my system) . L3 is the biggest and there is only one for the actual chip on which the cores are.
  • @robharwood3538
    Good use of animations to help visualize the explanations. Kudos to the animator(s).
  • @jaffarbh
    Just a bit of clarification, nowadays RAM chips can be clocked faster than the CPU, but the latency remains quite high (relatively), so cach memory is here to stay indeed.
  • @user-id1gr8ts4p
    2:42 all my years-long confusion about cache wiped out with the 20 second animation. It's fantastic Computerphile!
  • @rchandraonline
    cache hits and misses, cache consistency, cache locality, write-through vs. writeback, cache segmentation (as mentioned, instruction and data), multiple cache levels...cache is a moderatly complex and very much researched topic. This however is a great introduction to the basics.
  • @TheEulerID
    The cache is the kitchen cupboard, main memory is the corner shop and disk storage is buying on-line at a supermarket. It's a lot quicker to get the cornflakes out of the cupboard than walk to the corner shop for the same item, let along wait a couple of days for them to be delivered.
  • @pacrat90
    Always so excited to open my browser on a new computerphile video! Thanks for the quality videos.
  • @DavidTurnell
    Thank you so much for not saying uuum, uuum, uuum every sentence. Remember you are the result of tens of thousands of years of recent human evolution. Be proud of this.
  • Really great explanation. Simple and informative! Though, it is kinda sad, that it is impossible to disable cache, just to feel, how important it is.
  • @SCB666
    Best explanation about what cache is I've ever listened to.
  • @VickyBro
    Wow. What a clear and succinct information.