1.6 Types and Hierarchy of Computer Memory

Memory in computing refers to the physical devices used to store data and programs, both temporarily and permanently, for use by a computer. It is essential for the operation of the computer system and the execution of programs. The types and hierarchy of memory can be broadly classified into different categories.

Memory Terminology

  • Bit: The smallest unit of memory, representing a binary digit, either 0 or 1. Each bit corresponds to an electronic cell in memory which is either ON (1) or OFF (0).
  • Byte: A group of 8 bits constitutes one byte. It is the basic unit of memory used to store one character of data, such as 'A', 'b', or '*'. Memory size is generally measured in bytes, with higher units including:
    • Kilobyte (KB): 1 KB = 1024 Bytes
    • Megabyte (MB): 1 MB = 1024 KB
    • Gigabyte (GB): 1 GB = 1024 MB
    • Terabyte (TB): 1 TB = 1024 GB
    • Petabyte (PB): 1 PB = 1024 TB
    • Exabyte (EB): 1 EB = 1024 PB
  • Memory Word: The smallest amount of data that a computer can process as a unit. The size of a memory word, known as word size, typically ranges from 16 to 64 bits. A larger word size allows the CPU to process more data per operation, enhancing performance.
  • Word Size: Refers to the number of bits that a CPU can process or manipulate in a single operation. For example, a 32-bit CPU processes data in 32-bit chunks, whereas a 64-bit CPU handles 64-bit chunks. Larger word sizes enable handling of larger integers, more complex arithmetic operations, and greater memory addressing.

Memory Capacity Conversion Chart

Term (Abbreviation)Approximate Size
Byte (B)8 bits
Kilobyte (KB)1024 bytes / 10³ bytes
Megabyte (MB)1024 KB / 10⁶ bytes
Zettabyte (ZB)1024 EB / 10²¹ bytes
Yottabyte (YB)1024 ZB / 10²⁴ bytes

Memory Built-up and Retention Power

Main Memory

Volatile and Non-Volatile Memory