Computer Memory Hierarchy | Find out different types of memory available to computer ?

Sharing is caring!

Hi Everyone,
I am Akash and In this Article I am going to teach you about Computer Memory Hierarchy or Lets find out different types of memory available to computer ?

[ctt template=”5″ link=”LfF43″ via=”yes” ]Computer Memory Hierarchy | Find out different types of memory available to computer ? #awesome #article #susbcribe #www.clockinterval.com @akashjaggitweet[/ctt]

So don’t waste time lets get started !!!

Computer Memory Hierarchy or What are the different types of memory available to computer?

The hierarchical arrangement of storage in current computer architectures is called the memory hierarchy. It is designed to take advantage of memory locality in computer programs. Each level of the hierarchy has the properties of higher bandwidth, smaller size, and lower latency than lower levels.

Most modern CPU’s are so fast that for most program workloads, the locality of reference of memory accesses and the efficiency of the caching and memory transfer between different levels of the hierarchy are the practical limitations on processing speed.

As a result, the CPU spends much of its time idling, waiting for memory I/O to complete. The is sometimes called the space cost, as a larger memory object is more likely to overflow a small/fast level and require use of a larger/slower level.

The memory hierarchy in most computers is:

  1. Processor registers-fastest possible access only hundreds of bytes in size.
  2. Level 1 (L1) cache-often accessed in just a few cycles, usually tens of kilobytes.
  3. Level 2 (L2) cache-higher latency than L1 by Lx to 10x, often 512KiB or more.
  4. Main memory (DRAM) may take hundreds of cycles, but can be multiple gigabytes. Access times may not be uniform , in thee case of a NUMA machine
  5. Disk storage-millions of cycles latency, but very large.
  6. Tertiary storage-several second’s latency, can bee huge.

The various major units in a typical memory system can be viewed as forming a hierarchy of memories in which each member m, is in a sense subordinate to the next highest member m of the hierarchy.

Modern programming languages mainly assume two levels of memory, main memory and disk storage, through in assembly language, and in inline assembler in languages such as C, registers can be directly accessed. Taking optimal advantage of the memory hierarchy requires the cooperation of programmers, hardware, and compilers.

Programmers

Are responsible for moving data between disk and memory through file I/O

Hardware

Is responsible for moving data between memory and caches.

Optimizing compilers

Are responsible for generating code that, when executed, will cause the hardware to use caches and registers.

Hope you like this article, I publish regularly related to Web-World, How to, Computer and other categories. If you have any suggestions then commented below.

These other Articles will also help you to learn How To Things :

Actual Width Website | How to find width of any website within seconds ?
How to check responsiveness of any website ?
How to Make Money Online ?

Regards
Akash 

Sharing is caring!

shares