Cache memory

7,191 views

Published on

this is a small power point presentation on cache memory which contains basic details about cache memory.

Published in: Technology, Business
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
7,191
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
403
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Cache memory

  1. 1. Cache memory
  2. 3. What is cache memory? <ul><li>A  CPU cache  is a cache used by the central processing unit of a computer to reduce the average time to access memory. The cache is a smaller, faster memory which stores copies of the data from the most frequently used main memory locations. As long as most memory accesses are cached memory locations, the average latency of memory accesses will be closer to the cache latency than to the latency of main memory </li></ul>
  3. 4. There are 2 types of cache memory <ul><li>L1(level 1) </li></ul><ul><li>L2(level 2) </li></ul>
  4. 6. <ul><li>L1 and L2 are levels of cache memory in a computer. If the computer processor can find the data it needs for its next operation in cache memory, it will save time compared to having to get it from  random access memory. </li></ul>
  5. 7. <ul><li>L1 is &quot;level-1&quot; cache memory, usually built onto the microprocessor chip itself. For example, the Intel MMX microprocessor comes with 32 thousand bytes of L1. A L1 cache is some kind of memory which is built into the same CPU and it is the place where the CPU first try to access. </li></ul>
  6. 8. <ul><li>L2 (that is, level-2) cache memory is on a separate chip (possibly on an expansion card) that can be accessed more quickly than the larger &quot;main&quot; memory. A popular L2 cache memory size is 1,024 kilobytes (one megabyte). The L2 cache is another memory but instead of feeding the CPU, this one feeds the L1 cache and this way the L2 cache can be understood as a cache of the L1 cache. </li></ul>
  7. 9. <ul><li>2 caches may be built the same way as the L1 caches, into the CPU but sometimes it can also be located in another chip or in a MCP (Multichip Package Module), it can also be a completely separate chip. With some exceptions, L1 and L2 caches are considered SRAM (static RAM) while the memory of the computer is considered DRAM (Dynamic Ram) or any kind of variation of DRAM. Some processors use another cache level named L3. </li></ul>
  8. 10. <ul><li>The difference between L1 and L2 (and L3 in some cases) is the size. L1 is smaller than L2 and L3. This way the data is easier to be found in the L1 than L2, making the access much faster, if the data is not found in the L1 the data will be looked in the L2 bigger cache and if it is not there, an access to memory will be needed making the access much slower than either to L1 or L2 . </li></ul>
  9. 11. WITHOUT CACHE WITH CACHE

×