I have a question about how the L1 and L2 cache works. From what I understand is the CPU obviously pushes out more data than the RAM can process at once so the cache is like a temp hold to store info for the RAM.
Now can anyone clarify this for me... what exactly is going on?
Is it that the cache holds the data and the RAM selects certain data from the caches depending on what needs to be processed at the time or what?
CPU to L1 & L2 Cache
Page 1 of 14 Replies - 845 Views - Last Post: 31 December 2011 - 02:28 PM
Replies To: CPU to L1 & L2 Cache
#2
Re: CPU to L1 & L2 Cache
Posted 31 December 2011 - 01:59 PM
More like the cache is frequent bits of data in the ram that, due to their frequency of use, need quicker access time... and that's on the cache.
#3
Re: CPU to L1 & L2 Cache
Posted 31 December 2011 - 02:05 PM
So the cache is where bits being used is stored, then transferred back to RAM once finished?
#4
Re: CPU to L1 & L2 Cache
Posted 31 December 2011 - 02:12 PM
the caches are for frequently accessed page files of data... when they are less used then it swaps to ram...
#5
Re: CPU to L1 & L2 Cache
Posted 31 December 2011 - 02:28 PM
Your program gets loaded into RAM, the CPU will move (or I can tell it to)move data into the L1/2 cache. Your app requests data the CPU will check to see if it is in the cache, if not, it grabs from RAM. The cache comes in handy when you use loops, (or other frequently used data if the loop code or data is in the cache, it will work faster than if the code was in RAM.
http://en.wikipedia.org/wiki/CPU_cache
http://en.wikipedia.org/wiki/CPU_cache
Page 1 of 1
|
|

New Topic/Question



MultiQuote








|