CPU Memory Access Hierarchy Chart. Level 3 cache is now common.

What is Cache Memory – Computer Hardware

Cache Memory

Even with a good and quick bus, it still takes longer for information to induce from the memory card to the C.P.U than it takes for the central processing unit to really process the information. Caches are designed to alleviate this bottleneck by creating the information that’s used most frequently by the central processing unit instantly accessible. This can be accomplished by building a little quantity of memory, recognized as primary or level one cache, right into the central processing unit. Level 1 cache is very small, e.g. 384 KB L1 cache for the Intel i7 Hexacore. Cache Memory

The secondary or level 2 cache generally resided on a memory card situated close to the C.P.U. with an immediate linking to the processor. an ardent computer circuit on the motherboard, the L2 controller, regulates the utilization of the amount of the level 2 cache by the processor. e.g. 1.5 MB L2 cache for the Intel i7 Hexacore. In most systems, information required by the processor is accessed from the cache close to ninety-five percent of the time, greatly reducing the overhead required once the processor should wait for data from the main memory.

Graphics, Sound and Network Card RAM Cache Memory

Some cheap systems dispense with the level two cache altogether. several superior processors currently have the level two cache truly engineered into the CPU chip itself moreover as A level three cache. Therefore, the dimensions of the level two cache and whether or not it’s aboard (on the processor) may be a major determinant think about the performance of a CPU. e.g. 12 MB L3 cache for the Intel i7 Hexacore. Cache Memory

Cache Memory

CPU Memory Access Hierarchy Chart. Level 3 cache is now common.CPU Memory Access Hierarchy Chart. Level 3 cache is now common. Cache Memory

How Caching Operates:

A particular type of RAM, static random access memory (SRAM), is used primarily for the cache. SRAM uses multiple transistors, typically four to six, for each memory cell. It has an external gate array known as a bistable multivibrator that switches, or flip-flops, between two states. This means that it does not have to be continually refreshed like DRAM. Each cell will maintain its data as long as it has power. This means SRAM can operate extremely quickly, and significantly faster than dynamic RAM. However, the complexity of each cell means it takes up a lot more space on a chip and makes it prohibitively expensive for use as standard RAM.

Static RAM is fast and expensive, and dynamic RAM is less expensive and slower. Thus static RAM is used to create the CPU’s speed-sensitive cache, while dynamic RAM forms the larger system RAM space.

Some principles of the cache process are as follows:

  1. Cache technology is the use of a quicker however smaller memory sort to accelerate a slower however larger memory sort, like RAM.
  2. When using a cache, you must check the cache to see if an item is in there. If it’s there, it’s recognized as a cache hit. If not, it’s known as a cache miss and also the pc should expect a trip from the larger, slower main memory space.
  3. A cache has some size that’s abundant smaller than the larger main memory hold.
  4. It is possible to have multiple cache layers. In a one-level cache, the Level 1 cache is first checked, if there is a miss, the RAM is searched. In a two-level cache, the Level 1 cache is first checked, if there is a miss, the Level 2 cache is checked, if there is a miss, the RAM is searched.
  5. The cache is populated using a concept called locality of reference. It means during a fairly giant program, solely little parts are ever used at any one time. Notwithstanding a feasible is ten MB in size, solely a couple of bytes from that program are in use at any one time and their rate of repetition is very high.


The final step in the memory hierarchy is the registers. These are memory cells engineered right into the processor that contain specific information required by the processor, significantly the arithmetic and logic unit (ALU). An integral part of the CPU itself, they are controlled directly by the compiler that sends information for the CPU to process.

Cache Memory

Cache Memory

This post contains the content of book Computer Hardware_ Hardware Components and Internal PC Connection