CPU Cache Explained – What is Cache Memory?



What is CPU cache? This is an animated video tutorial on CPU Cache memory. It explains Level 1, level 2 and level 3 cache. Why do CPUs need cache?

source

This Post Has 41 Comments

  1. 막말

    개씨발 자꾸 이게 왜 내 알고리즘에 뜨는거임?

  2. Sabit Kondakçı

    Thanks for the video , I want to add a couple of infos about L1 , L2 , L3 and Cache Line

    L1 cache : 32KB – 256KB ~ 1ns to 2ns (2-4 cycles) R/W – SRAM
    L2 cache : 256KB – 1MB ~ 3ns to 5ns (6-10 cycles) R/W – SRAM
    L3 cache : 3MB – 6MB ~ 12ns to 20ns (24-40 cycles) R/W – SRAM
    D-RAM : ~ 60ns (120 cycles) R / writing takes longer than 90ns.

    L3 cache feeds L2 , L2 feeds L1.
    L3 cache is only used when a task is rather dense or a task, process needs computationally challenging work.
    – in general use case CPU makes use of L1 & L2 most of the time –

    Cache Line :
    When the processor accesses a part of memory that is not already in the cache it loads a chunk of the memory around the accessed address into the cache, hoping that it will soon be used again.

    The chunks of memory handled by the cache are called cache lines. The size of these chunks is called the cache line size. Common cache line sizes are 32, 64 and 128 bytes.

    A cache can only hold a limited number of lines, determined by the cache size. For example, a 64 kilobyte cache with 64-byte lines has 1024 cache lines.

  3. jtouch99

    Brilliant channel! Just subscribed. Thank you

  4. Guy Unknown

    This guy can teach you rocket science within 10 mins. 💪

  5. looneyburgmusic

    The problem with a cacheless CPU is not that main RAM is not fast enough, but rather OS/programs have become far too bloated.

  6. Showbik Showmma

    can u make a video about how and why a computer uses binary code, and how they understand our language into binary

  7. Rob Hinkforh

    Alright. So, when a computer is powered up does the Cache retain memory from the last time the computer was on. I understand the DRAM doesn’t but what about the SRAM ?

  8. Mish Moosh

    I am a visual learner and your videos have helped me grasp these topics much more easily compared to when I only study the reading material. Thank you!

  9. 32KZ

    dude, you are a fucking life-saver.

  10. Alexey Filatov

    I think if you created a CS full scale course, it would rule the world.

  11. bikeboy66

    This is now my absolute go-to channel for learning about computer stuff. A huge thanks to PowerCert

  12. wonderwoman523

    I really love how you explain in your videos. They are so much easier to understand. especially for those who are beginners in the I.T. field. Thanks for this.

  13. Duygu D.

    This is the most good explanation which I watch, thanks

  14. Dat Le

    Totally awesome video , I have subcribed right away , very easy to understand , especially with the beautiful slide shows and animations . Keep on the good work !!

  15. hamza laaraj

    Could you make a video about graphic cards, and thanks for the great explain…

  16. BattleRBX

    Meanwhile me deleting cache thinking its making my game slow💀💀💀💀💀💀💀

  17. Ravuth Oum

    Very well explained. Kudos. Subscriber now. Love the animation.

  18. Goody Kween

    So does this mean that every computer has the Level 1 (L1) cache?

  19. Something is missing in the video, isn’t the north bridge processor the bridge between the CPU and every other chip on the motherboard

  20. TSN

    CPU cache is normally only a few MBs. What is being stored on there that is making such a difference in speeds? It seems like a pitiful amount of data compared to the size of modern programs and games that are hundreds of MB, or tens of GB in size?

Leave a Reply