Tutorial: Understanding Computer Memory & Hierarchy
In ICT, memory isn't just one component; it is a complex system designed to balance speed, cost, and capacity.
1. The Memory Hierarchy
The Memory Hierarchy is a structured arrangement of storage elements. It is designed to bridge the gap between high-speed processors and slower, high-capacity storage.
- Need for Hierarchy: CPUs operate at extremely high speeds. A hierarchy ensures that the most frequently used data is closest to the CPU to avoid idle time.
- Comparison Criteria:
- Physical Size/Density: Smaller components like Registers have lower density compared to mass storage.
- Access Time: Registers have the lowest delay (nanoseconds), while secondary storage is the slowest.
- Capacity: Increases as you move down the hierarchy (Registers < Cache < RAM < HDD).
- Cost: Price per bit decreases as you move down the hierarchy.
2. Volatile Memory: Fast and Temporary
Volatile memory requires power to maintain stored information. Once power is cut, data is lost.
- Registers: Located inside the CPU for immediate instructions.
- Cache Memory: High-speed buffer between CPU and RAM (L1, L2, and L3 levels).
- Main Memory (RAM): The primary workspace. Includes SRAM (fast/expensive), DRAM (needs refreshing), and SDRAM (synchronized).
3. Non-Volatile Memory: Permanent Storage
Non-volatile memory retains data even when the power is turned off.
- Read-Only Memory (ROM): Used for firmware like the BIOS.
- PROM: Programmable once.
- EPROM: Erasable via UV light.
- EEPROM: Electrically erasable and rewritable.
| Feature | Volatile Memory | Non-Volatile Memory |
|---|---|---|
| Data Retention | Temporary; lost when power is off. | Permanent; retained without power. |
| Speed | Extremely Fast. | Slower than volatile memory. |
| Cost | Higher cost per unit of storage. | Lower cost per unit of storage. |
| Capacity | Typically smaller (GBs). | Typically much larger (TBs). |
| Examples | RAM, Cache, Registers. | ROM, HDD, SSD, Flash Drives. |
| Primary Use | Current tasks and active data. | Long-term file and OS storage. |
4. Secondary Storage: The Mass Repositories
Secondary storage provides long-term, high-capacity storage for files and software.
- Magnetic Memory: Uses magnetic fields (e.g., HDD). Affordable for high capacity.
- Optical Memory: Uses lasers to read/write (e.g., CD, DVD, Blu-ray).
- Flash Memory: Electronic circuits with no moving parts (e.g., SSDs, USB drives).
No comments:
Post a Comment