NEW
Also known as: RAM
Hardware or virtual storage used to hold data and instructions during computation.
DESCRIPTION
Computer memory provides fast, volatile storage for active data and code, enabling efficient computation. It spans hierarchies from CPU registers and caches to main RAM and virtual memory. Effective memory management influences performance, reliability, and resource utilization. In data and AI workloads, memory limits affect batch sizes, model training, and inference throughput. Architects consider memory capacity, bandwidth, and latency in system design. Developers optimize data structures and access patterns to exploit locality.
ALTERNATIVE DEFINITIONS
Wikipedia
In computing, memory is a device or system that is used to store information for immediate use in a computer or related computer hardware.
Stresses immediacy of use and the role in computing.
Encyclopaedia Britannica
Computer memory, device that stores data and program instructions for rapid processing by the computer’s processor.
Highlights rapid access for processing and device nature.
RELATED TERMS
DRAM SRAM Cache Virtual Memory Swap Garbage Collection Pointer Buffer Paging
COMPETING TERMS
Disk Storage
RELATIONS
- Referenced by: AgentBench
KNOWLEDGE AREAS
Infrastructure Software Engineering Data Storage & Operations
TARGET AUDIENCE
Software Developer Data Engineer AI Engineer Hardware Engineer Cloud Architect
EXTERNAL SOURCES
- Wikipedia - Computer memory
- Linux Kernel Docs - Virtual memory subsystem documentation
- Intel - Guide on latency and bandwidth
- Microsoft Learn - Windows memory APIs overview
TOP QUESTIONS
Why is Memory critical for AI workloads?
Model parameters and activations must fit in RAM or GPU memory; memory limits determine batch sizes, throughput, and feasibility of training.
Category: Relevancy
How does Memory hierarchy affect performance?
Caches and RAM reduce latency compared to storage; locality-friendly access patterns maximize cache hits and throughput.
Category: Clarification
What is virtual Memory and why use it?
Virtual memory abstracts physical memory, enabling larger address spaces and isolation, with paging to disk when needed.
Category: Explanation
What are common Memory management mistakes?
Ignoring cache locality, memory leaks, over-allocation, and failing to free or reuse buffers.
Category: Mistakes
How do you measure a program’s Memory usage?
Use OS tools (top, Task Manager), profilers, and language-specific instrumentation to report resident set, allocations, and peaks.
Category: Measurement
What risks arise from Memory pressure?
Performance degradation, out-of-memory crashes, increased latency, and resource contention.
Category: Risks
How can developers optimize Memory usage?
Choose compact data structures, pool allocations, reuse buffers, and align data to improve cache efficiency.
Category: Best practices
How does Garbage Collection impact Memory?
GC automates reclamation but can introduce pauses; tuning GC and reducing allocations minimizes interruptions.
Category: Clarification
What is the difference between Memory and storage?
Memory is volatile and fast, used for active computation; storage is persistent and slower for long-term data retention.
Category: Comparison