What is CPU Cache?

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024

Комментарии • 1,1 тыс.

  • @Goabnb94
    @Goabnb94 8 лет назад +1528

    Imagine memory like a builder with tools.
    Hard drive is the shop that sells tools. Lots of tools to choose from but a lot slower as he'd have to drive to get them.
    RAM is like his van. Smaller in size, but a lot faster for him to access and do his work.
    L3 cache is like his tool belt. Right on him, very small range, but incredibly quick to access, barely slows him down at all.
    L1 & L2 cache are like the tools in his hand. Even more limited, generally only one tool at a time, but incredibly quick to use as he doesn't need to even grab them, they are stored right there ready for immediate use.

  • @BeastOrGod
    @BeastOrGod 8 лет назад +2088

    Woow, Linus hit puberty hard! He is huge!

  • @dapperbrick7516
    @dapperbrick7516 8 лет назад +415

    "Cash with an E"
    So you're talking about Cesh?

  • @ThePreyBrigade
    @ThePreyBrigade 8 лет назад +488

    "Cache with an 'E'"
    That is... not the only difference...

    • @at3036
      @at3036 6 лет назад +18

      cache with an e and cash with an s, does that mean eash and sash?

    • @benjaminmcintosh857
      @benjaminmcintosh857 5 лет назад +3

      Cash with an e and cash with an s are mutually exclusive and only refer to a single word each, not a problem

    • @XorgAdminHappySupport
      @XorgAdminHappySupport 5 лет назад

      @Arch Linux yeah he should've said with an "h".

    • @FarmYardGaming
      @FarmYardGaming 4 года назад +1

      Cashe

  • @_Zekken
    @_Zekken 7 лет назад +26

    this actually explains so much because I have never had a clue what the CPUs Cache does and how significant it is.

  • @Funnydudderdude
    @Funnydudderdude 8 лет назад +40

    Our ICT teacher showed us this today and i got a bit too excited it was a techquickie video

  • @DeadockedlEdiTz
    @DeadockedlEdiTz 8 лет назад +13

    I learned about caching in my CS classes and this was a great simplistic overview of what the cache is/does!

  • @topshicret1962
    @topshicret1962 8 лет назад +61

    SRAM in Polish is literally "I'M SHITTING"

  • @Narwaro
    @Narwaro 8 лет назад +18

    Registers are also a type of memory and they are even faster! But very small at the same time. (512 byte per core on Intel) As the processor can only process data that are stored in registers (needs to be loaded from RAM to cache and from cache to register), organizing cache hierarchy is one of the most important things apart from the actual processing.

  • @parallaxggyt
    @parallaxggyt 8 лет назад +713

    I'm using a hard drive for my cache it's really fast.

    • @TehIdiotOne
      @TehIdiotOne 8 лет назад +190

      I'm using a floppy disk, Works great

    • @dstarr3
      @dstarr3 8 лет назад +99

      CD-RW is best cache.

    • @Ccs4646
      @Ccs4646 8 лет назад +112

      I use relays and punch cards.

    • @wingracer1614
      @wingracer1614 8 лет назад +87

      I just upgraded to punch tape. My old cache was a rope with knots in it.

    • @Ccs4646
      @Ccs4646 8 лет назад +27

      ***** I use electrons...

  • @4CiiD3
    @4CiiD3 8 лет назад +859

    Where can i download more cache ?

    • @_ben.
      @_ben. 8 лет назад +142

      You gotta have high quality pixels first

    • @tromino2598
      @tromino2598 8 лет назад +13

      Can I use high quality rips instead?

    • @skyr8449
      @skyr8449 8 лет назад +13

      I'm almost afraid you are serious lol

    • @Fredjoe5
      @Fredjoe5 8 лет назад +6

      The process for doing that is very...MESI... :)

    • @alex_ta_8563
      @alex_ta_8563 8 лет назад +73

      You can't download cache! You only can download RAM.
      stupid kid

  • @momeningod5402
    @momeningod5402 8 лет назад +76

    don't scroll down to the comments its has nothing related to the video subject
    thank you ... thank me later ;)

    • @AgarFirey
      @AgarFirey 5 лет назад +1

      wth you're actually a genius

    • @Jon-nx5ut
      @Jon-nx5ut 4 года назад

      Thank (hope I'm not too late)

  • @BrownieX001
    @BrownieX001 8 лет назад +3

    I didn't think this would be that accurate. But you covered all the basic points. You guys are really doing your research. I appreciate that.

  • @RadiusNightly
    @RadiusNightly 8 лет назад +5

    To put it in perspective, more CPU cache means CPU can bite more information from RAM, means more data will be done in same amount of time. Manufactures usually scale CPU caches with a CPU power.
    For example, cracking ZIP password with brute force attack is usually based on true CPU power, his cores and caches, so...
    T9400 are Intel mobile CPU for laptops, it got 2.66GHz speed, got 2 cores, L2 cache of 6MB as 24-ways, using 35W.
    Phenom II X6 1100T are AMD desktop CPU, it got 3.3-3.7GHz, got 6 cores, L3 cache of 6MB as 48 way set, using 125W.
    So, AMD got like 2 times more GHz, 2 times more transistors, 3 times more cores, additional cache level thats supposed to organize data better and make it faster, and its freaking desktop CPU, but, they both cost same amount of money, both got 6MB of cache, both are 45nm, etc., and tests shows they both have same power, around 27 000 000 passwords per second.
    So keep in mind that CPU cache is one additionally factor in processing, bigger cache are like bigger mouth, the more you can bite, the more you can process and eat in same amount of time.

    • @zjp735
      @zjp735 2 года назад

      Dude your explanation is much better 👍

    • @RadiusNightly
      @RadiusNightly 2 года назад +2

      @@zjp735 Oh, its been 5 years, but thank you. 👍
      Also noticed i didnt say that "bite" are referring to cache size bite from the RAM, and "eat" to CPU cores/threads/speed. Means the biggest "cache bite" of a eg. 96MB would be totally useless (energy useless, price useless, speed useless, parts useless) if CPU would processing it with single tooth (like 1 core, single thread, 1Mz), because it would take long before its swallowed.
      Thats why i think no one should pay attention to cache, specially if its smart shared cache, and it can be used as some kind of a CPU horsepower representation, like how big mouth he got, how much he can bite and process, if he got a big mouth, theres reason why he can eat more, and its set up by engineers who created it.
      For example 3MB in modern technology can do everything for home/office and even gaming, 6MB can probably do more calculations, bigger bite, less time accessing RAM (RAM is like 20GB/sec speed, while cache are like 20TB/sec, so reading RAM could be considered as "slow down"), if its old, with no new technology, its probably bad for next gen stuff, and if it has 96MB+, thats some kind of a Xeon range that are only needed by servers and ECC RAM or something like that.
      Also pay attention to "shared", AMD can put big 24MB cache, while at the same price range Intel can have small 6MB, good for ADS, differences are that shared or smart cache actually using single big chip for cache (cheaper) thats divided according to CPU cores (eg. 24MB, 4 cores, means 6MB per core), something like having 4 partitions on single USB drive, it can be bottleneck, its a single drive. While standard cache, eg. 6MB (not smart, not shared) are more expensive then big shared/smart, so if eg. Intel says 4 cores, 6MB cache, it means each core got his own 6MB cache (more expensive, more smaller, less heat per individual cache), means 4x6MB, also 24MB in total for 4 cores, but 4 times the speed (4 drives got more throughput then 1 drive alone), more expensive, and of course "24MB shared" sound better and cheaper then "6MB", or "48MB shared" vs "12MB", thats kind of a ADS to pull buyers who believe in free stuff, "good but cheap", even they know theres no such thing as "bad but expensive" to ask for.
      But i would not buy CPU watching only cache on its own, as i said, CPU with 6MB are good, but the one with 12MB probably have reasons (like overall performance speed) why its built with that amount of cache, its probably his performance "limit", where having more cache would be useless, and having less would be bottleneck for a given cores.

    • @zjp735
      @zjp735 2 года назад

      @@RadiusNightly thanks dude I learn a lot, I been using computer for decades but I never check CPU cache when buying I just check CPU like i5 i7 or i9 the higher the number means better also higher the clock speed the higher computing power.

  • @darianalexander5503
    @darianalexander5503 8 лет назад +809

    More cash, more cashe.

    • @darianalexander5503
      @darianalexander5503 8 лет назад +7

      +Christopher Tan Well, honestly no. Accidental typo... but let go with that.

    • @jeremyaxel
      @jeremyaxel 8 лет назад +4

      +Christopher Tan Let me guess, spelled "spelled" wrong on purpose

    • @aljerbench
      @aljerbench 8 лет назад

      +Snoop “MLG” Doge It isn't wrong though... He spelt "spelt" correctly. Spelled/spelt are both correct :)

    • @aljerbench
      @aljerbench 8 лет назад

      +Christopher Tan ahahah yeah :)

    • @MacMcLinn
      @MacMcLinn 8 лет назад +1

      lol.....................,......,.....................................,...............

  • @cdngamereh
    @cdngamereh 8 лет назад +18

    Played @ 1.25 speed after 5 seconds..
    "ah there we go, linus' speed"

  • @HULKHOGAN1
    @HULKHOGAN1 6 лет назад +6

    Informative, well paced and with interested editing. This is an example of a perfect tech explanation video! Thanks

  • @ej_tech
    @ej_tech 8 лет назад +90

    Most computers now have more cache than a 1.44MB floppy. My laptop with a Core i5 has 3MB L3 cache.

    • @rewjik7998
      @rewjik7998 8 лет назад +1

      still doesnt make it any better

    • @TheBoyChur
      @TheBoyChur 8 лет назад +4

      mine has 30mb >.

    • @panos1b
      @panos1b 8 лет назад

      i have 24mb of smart cache

    • @mongocom1735
      @mongocom1735 8 лет назад +1

      My 2011 dual core i2 has 6mb L2 cache

    • @pcgaming3d
      @pcgaming3d 8 лет назад +19

      i2 processors are da best

  • @otdave96
    @otdave96 8 лет назад +4

    Nice explanation. You've mixed add a couple concepts there I would like to clear out. First of all, the problem with RAM is not bandwidth but latency. A RAM module can transfer data pretty quickly, but it does spend a fair amount of time since the processor asks for a block of memory until it begins to transfer. That's why cache is essential, it's basically a very low latency memory.
    Second, most desktop modern processors (and even ARM smartphone processors) have prefetch mechanisms. This is the part you describe as the processor guessing "what will the software need next" (which is an accurate description actually), but you do imply that the algorithms used by prefetch are the culprits of all the cache misses, which is not true. Not everything loaded into the cache is loaded by the prefetch hardware. It's more accurate to think of the cache as more of a "Recently used memory" kind of deal, with prefetch being a nice addition to it (turning into a "Recently used memory + memory we are probably going to use").
    Third, by no means the cache (or prefetch) uses "complex algorithms". The whole point of a cache is to be fast, and if it spent too much time thinking what block to get next it would slow down the processor and by the point it had decided what block to load, the processor would already need it. This is why algorithms used in prefetch are very simple (and they work well). Some older processors just prefetched the next block when data was accessed. There are some other more complicated optimizations, of course, but the whole point of them is speed, and simplicity is the key of speed.
    Sorry for the long comment guys, and nice work Luke!

    • @otdave96
      @otdave96 8 лет назад

      Short answer: Because the point of it is that RAM is slower than cache memory.
      Long answer: RAM is slower than cache because-
      1 - It's built differently. Cache memory is built purely with transistors which is fast, but expensive. RAM is built with very very small condensers, that take time to "write" and "read", but are cheaper to make, so the technology itself is slower.
      2 - You need to re-write it every time you read it, and several times a second. In order to read the bits, you need to discharge the condensers in the memory, which effectively destroys the data each time you read it, so you have to re-write it. If it wasn't enough, they will discharge alone. About 20 times a second.
      3 - It's big. RAM's logic is much more complex, as it needs to activate certain memory rows in certain chips only, and connect them to the output, which takes time. The time this process takes is called "Latency", and sometimes it's greater than the time it takes for the data itself to travel to the processor.
      4 - It's far away. Yes, in modern processors even the time it takes for the electrons to travel within the chip is significant. The time it would take for the data to travel from the RAM itself to the processor if it had no latency would be greater still than reading cache memory.
      So the point of cache is to consult RAM as little as possible, because it being slower would mean the processor having to go slower.

    • @otdave96
      @otdave96 8 лет назад

      ***** answered you but forgot to mention you ;)

  • @amj3497
    @amj3497 4 года назад

    My lecturer showed this during our lecture and that was the only time I learned something during her lecturer. Thanks Techquickie!

  • @tonyhuynh11
    @tonyhuynh11 8 лет назад +263

    I don't have alot of cache but do you take debit?

  • @NamesZKP
    @NamesZKP 8 лет назад +44

    "Even more better"

  • @dino130395
    @dino130395 8 лет назад +5

    1:40 "I can assure you, MY CACHE IS TREMENDOUS! Believe me, everyone says so" - D.J.T.

  • @G8tr1522
    @G8tr1522 8 лет назад +3

    omg, 2 minutes in and this is already one of the most informative, accurate, and concise videos I've ever found on this topic.

  • @Gamevet
    @Gamevet 8 лет назад +11

    I've wondered for quite some time why my Core2Quad had 12MB of L2 cache, while processors like Sandy Bridge touted their cache being L3?
    Why was there a sudden exodus from CPUs being heavy on L2 cache?

  • @MrNick0230
    @MrNick0230 8 лет назад +2

    Overall a good video. It could have been cool to point out how big of a portion of the total die the cache actually takes up. To me it is cool information that is still accessible to the general public. I understand that you may not necessarily want to talk about paging and how the cpu decides what extra data to grab after a cache miss and so on.

    • @kaleenakelly9448
      @kaleenakelly9448 2 года назад

      Will you explain this? I'm taking an online course in computers and its so abstract. CPU itself I'm having trouble understanding it's function... It powers computers on and off and transfers information and memory with electricity? Save me.

  • @raidenx147
    @raidenx147 7 лет назад +37

    Cache is pronounced as Cash? I thought it was pronounced cash-aye.

    • @davidharms7546
      @davidharms7546 7 лет назад +2

      Raidenx147 Have you say, I haven't head your version before. I've only heard "cash" and "cay-sh"

    • @2drealms196
      @2drealms196 7 лет назад +1

      That is the french pronunciation like 'forte'.

    • @eightyeight3694
      @eightyeight3694 6 лет назад +1

      ikr, I need to learn a different language, english is too messed up

    • @ax2bxc
      @ax2bxc 6 лет назад +9

      Caché

    • @wlcmtoricefieldsmf
      @wlcmtoricefieldsmf 3 года назад

      @@WikiForce Same

  • @camilowish
    @camilowish 8 лет назад +2

    Love how they put a picture of oldschool DIMMs instead of DDRs when they mentioned RAM. Hadn't seen those in a long time.

  • @Aaron14LifeZZZ
    @Aaron14LifeZZZ 8 лет назад +12

    Very informative video as always :D

  • @BritishEggz
    @BritishEggz 2 года назад +2

    Haha I remember they showed us this video in 9th grade (UK)
    And the teacher said after “alright that’s a cpu cache explained by a cool Canadian fella”

  • @Iraklis735
    @Iraklis735 8 лет назад +19

    puns were bad as always.....10/10 would watch again

  • @DecentNecessary
    @DecentNecessary 3 года назад +1

    While watching this video I got an ad starring Linus about pulseway. Not realizing it was an ad I kept watching. Only to realize it was an ad

  • @davezrour
    @davezrour 8 лет назад +12

    Make a vid about ram timings

  • @QuentonFarnes
    @QuentonFarnes 8 лет назад

    what is like to see in a future video is a video on OSVR and how it stacks up against steam VR and occulus.

  • @zipper978
    @zipper978 8 лет назад +164

    I hear cache and think CS GO

  • @Soyerz
    @Soyerz 8 лет назад

    Can I please have a job making your hilarious illustrations? They get me every time.

  • @totinospizzarolls4737
    @totinospizzarolls4737 8 лет назад +190

    Luke is getting quite the belly...

    • @richieh7476
      @richieh7476 8 лет назад +31

      He's got the dad bod going

    • @azzoubk6777
      @azzoubk6777 8 лет назад

      Hahahaha nice

    • @tonyhuynh11
      @tonyhuynh11 8 лет назад +1

      Me too

    • @michaelgonzales1365
      @michaelgonzales1365 8 лет назад +4

      Hmm, thought he looked skinnier. What the heck are we talkin' about we are men! Leave the vanity to the women brah!

    • @matthewdecker4884
      @matthewdecker4884 8 лет назад

      I thought he was looking slimmer.

  • @PouyaAtaei
    @PouyaAtaei 3 года назад +2

    Do not confuse the terms 'memory' and 'storage'. Do not refer to a HD as a 'memory'.

  • @isee7283
    @isee7283 8 лет назад +50

    U WOT M8?

    • @warunadevaka406
      @warunadevaka406 6 лет назад +2

      U WOT M8” is a shorthand for “You what, mate?

  • @PunmasterSTP
    @PunmasterSTP 2 года назад

    CPU cache? More like “Cool information that’s fresh!” Thanks for sharing.

  • @istvantech
    @istvantech 8 лет назад +11

    We need cache RAM disks (Cache-disks?)!
    Imagine the possibilities: Slowing down your CPU for having an ultra fast floppy disk XD

    • @cldream
      @cldream 8 лет назад +3

      Not big enough to store anything we have nowadays.

    • @rjfaber1991
      @rjfaber1991 8 лет назад +5

      +ki2ne - Well, it could be. It would just be prohibitively expensive...

    • @cldream
      @cldream 8 лет назад

      +Robert Faber That too.

    • @moritzrudolf5370
      @moritzrudolf5370 8 лет назад

      I had the exact same thought. Clearly this storage would be super fast, but it's only a few MB. You won't be able to store much data.

    • @MrDavibu
      @MrDavibu 8 лет назад

      That's the whole compromise, you can access data faster, but have less capacity or less safty like in GDDR and HBM.
      Also the Cache isn't the fastest memory in Computers, it's the Procesor register...

  • @weasels6354
    @weasels6354 5 лет назад +1

    Luke: "...Or your hard drives, or SSDs"
    Hybrid storage: *"Am I a joke to you?"*

  • @RexinOridle
    @RexinOridle 8 лет назад +30

    Why does Luke look like the Hulk?

    • @VascoBreitenfeld
      @VascoBreitenfeld 8 лет назад +2

      try to say that 3 times reaallly fast ;)

    • @XiAwesomeGodziX
      @XiAwesomeGodziX 8 лет назад +7

      1. Why does Luke look like the Hulk?
      2. Why does Luke look like the Hulk?
      3.Why does Luke look like the Hulk?
      Anything else you want me to do?

    • @nesyou8103
      @nesyou8103 8 лет назад

      +Victor Parker Gfys

    • @XiAwesomeGodziX
      @XiAwesomeGodziX 8 лет назад +2

      +You Nes done.
      Anything else you want me to do?

    • @nesyou8103
      @nesyou8103 8 лет назад

      +Victor Parker That's just sad, Bro. It was just a joke...

  • @danielescotece7144
    @danielescotece7144 8 лет назад

    Computerphile did a really good job explaining this, but you guys made it way cooler!

  • @biddera6825
    @biddera6825 7 лет назад +7

    casually helping me pass my GCSE whoop whoop

  • @Finkelfunk
    @Finkelfunk 8 лет назад +1

    Actually: In order to make any sort of calculation your CPU has to hold a certain set of numbers inside of it called a "register".
    Since the signals all mutually depend on each other the processor has a build in memory of it's own. Your CPU wouldn't even work without it since it needs to be able to hold the instructions to process the information it's receiving.
    It's nearly impossible to use a CPU bus for calculations without using these built in memory caches.

  • @generichandle7
    @generichandle7 4 года назад +20

    Ram name suggestions:
    shRam
    bRam
    tRam
    mRam
    gRam
    fRam

  • @EirinaiosCharizonas
    @EirinaiosCharizonas 7 лет назад +1

    Cache also helps rendering a lot of youtube videos while multitasking like downloading at the same time.If cache isnt available it will make the game to stop loading to render the youtube video or the opposite.

  • @denvera1g1
    @denvera1g1 8 лет назад +3

    i've always wondered if it would be possible to make an L4 cache, have it be basically as fast as L3 but outside of the processor, in a small LGA or rPGA socket near the processor, with say 600 pins with the pin density of lga2011, but with this dedicated cache socket you could have an al-gore-rhythm that caches, say 1GB of system ram with a 95+% hit rate

  • @___Robin___
    @___Robin___ 8 лет назад

    I kinda miss the days techquickies were described as fast as possible, it almost was that fast you couldn't keep up processing all the info. Nowadays you can sit back drink a mug of coffee, be half asleep and you can still keep up.

  • @VerticalGamer
    @VerticalGamer 7 лет назад +24

    I'm out of cache. How do I download more? Will my 5kbit internet be fast enough?

    • @azanali4577
      @azanali4577 7 лет назад +2

      i downloaded some cache from 4chan with my 2bit connection you're set

    • @Xenon1825
      @Xenon1825 7 лет назад +7

      Sure, but if you find a high quality site, you're gonna want to download faster internet, shouldn't take long though!

  • @saskiavanhoutert3190
    @saskiavanhoutert3190 6 лет назад

    Very fast and vivid explanation, nice that someone like faster speed in technology, perhaps it increases a better money-stream, THANKS.

  • @factsverse9957
    @factsverse9957 8 лет назад +8

    HDD

    • @miltonrazon7838
      @miltonrazon7838 4 года назад

      what is the large difference between M.2 SSD and SSD in speed?

    • @secondaccount9930
      @secondaccount9930 3 года назад

      @@miltonrazon7838
      M.2 SSD is vague, it can be the slower SATA 3 standard or the much faster PCIe specification.

    • @batedjupiter
      @batedjupiter 3 года назад

      U gotta add register memory (fastest)

  • @dkis8730
    @dkis8730 8 лет назад

    how to get liver cancer: take a shot every time Luke says heck

  • @Chuckiele
    @Chuckiele 8 лет назад +20

    What about creating a level 4 cache with HBM and abandon DDR4? Wouldnt that be a nice boost?

    • @radomiami
      @radomiami 6 лет назад

      Yep

    • @youtuberobbedmeofmyname
      @youtuberobbedmeofmyname 6 лет назад

      Chuckiele genius

    • @inspectorpufferfish4213
      @inspectorpufferfish4213 6 лет назад +3

      It's not a question of speed but also a question of latency. Cache memory always has really low latency, hence the incredibly high price of cache memory.

  • @BudgiePanic
    @BudgiePanic 8 лет назад

    I was wondering about this earlier, I get home from school and bam answers right in my sub box

  • @saiyanseeds5084
    @saiyanseeds5084 2 года назад +3

    Would you like to say how you dont need hyperthreading now?

  • @PranayZVlogs
    @PranayZVlogs 5 лет назад +1

    techquickie has the best comment section!

  • @srp770
    @srp770 4 года назад +5

    I was expecting Linus lol

  • @alexanderflorizone7187
    @alexanderflorizone7187 3 года назад

    It's the money the CPU uses to buy his friends ice cream

  • @AlanTorres-tl4ms
    @AlanTorres-tl4ms 7 лет назад +7

    Teraflops explained as fast as possible?

    • @riufq
      @riufq 7 лет назад

      Search in google bro

    • @2drealms196
      @2drealms196 7 лет назад +1

      How many trillion floating point operations your gpu can processes in one second. Fundamentally 'graphics' are just a bunch of numbers and graphics rendering all comes down to about processing and calculating numbers. The faster you can do it the faster you can render graphics.

  • @frankynakamoto2308
    @frankynakamoto2308 7 лет назад +1

    If the CPU has more cache memory inside of it, it could play video games much better, a triple core processor with 20gb of Cache you could save the patch of the game, so the patch of the game can be saved in the cache and it could run 4K without losing frame rates, which is very good idea.

  • @251IA
    @251IA 8 лет назад +8

    *POP QUIZ* why do general processors have only 3MB L3 cache... why not just chuck 1GB in caches? Then you get Cache hit rate of like 95%?

    • @zap813
      @zap813 8 лет назад +6

      Hit rate isn't everything. A really big cache suffers the same problem as system memory. That is, the hit TIME is very slow, so even with a high hit rate, overall it is slow to access. But anyway, large caches aren't needed, as even small caches with a few MBs these days can achieve hit rates of 90%+ due to temporal/spacial locality, prefetching, associativity, and a number of other tricks.

    • @jobjackobrien
      @jobjackobrien 8 лет назад +4

      It's expensive and takes up more space per gigabyte. The tiered system was brought in when cpu clock overtook ram clock back in the 80s or something

    • @SniperReady
      @SniperReady 8 лет назад +3

      Zap is right, but also the faster SRAM is also much more expensive.

    • @1stLuis
      @1stLuis 8 лет назад +4

      L3 is not the fastest. The ideal would be a huge L1 Cache, as it's the fastest Cache (Memory in registers is even faster and can match CPU speed). But as mentioned, L1 is huge (size wise), it costs a lot (money), and it consumes a lot of energy (Hence it generates a lot of heat).
      in order to relieve some of that, L2 was implemented. Then L3 and L4.
      So DRAM feeds L3, L3 to L2, and L2 to L1. The lower the level the faster, but with downsides. The higher the level, the higher memory amount.
      Intel implemented L4 in some GPU's.

    • @anujgupta3397
      @anujgupta3397 8 лет назад +5

      logically u can bt will u pay $1 million for ur CPU?
      bcoz cache memory is very expensive as it requires flip flop circuits which require larger area and has small memory density as compared to capacitors on dram
      bt on the positive side cache memory is incredibly fast like
      L1 cache memory operates at the speed of CPU which means it operates around ~50GB/s bt on downside they are expensive

  • @CarstenSvendsen
    @CarstenSvendsen 8 лет назад

    The editing job on this video is marvelous though.

  • @RyutakuZaki
    @RyutakuZaki 7 лет назад +3

    I use an abacus as cache

  • @theaverageblitzer4351
    @theaverageblitzer4351 3 года назад +2

    25 years from now is just gonna be you only have 50gb of CPU cache!?

  • @blumac9801
    @blumac9801 6 лет назад +5

    Ok I always pronounced it as CPU catch instead of cash...

  • @KayuDachi01
    @KayuDachi01 4 года назад

    There was an ad before this video and the endorser is linus

  • @ZAR556
    @ZAR556 5 лет назад +7

    2019
    AMD Ryzen 3000 have up to 64mb cache
    Whole lot than Intel offer

    • @jamesisaac7684
      @jamesisaac7684 5 лет назад +2

      But still worse than intel in gaming.

    • @ZAR556
      @ZAR556 5 лет назад +2

      @@jamesisaac7684
      Aah, nice joke

  • @chlbrn
    @chlbrn 8 лет назад +1

    My XEONs have 50MB level 3 cache in total, though they are low at frequency, they still perform good in games and they are a lot better when doing rendering and map baking.

  • @Ryzza5
    @Ryzza5 8 лет назад +13

    Cash + e != Cache

  • @bakmanthetitan
    @bakmanthetitan 8 лет назад

    Please do a Workshop episode aboit this!

  • @crossvadar249
    @crossvadar249 Год назад +4

    AHOY from the x3D age.

    • @portman8909
      @portman8909 10 месяцев назад +3

      96 megabytes of L3 cache is literally insane man

  • @timbaleno9269
    @timbaleno9269 3 года назад

    Wow, baby Luke. So young, so full of hope.

  • @frog382
    @frog382 8 лет назад +6

    i did 771-775 mod and my Xeon x5450 have 12 mb or l2 cache xD

  • @theunbeatableboss4611
    @theunbeatableboss4611 7 лет назад

    One important factor is that if a programmer wants or needs to they can force the computer by some programming trickery to keep things in cache... this is mostly important in scientific or data intensive tasks

  • @7ngaf
    @7ngaf 4 года назад +2

    Thank you for taking time to explain this although I must say I got nothing

  • @ebymichale77
    @ebymichale77 3 года назад +3

    Who's Watching this in 2021?

  • @takeshi7
    @takeshi7 8 лет назад

    I can't believe you talked about cache without covering set associativity, which is very important in cache design. A 4MB all-way set associative cache will be MUCH MUCH better than an 8MB 2-way associative cache.

  • @TheGamingSharieff
    @TheGamingSharieff 3 года назад +3

    Claim your “here before a million views” ticket here

  • @WarriorsPhoto
    @WarriorsPhoto 8 лет назад

    Good video Luke. Very good description of Cache not Cash.

  • @notNavindu
    @notNavindu 8 лет назад +5

    Explain the new xbox one *S*... I bet u can't

    • @PneumaticFrog
      @PneumaticFrog 8 лет назад +1

      you*

    • @AmilaNirmalPerera
      @AmilaNirmalPerera 7 лет назад

      Navindu Amarakoon 😂

    • @Teth47
      @Teth47 7 лет назад +1

      It's a shitty Windows 10 PC with missing features to make up for inadequate hardware. Games have the more computationally expensive graphics settings disabled entirely (AA, most anisotropic filtering), and still choke on games a 1060 has no problem with on a real PC.

    • @elijahnewman4631
      @elijahnewman4631 6 лет назад

      oof, u right

  • @부카
    @부카 Год назад +2

    Thank you for the great video
    so does v cache cpu had more latency than non v cache cpu? or it does not matter

  • @sadboigravy
    @sadboigravy 8 лет назад

    Luke looked so proud of his pun

  • @deletedgamer111
    @deletedgamer111 7 лет назад +1

    * mentions 16 gigs of ram *
    * shows a photo of old DDR1's *

  • @devilsoffspring5519
    @devilsoffspring5519 7 лет назад

    A simpler (and more accurate) explanation is that your CPU wouldn't be able to work continuously at its full speed if it was always dependent on the system RAM, because the system RAM has latency, which is a time delay between the point where information is requested, and when it becomes available to the CPU.
    The CPU cache has no latency, and it also runs at CPU speed--so it allows the CPU to work continuously at its full speed, instead of spending most of its time doing nothing while waiting out the latency period of the system RAM.
    So, the CPU cache's job is to 'hide' the main memory's latency.

  • @jackgreen9213
    @jackgreen9213 8 лет назад

    "U wot m8" - RAM sticks for president 2016

  • @bluehampar
    @bluehampar 8 лет назад +2

    Cache misses can also be avoided by good programming

  • @OnlyNeedJuan
    @OnlyNeedJuan 8 лет назад +1

    Man, I wish I had the Cach for a new CPU.

  • @rockguy5784
    @rockguy5784 6 лет назад

    Man Luke was thin two years back.
    Oh, the memories.

  • @yumri4
    @yumri4 8 лет назад

    the SRAM is around 32KB of never changing instruction while the the other part of L1 is 32KB per core for very fast cache of data just used stored to be again for the next operation done
    as L1 is so small it can go almost as fast if not as fast as the cpu physical core
    L2 is bigger so it takes longer to search and is used for when the data in L1 is finsihed for the first round of loops around
    L3 is used as a storage place for what the memory controller thinks the cpu core will need next so fetches it from system RAM and stores it inside L3 to be used

  • @boggybolt6782
    @boggybolt6782 8 лет назад

    Damnit, was just about to post here that cpu cash(cache) is the money u spend on a cpu, but u already covered that.

  • @dmaster20ify
    @dmaster20ify 7 лет назад +1

    [1:12] is so hilarious and so informative. As a hard working employee that can turn around to bite you. Because you finish your tasks very quickly, only to have boss man catching you sitting doing nothing. If you do labour intensive work they don't care that you did your task. They care that you work all of the hours they pay you for.

  • @coxfuture
    @coxfuture 8 лет назад

    oh come on, you missed the opportunity to use the "speaking of cash" segue to the sponsor ad

  • @carpediem73
    @carpediem73 5 лет назад

    Thank you, this is helping me in my studies.

  • @nickdvorchak1534
    @nickdvorchak1534 8 лет назад

    damn techquickie almost at 1M subs!

  • @MukeshSingh-zb3hu
    @MukeshSingh-zb3hu 6 лет назад

    hears a different voice as soon as clicking on the video, "oops wrong video"

  • @poopipeboy3033
    @poopipeboy3033 8 лет назад +2

    When is anyone ever going to do testing to find the REAL benefit of more cache?
    Usually the explanation of cashe is that "cache is fast memory and makes your processor faster hurr durr", yet nobody has a clue about what the real world difference would be between 6MB of cache and 12MB of cache if the processors were otherwise identical.

    • @skifree0
      @skifree0 8 лет назад

      the analysis of that would require probably insider knowledge of how Intel's prefetching algorithms and architecture works as well. unlike DRAM or general storage, there is no standard protocol for communicate between the cores and it's cache. the level of optimization could go down to the specific configuration of the cpu (i.e. a different core/clock config will have different optimizations for its cache).

  • @GyprockGypsy
    @GyprockGypsy 4 года назад +1

    Dudes, the new Ryzen 3900x! 64 MB of L3!!!!! Dwarf Fortress will never lag again.

  • @NareshEnglishprogramme
    @NareshEnglishprogramme 3 года назад

    excellent job