🧠

Memory Technologies

Aug 21, 2025

Overview

This lecture covers memory management techniques, including virtual memory, multi-channel memory, and memory error detection and correction methods such as parity and ECC memory.

Virtual Memory

  • When RAM is full, data not currently needed is moved to storage (hard drive or SSD) as virtual memory.
  • Virtual memory is also called a swap file or virtual RAM in Windows.
  • Virtual memory is configured via the performance options in Windows under the advanced tab.
  • Using virtual memory is slower than physical RAM, as storage drives have lower speeds.
  • Windows can automatically manage virtual memory, or users can manually set its size.

Multi-Channel Memory

  • Multi-channel memory increases system throughput by using multiple memory modules simultaneously.
  • Common types include dual-channel, triple-channel, and quad-channel memory.
  • Identical memory modules should be used in each channel for optimal performance.
  • Motherboard slots for multi-channel configurations are often color-coded for correct installation.

Memory Error Detection and Correction

  • Memory errors can impact system stability, especially in servers, databases, or virtual machines.
  • Parity memory adds a parity bit to data to help detect errors; it uses even parity (makes total number of ones even).
  • Parity memory can detect some errors but cannot correct them.
  • Error Correcting Code (ECC) memory can both detect and correct errors if supported by the motherboard.
  • ECC memory is recommended for systems requiring high reliability and uptime.

Parity Bit Calculation and Validation

  • Even parity means the parity bit is set to make the total number of ones in the data even.
  • Example: Data with six ones gets a parity bit of zero (already even).
  • Example: Data with an odd number of ones gets a parity bit of one to make total ones even.
  • To validate data, count the number of ones including the parity bit; an even result indicates valid data.

Key Terms & Definitions

  • Virtual Memory — Using hard drive or SSD space to simulate additional RAM.
  • Swap File — A file on the storage device acting as virtual memory.
  • Multi-Channel Memory — A configuration using multiple memory modules to increase throughput.
  • Parity Memory — RAM with an extra parity bit to help detect errors using even parity.
  • ECC Memory — Error Correcting Code memory that detects and corrects memory errors.

Action Items / Next Steps

  • Review your system's memory configuration and identify if it uses virtual memory, multi-channel, parity, or ECC.
  • Practice calculating parity bits for sample binary data.
  • Explore your operating system settings for managing virtual memory.