Lecture Title:�Memory Hierarchy: Primary and Auxiliary Memory Devices
Presenter: Anvar Abdullayev, Lecturer, Faculty of Computer Engineering
Date: September 22, 2025
University: Urgench State University (UrSU)
Agenda
Introduction to Computer Memory
What is Computer Memory? Memory is the component that stores data and instructions for the CPU to access quickly. Without it, computers couldn't execute programs efficiently.
The Need for Memory Hierarchy
Key Characteristics of Memory Devices
Characteristic | Fast Example | Slow Example | Impact on Design |
Speed | Registers (1 ns) | HDD (10 ms) | Affects CPU wait times |
Capacity | Cache (KB-MB) | Tertiary (PB) | Enables large datasets |
Cost/Bit | High ($/KB) | Low ($/TB) | Drives hierarchy layers |
Volatility | Volatile | Non-volatile | Requires backups for aux. |
Levels of Memory Hierarchy - Overview
Primary Memory - Registers
Primary Memory - Cache
Primary Memory - Main Memory (RAM)
Auxiliary Memory - Secondary Storage
Auxiliary Memory - Tertiary Storage
Comparison of Memory Levels
Level | Access Time | Capacity | Cost/GB | Volatility | Example Device |
Registers | 0.5 ns | 1 KB total | Very High | Volatile | CPU Internal |
L1 Cache | 1 ns | 32 KB | High | Volatile | SRAM On-Chip |
RAM | 60 ns | 8-128 GB | Medium | Volatile | DDR4 DIMM |
SSD | 0.1 ms | 1 TB | Low | Non-Volatile | NVMe Drive |
HDD | 8 ms | 10 TB | Very Low | Non-Volatile | SATA Disk |
Tape | Seconds | 50 TB | Lowest | Non-Volatile | LTO-9 |
Performance and Access Patterns
AMAT = H_t + (MR × MP)
↑ ↑ ↑
Hit Miss Miss
Time Rate Penalty
Example Calc:
H_t = 1 cycle
MR = 10% (0.1)
MP = 200 cycles
-------------------
AMAT = 1 + (0.1 × 200) = 21 cycles
[Slider Widgets: Drag MR to 5% → AMAT = 11 cycles]
Virtual Memory Concepts
Real-World Examples
Future Trends in Memory Technology
Challenges and Optimizations
Hands-On: Simulating Cache Hits
Discussion: Run with sequential vs. random accesses—what's the hit rate?
Case Study: Memory in Supercomputers
Summary
Q&A
Thank You for Attention