Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Storage Device Hierarchy
Computer storage has components that store computer data. The storage device hierarchy organizes these components based on speed, cost, and capacity. The hierarchy follows a trade-off principle: faster storage is more expensive and has lower capacity, while slower storage is cheaper with higher capacity.
Primary Storage
This is also known as the main memory and is the memory directly accessible by the CPU. All the instructions are executed in the main memory by CPU and the data required by these instructions is also stored in main memory.
Main memory primarily consists of the RAM which is volatile in nature. It is also quite small compared to secondary memory and expensive as well. Cache memory sits between CPU and RAM, providing faster access to frequently used data.
Secondary Storage
Secondary or external storage is not directly accessible by the CPU. The data from secondary storage needs to be brought into the primary storage before the CPU can use it.
Secondary storage is non-volatile i.e. the data stored is not lost when power is switched off. Common examples include hard disk drives (HDDs), solid-state drives (SSDs), and optical disks. These devices provide large storage capacity at relatively low cost.
Tertiary Storage
This is a third level of storage that mostly contains data that needs to be archived. This is because it is quite slow. Data is normally retrieved from tertiary storage to primary storage when it needs to be viewed.
Tertiary storage is mostly formed of magnetic tapes and optical storage systems. It offers the highest capacity at the lowest cost but with the slowest access times, making it suitable for backup and archival purposes.
Characteristics of Storage
The different characteristics of storage devices are as follows:
Volatility
Volatile memory needs power to work and loses its data when power is switched off. However, it is quite fast so it is used as primary memory.
Non-volatile memory retains its data even when power is lost. So, it is used for secondary and tertiary storage.
Mutability
Mutable storage is both read and write storage and data can be overwritten as required. Primary storage typically contains mutable storage and it is also available in secondary storage nowadays.
Accessibility
Storage access can be random or sequential. In random access, all the data in the storage can be accessed randomly and roughly in the same amount of time. In sequential storage, the data needs to be accessed in sequential order i.e. one after the other.
Addressability
Each storage location in memory has a particular memory address. The data in a particular location can be accessed using its address.
Capacity
The capacity of any storage device is the amount of data it can hold. This is usually represented in the form of bits or bytes.
Performance
Performance can be described in terms of latency or throughput.
-
Latency is the time required to access the storage. It is specified in the form of read latency and write latency.
-
Throughput is the data reading rate for the memory. It can be represented in the form of megabytes per second.
Comparison of Storage Types
| Storage Type | Speed | Volatility | Capacity | Cost per Byte |
|---|---|---|---|---|
| CPU Registers | Fastest | Volatile | Smallest | Highest |
| Cache Memory | Very Fast | Volatile | Small | Very High |
| Primary (RAM) | Fast | Volatile | Medium | High |
| Secondary (HDD/SSD) | Moderate | Non-volatile | Large | Low |
| Tertiary (Tape) | Slowest | Non-volatile | Largest | Lowest |
Conclusion
The storage device hierarchy organizes memory components based on speed, cost, and capacity trade-offs. Understanding this hierarchy helps in designing efficient computer systems that balance performance requirements with cost constraints. Each level serves specific purposes in the overall storage strategy.
