Cache memory

11
Cache memory

description

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

Transcript of Cache memory

Page 1: Cache memory

Cache memory

Page 2: Cache memory
Page 3: Cache memory

What is cache memory?

• 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

Page 4: Cache memory

There are 2 types of cache memory

1.L1(level 1)

2.L2(level 2)

Page 5: Cache memory
Page 6: Cache memory

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

Page 7: Cache memory

• L1 is "level-1" 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.

Page 8: Cache memory

• 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 "main" 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.

Page 9: Cache memory

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

Page 10: Cache memory

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

Page 11: Cache memory

WITHOUT CACHE

WITH CACHE