×

Memory Hierarchy

Memory Hierarchy: In computer architecture, the Memory Hierarchy separates computer storage into the hierarchy based response time. It is developed to organize the memory in such a way that it can minimize the access time.

The memory hierarchy affects the performance in computer architectural design, algorithm predictions, and low-level programming constructs the involving locality of reference.

 We can say that the memory unit is the collection of storage units or devices together. It can store binary information in the forms of bits. The memory hierarchy is design into two parts which are given below:

1. External or Secondary Memory

There are several types of external memory that exists, such as magnetic disk, optical disk, magnetic tape, and peripheral storage devices. These devices are accessible by the processor through the I/O module.

2. Internal memory or primary memory

The main memory, cache memory, and CPU registers are existing in the primary or internal memory. This memory is directly accessible by the processor.

Characteristics of Memory Hierarchy

  • Capacity

The capacity is the global volume information of the memory can store. If we move from top to bottom in the hierarchy, the access time increases.

  • Access time

The access time is the time interval between the read /write request and the availability of the data. If we move from top to bottom in the hierarchy, the access time increases.

  • Performance

When the computer system was designed without memory hierarchy design, the speed gap increases between the CPU registers and main memory due to the vast difference in access time.

The result in lower performance of the system and thus, the improvement was required. This improvement was made in the form memory hierarchy design that’s why the performance of the computer system increases. The most significant ways to improve system performance is minimizing how far down the memory hierarchy has to go to manipulate the data.

  • Cost per bit

If we move from bottom to top in the memory hierarchy, the cost per bit is increased. The internal memory is costlier then external memory in the computer system.

Registers in CPU

The processor register is quickly accessible location available to the computer's central processing unit. The registers generally consist of the small amount of fast storage, although some registers have exact hardware functions and may be read-only or write-only. 

Cache Memory

The CPU cache is a hardware cache which is used by the Central Processing Unit of the computer to reduce the average cost to access data from main memory. The Cache is a smaller, faster memory, located closer to the processor core, which stores the copies of data from the frequently used primary memory location.

The Cache memory is also called the CPU memory. It is high - speed static Random Access Memory that the computer microprocessor can access more quickly as compared to regular Random Access Memory.

The Cache is the small-sized type of volatile computer memory which provides high-speed data access to the processor and stores frequently by using the computer programs, applications, and data. It is also the fastest memory in the computer and integrated on to the motherboard and directly embedded in the processor or main Random Access Memory.

Main Memory

The main memory in the computer system is Random Access Memory. This memory is also known as the RAM in short. It is the part of the computer system that stores operating system software, software application and other information for the Central Processing Unit. The CPU has fast and direct access when the user needed to perform the task.

The Ram is one of the fastest types of memory and can allow the data to be read and written. The main memory refers to the computer hardware integrated circuits which store information for the immediate use in the computer system. This memory is synonymous with the term "primary storage."

Disk Cache 

The disk cache is a mechanism to improve the time taken to read from or write to the hard disk. It is included as the part of the hard disk. It can also be the specified portion of Random Access Memory. The disk cache is the cache memory which is used to speed up the process of storing and accessing the data from the host hard disk.

Magnetic Disk

The magnetic storage or magnetic recording is the storage of data on the magnetized medium. It uses different patterns of magnetization in the magnet sable material to store the data. It is a form of non-volatile memory. The information is accessed by using one or more read/write heads.

It is the most common form of secondary storage in the computer system. This memory provides fast access and high storage capacities at a reasonable cost. The magnetic disk drives contain metal disks which are coated on both sides with the iron oxide recording material.

 Magnetic tape

The magnetic tape is the medium of magnetic recording, made from the thin magnetizable coating on the long, narrow strip of plastic film. In 1928, it was developed in Germany. It is based on the magnetic wire recording. It is the type of physical storage media for different kinds of data. The magnetic tape is considered as an analog solution. It is the oldest technology for electronic data storage.

Optical disk

In the computer system, the optical disk is the recording technology. It is flat, a circular disk which can encode the binary data in the form of pits and lands on the special material. It is the computer storage disk that stores the data digitally and uses a laser beam to read and write the data. 

The Optical disk is primarily used as the portable and secondary storage device. This disk can store more data than the previous generation of magnetic storage media. The compact disk, digital versatile or video disk and the Blue-ray disk are the most commonly used form of optical disks. These types of the disk are generally used for:

1. Distribute the software to customers.

2. Store a large amount of data in the form of music, images, and videos.

3. Transfer the data to different computer systems or devices.

    4. Back up the data from the local machine.


Related Topics

Second Generation of Computer

The period of the second generation was from (1959-1965). The transistor takes the place of the vacuum tubes in the second generation. The transistor was invented at Bell Labs in...

4 minutes read.

Input devices of Computer

Computer Input Devices : The input device is the hardware device that connects to the computer system. The user can give the instructions to the computer with the help of...

11 minutes read.

How to shut down a computer

Whenever the Shutdown is done, all the programs, software, files, and operating system are shut down. The RAM is cleared, so before shutting down the device, the user should ensure...

4 minutes read.

How does a computer process data into information?

What is data Data is a type of information. Data can be in the form of images, integers, or strings of letters. All data must be entered into the personal computer...

3 minutes read.

What is a Header?

A document or data packet's header is a section that contains metadata or other information required for processing the main material. In information technology, "supplemental data" is frequently used to describe...

3 minutes read.

Why can’t I open any web pages when connected to the internet

You can follow the instructions below if you are able to connect to the Internet, you are unable to access any websites. Ping an Internet Address You need to open the Command...

4 minutes read.

What is Jacquard Loom?

Jacquard attachment, Jacquard mechanism and Jacquard Loom are all the same. This Jacquard Loom machine completely changed, improved and made a lot of specific changes in the whole industrial department. Jacquard...

3 minutes read.

What is a Card Reader?

A hardware device that can read from and write to a memory card or memory stick is termed a card reader. Its task is to transfer data to computers and...

9 minutes read.

What is a Server?

The computer which processes the request and delivers the data to the other client over any network is called a Server. The server could be local or internet. These are specialized...

6 minutes read.

Computer Pioneers and people who are CEO

The world of technology has been shaped by several individuals who have made significant contributions as computer pioneers and CEOs of technology companies. This article will take a deeper look...

42 minutes read.

What is Cyber Warfare?

Cyber warfare is the use of technology, which is used to attack the enemy state. It is a hacking technique mainly used by military forces to target foreign countries' key...

7 minutes read.

How to enable or disable the preview pane of Microsoft Outlook

Preview Pane lets you preview the file's contents in the viewing pane. Users can quickly scan the contents of a selected file in the preview window without actually opening it....

3 minutes read.

TCP Flags

In a TCP connection, flags are being used to specify a specific connection status, as well as to offer extra information that can be utilized for debugging or to manage control...

4 minutes read.

What is an Expansion Card?

An expansion card is also called an add-on card, or an adapter card is a Printed Circuit Board (PCB) on the motherboard and fixed into an expansion slot. An expansion...

6 minutes read.

What is Myspace?

Myspace is a social networking platform where users may create web pages, communicate with others, and share content, including music, photos, and blogs. Chat rooms, newsgroups, forums, categorised classified ads,...

7 minutes read.

What is Clipboard?

The Clipboard is a particular location in computer, phone, or tablet memory where you can store copied text or other data. It is also known as paste-board. When you copy...

6 minutes read.

What is a Webcam?

Webcam is a peripheral digital camera that can be attached to the device, which allows you to click photos and record videos directly on the system. There is various webcam...

11 minutes read.

What is PC

PC stands for personal computer that allows the user to perform certain functions that can reduce the load of daily tasks and be effectively used by an individual. Ed Roberts...

12 minutes read.

Computing Power

Computing power comes at how fast a machine can perform a task. When a command is given to any computer, it is broken down into mathematical series of problems. A...

3 minutes read.

What is a Raster?

A horizontal scan line is an image made of lines on the interior of the screen that were traced by an electron beam to generate a raster. These lines can...

3 minutes read.