The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    What is L2 Cache?

    Discussion in 'Hardware Components and Aftermarket Upgrades' started by VAIO N, Apr 22, 2007.

  1. VAIO N

    VAIO N Notebook Enthusiast

    Reputations:
    0
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    5
    I searched this forum and the internet for the answer but the wiki article just confused me.

    So I was hoping you guys can help a computer newb like me out and give me a better understanding of what it is. :eek:.
     
  2. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Cache is a smaller bit of memory that sits between the processor and the system memory (RAM) that runs much faster than the RAM. The CPU can access cache memory much faster than RAM, which in turn is much faster than the hard drive. But each one is smaller than the one before it, so it stores less data. Make sense?

    Analogy time: A semi can haul a lot of stuff, but it's not too fast. It's like your hard drive. A sedan can haul much less stuff, but it's a lot faster than the semi. It's like your RAM. A motorcycle can only hold very few things, but it's very, very fast. It's like the cache.
     
  3. VAIO N

    VAIO N Notebook Enthusiast

    Reputations:
    0
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    5
    Wow that was a quick reply. Thanks, that makes sense.

    So would the L2-Cache difference between a TL-50 and TL-52 make that much of a difference?
     
  4. sesshomaru

    sesshomaru Suspended Disbelief!

    Reputations:
    316
    Messages:
    1,918
    Likes Received:
    1
    Trophy Points:
    56
    Basically, it'd depend on what you ask of your processor.. there are lots of things that determine how "fast" a computer is. but yes, given that all other things are identical, a larger cache=better performance.
     
  5. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    It can make some difference. It really depends on how different programs run. Sometimes they can take advantage of additional cache, sometimes not. I don't know how much the difference in cache size is, but it probably won't make as much of a difference as the clock speed will. It depends on what you need the CPU speed for. Most people don't notice the difference between a mid-grade CPU and a top-end one.
     
  6. Budding

    Budding Notebook Virtuoso

    Reputations:
    1,686
    Messages:
    3,982
    Likes Received:
    0
    Trophy Points:
    105
    L2 cache is a slower but bigger level of cache. L1 cache is quickest to access, but the size of it is usually a few hundred k. L3 cache is even bigger, and even slower.
     
  7. Jalf

    Jalf Comrade Santa

    Reputations:
    2,883
    Messages:
    3,468
    Likes Received:
    0
    Trophy Points:
    105
    L1 size is 32-64KB, not "a few hundred k".
    (If memory serves, Intel's Core CPU's have 32KB L1 cache, and AMD's chips have 64KB.

    And yes, cache can make a big difference.
    However, a better analogy than Pitabred's (sorry ;)) might be your desk, versus going to the library. If you need to look something up, you have to go to the library, find the book you need, borrow it, bring it home and finally read the stuff you need.
    Now, if you're clever, you don't return it to the library immediately. You put it on your desk, so you can easily reach it the next time you need to look something up in that book. Sooner or later, you'll have filled up your desk. Then you return some of the books you hopefully won't need again soon.

    That's pretty much exactly what goes on with the cache. When the CPU requests data, it first looks in the cache, and if it isn't there, it has to order it all the way from the RAM, which takes ages. And once it's got the data, it puts it in the cache, because the odds are very good that it'll be needed again soon.

    So the cache size corresponds to the size of your desk. The bigger it is, the more books you can have on it, and the less time you need to waste running to the library and back. :)

    And to take the analogy even further, for some tasks, you might need to look up only a few things in each of several hundred books. Then your desk (cache) won't help you much, because almost as soon as you get a book, you're done with it and won't need it again.

    In other cases, you only need one or two books, so if there's room for them on the desk, you only have to go to the library once.

    So it depeds a lot on the program, whether or not a larger cache helps performance.
     
  8. Gator

    Gator Go Gators!

    Reputations:
    890
    Messages:
    1,889
    Likes Received:
    0
    Trophy Points:
    55
    And yet, an even better analogy would be using food and cooking:

    HDD = supermarket
    RAM = basement freezer
    L3 = fridge->bottom drawer/rack
    L2 = fridge->top drawer/rack
    L1 = cutting board
    CPU = you're cooking
     
  9. Circa69

    Circa69 Notebook Evangelist

    Reputations:
    1,214
    Messages:
    581
    Likes Received:
    0
    Trophy Points:
    30
    LOL, you guys are analogy crazy :p

    If only someone would invent the equivalent of the internet or wikipedia in Jalf's analogy. Having a practically unlimited L1 cache. Now, that would be awesome :D
     
  10. Jalf

    Jalf Comrade Santa

    Reputations:
    2,883
    Messages:
    3,468
    Likes Received:
    0
    Trophy Points:
    105
    That's pretty much what computers with no cache are. (The RAM basically becomes the L1 cache then). And the problem is obviously that such big caches have to work much slower. So we'd then want to add a smaller L0 cache which was, say, 512KB, and while we're at it, we might as well ad a L-1 cache of, say, 64KB. And then we're back where we started. ;)