What is Cache Memory on a Computer ?

Posted by Ilyas online blog




Cache memory is a secondary data storage medium high speed, where to store temporary data or information are often used or accessed by a computer.


Cache Memory Function
-> Accelerate Access data on a computer
-> Lighten working processor
-> Bridging the speed difference between the CPU and main memory.
-> Accelerate memory performance


Location of Cache Memory
       1. Contained in the Processor (on chip)
       Internal cache is placed in the processor so that it does not require an external bus, then the time
        access will be very fast at all
       2. There are outside Processor (off chip)
          located on the motherboard, this type of memory access speed is very fast,
           as soon as the first type of cache memory

Cache Memory Type

1.  L1 cache L1 cache is a small amount of SRAM is used as cache memory integrated on the processor      blend.
- Useful for temporarily storing instructions and data, and ensure that the processor has yangstabil supply of data to be processed while the memory fetch and store new data.
- L1 cache (Level 1 cache) also referred to as primary cache, the cache first, or level one cache.
- Transfer of data from the L1 cache to the processor occurs fastest speed is near the speed of registers

2.  The meaning of the term L2 cache L2 SRAM cache is a small amount of memory on the motherboard         that are close to the processor holder position.
   - Useful for temporarily storing instructions and data, and ensure that the processor has yangstabil supply    of data to be processed while the memory fetch and store new data
     - (Level 2 cache) secondary cache, second-level cache, or level two cache.
    - L2 cache has a size larger than L1 lbih transfer speed but a little longer than L1cache.
3. L3 cache rarely exist, exist only in a particular computer.
         - Useful when there is a missing cache "missing" in the L1 and L2 cache
         - L3 cache has lbih size larger than L1 and L2 but the speed

           transfer longer than L1cache and L2 Cache.

Elements of Cache Memory
- Function Mapping (Mapping)
              mapping main memory blocks into cache lines.
· Direct Mapping (Direct Mapping)
· Associative Mapping (Associative Mapping)
· Associative Mapping Set (Set Associative Mapping)

- Replacement Algorithm
to choose which data blocks in the cache that can be replaced with a new data block
· Least Recently Used (LRU)
· First in, first out (FIFO)
· Least frequently used (LFU)
· Random

Related Post



Post a Comment