Types of Data Storage: Primary and Secondary Storage
Data storage devices are used for retention of digital information used for computation. There are two main types of data storage, primary and secondary.

Primary Storage
Primary storage or the commonly referred Random Access Memory is the memory which is directly accessible to the CPU. The CPU constantly reads instructions from this memory. The capacity of RAM in terms of data storage is less, but it offers a very fast access rate, thus making it pretty expensive. It offers minimum latency, hence suitable for transactional environment databases. Primary storage also consists of processor registers and processor cache.
- Processor Registers: Processor registers, located within the CPU are used to load instructions for execution by the CPU. Registers hold data word of size 32 or 64 bits. They are the fastest means of data storage. But they are capable of storing data of a very small size.
- Processor Cache: Processor cache is the part of RAM and is used for speeding up the executions. It copies the most frequently used data from the main memory and stores it. When the CPU needs the particular data item, it can simply access the cache memory which is closely located, instead of accessing the much slower main memory.
Secondary Storage
Secondary storage is commonly referred to as hard disk. It is a non-volatile storage and is capable of storing large amounts of data. The term 'secondary' refers to the inability of the CPU to access it directly. The data in the secondary storage is accessed by the CPU through intermediary devices like the processor cache. The computer uses its secondary storage via the various input/ output channels. As secondary storage is non-volatile, it is used for safe or offline storage of data. The data in secondary memory is organized into files, directories and drives. The drives are periodically formatted to provide the abstraction as required by the FileSystem.
The commonly used secondary storage devices include flash drives, USB sticks, punch cards, floppy disks, CDs, magnetic tapes, paper tapes Iomega Zip drives etc. Though, secondary storage provides very slow access, it is much cheaper than the primary storage and is capable of storing much larger volumes of data.
Modern computer operating systems implement virtual memory to efficiently use the available space on the primary memory. As for secondary memory, it is still an important medium of storing data and recovering it in times of crisis.
Like This Article?
Follow:

Post Comment | View Comments


