What is CPU Cache?

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 1,1 тис.

  • @Goabnb94
    @Goabnb94 8 років тому +1537

    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 років тому +2099

    Woow, Linus hit puberty hard! He is huge!

  • @dapperbrick7516
    @dapperbrick7516 8 років тому +420

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

  • @ThePreyBrigade
    @ThePreyBrigade 8 років тому +491

    "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 8 років тому +27

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

  • @momeningod5402
    @momeningod5402 8 років тому +77

    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)

  • @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

  • @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.

  • @Funnydudderdude
    @Funnydudderdude 8 років тому +40

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

  • @parallaxggyt
    @parallaxggyt 8 років тому +714

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

    • @TehIdiotOne
      @TehIdiotOne 8 років тому +191

      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 років тому +86

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

    • @Ccs4646
      @Ccs4646 8 років тому +27

      ***** I use electrons...

  • @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!

  • @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.

  • @topshicret1962
    @topshicret1962 8 років тому +61

    SRAM in Polish is literally "I'M SHITTING"

  • @tonyhuynh11
    @tonyhuynh11 8 років тому +263

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

  • @darianalexander5503
    @darianalexander5503 8 років тому +808

    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.....................,......,.....................................,...............

  • @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.

  • @HULK-HOGAN1
    @HULK-HOGAN1 6 років тому +6

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

  • @amj3497
    @amj3497 4 роки тому

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

  • @cdngamereh
    @cdngamereh 8 років тому +18

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

  • @factsverse9957
    @factsverse9957 8 років тому +8

    HDD

    • @miltonrazon7838
      @miltonrazon7838 4 роки тому

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

    • @secondaccount9930
      @secondaccount9930 4 роки тому

      @@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)

  • @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

  • @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.

  • @NamesZKP
    @NamesZKP 8 років тому +44

    "Even more better"

  • @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 ;)

  • @dino130395
    @dino130395 8 років тому +5

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

  • @Iraklis735
    @Iraklis735 8 років тому +19

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

  • @Aaron14LifeZZZ
    @Aaron14LifeZZZ 8 років тому +12

    Very informative video as always :D

  • @danielescotece7144
    @danielescotece7144 8 років тому

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

  • @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?

  • @PranayZVlogs
    @PranayZVlogs 5 років тому +1

    techquickie has the best comment section!

  • @raidenx147
    @raidenx147 8 років тому +37

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

    • @davidharms7546
      @davidharms7546 8 років тому +2

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

    • @2drealms196
      @2drealms196 8 років тому +1

      That is the french pronunciation like 'forte'.

    • @eightyeight3694
      @eightyeight3694 7 років тому +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.

  • @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

  • @saskiavanhoutert3190
    @saskiavanhoutert3190 6 років тому

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

  • @isee7283
    @isee7283 8 років тому +50

    U WOT M8?

    • @warunadevaka406
      @warunadevaka406 6 років тому +2

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

  • @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.

  • @saiyanseeds5084
    @saiyanseeds5084 2 роки тому +3

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

  • @PouyaAtaei
    @PouyaAtaei 3 роки тому +2

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

  • @VerticalGamer
    @VerticalGamer 8 років тому +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!

  • @davezrour
    @davezrour 8 років тому +12

    Make a vid about ram timings

  • @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...

  • @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.

  • @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.

  • @CarstenSvendsen
    @CarstenSvendsen 8 років тому

    The editing job on this video is marvelous though.

  • @zipper978
    @zipper978 8 років тому +164

    I hear cache and think CS GO

  • @frankynakamoto2308
    @frankynakamoto2308 8 років тому +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.

  • @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.

  • @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”

  • @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...

  • @timbaleno9269
    @timbaleno9269 3 роки тому

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

  • @biddera6825
    @biddera6825 8 років тому +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.

  • @RyutakuZaki
    @RyutakuZaki 8 років тому +3

    I use an abacus as cache

  • @Soyerz
    @Soyerz 8 років тому

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

  • @srp770
    @srp770 4 роки тому +5

    I was expecting Linus lol

  • @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.

  • @AlanTorres-tl4ms
    @AlanTorres-tl4ms 8 років тому +7

    Teraflops explained as fast as possible?

    • @riufq
      @riufq 8 років тому

      Search in google bro

    • @2drealms196
      @2drealms196 8 років тому +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.

  • @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.

  • @blumac9801
    @blumac9801 6 років тому +5

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

  • @WarriorsPhoto
    @WarriorsPhoto 8 років тому

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

  • @Ryzza5
    @Ryzza5 8 років тому +13

    Cash + e != Cache

  • @theunbeatableboss4611
    @theunbeatableboss4611 8 років тому

    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

  • @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

  • @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.

  • @generichandle7
    @generichandle7 4 роки тому +20

    Ram name suggestions:
    shRam
    bRam
    tRam
    mRam
    gRam
    fRam

  • @PunmasterSTP
    @PunmasterSTP 2 роки тому

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

  • @crossvadar249
    @crossvadar249 Рік тому +4

    AHOY from the x3D age.

    • @portman8909
      @portman8909 11 місяців тому +3

      96 megabytes of L3 cache is literally insane man

  • @부카
    @부카 Рік тому +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

  • @Julianklzn
    @Julianklzn 8 років тому

    Thanks! I'm learning so much from your channel :)

  • @frog382
    @frog382 8 років тому +6

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

  • @carpediem73
    @carpediem73 5 років тому

    Thank you, this is helping me in my studies.

  • @ebymichale77
    @ebymichale77 3 роки тому +3

    Who's Watching this in 2021?

  • @bluehampar
    @bluehampar 8 років тому +2

    Cache misses can also be avoided by good programming

  • @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

  • @boldswede1280
    @boldswede1280 7 років тому +1

    core2 q9550 has 12mb cache. Still a beast 4ghz (clocked) processor even my today's standards.

  • @TheGamingSharieff
    @TheGamingSharieff 4 роки тому +3

    Claim your “here before a million views” ticket here

  • @DecentNecessary
    @DecentNecessary 4 роки тому +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

  • @notNavindu
    @notNavindu 8 років тому +5

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

    • @PneumaticFrog
      @PneumaticFrog 8 років тому +1

      you*

    • @AmilaNirmalPerera
      @AmilaNirmalPerera 8 років тому

      Navindu Amarakoon 😂

    • @Teth47
      @Teth47 8 років тому +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

  • @GyprockGypsy
    @GyprockGypsy 4 роки тому +1

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

  • @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.

  • @nickdvorchak1534
    @nickdvorchak1534 8 років тому

    damn techquickie almost at 1M subs!

  • @7ngaf
    @7ngaf 4 роки тому +2

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

  • @KayuDachi01
    @KayuDachi01 4 роки тому

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

  • @vaibhavpande5172
    @vaibhavpande5172 6 років тому

    Hey bro, I really like that Pocket animation.

  • @BudgiePanic
    @BudgiePanic 8 років тому

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

  • @nihonkokusai
    @nihonkokusai 3 роки тому +2

    2x 55MB L3 should be enough?

  • @IJustLoveStories
    @IJustLoveStories 8 років тому +2

    3:42 Speaking of cash.... Come on, Luke, it's such an obvious segue!

  • @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

  • @TheDyingFox
    @TheDyingFox 8 років тому

    After seeing this, I finally understand the point of optimizing programming code for cache hits, wish I had seen this sooner -_-
    (oh, and a music group with the name "Ca$h-E", would give "Ca$h-Es Greatest Hits!"... yeah... -_-)

  • @ChocolateBrocoli
    @ChocolateBrocoli 8 років тому

    Just wandering, why is techquickie still on 1080p while LTT is way above that?

  • @muskit_
    @muskit_ 8 років тому

    Barely knowing much about computer science, are registers and stack data stored in CPU cache?

  • @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.

  • @rockguy5784
    @rockguy5784 6 років тому

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

  • @kaymish6178
    @kaymish6178 8 років тому

    that's all interesting but one question, can we store arms there?

  • @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).

  • @djfull4442
    @djfull4442 7 років тому

    Does cache matter for serious editing and rendering, for example 30+ sampled instruments in Reaper or 10+ tracks in Vegas? Will 8MB be enough or should I go for something like 15-20? Thanks :)

  • @OnlyNeedJuan
    @OnlyNeedJuan 8 років тому +1

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

  • @Pertamax7-HD
    @Pertamax7-HD 5 років тому

    Ok sir

  • @mmoarchives2542
    @mmoarchives2542 4 роки тому

    typically you would want as much cache as possible if you're a 3D modeling animator, blender uses a ton of processing power the bigger the project

  • @weasels6354
    @weasels6354 5 років тому +1

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