Random-Access Memory
Also known as: RAM, Main memory, System memory
Fast, volatile computer memory that holds the data and instructions programs are actively using, readable and writable in any order.
Random-access memory (RAM) is a computer's working memory. It holds the operating system, running programs and the data they are processing, so that the processor can reach any location directly and quickly, in any order, rather than reading sequentially. RAM is volatile: its contents disappear when power is removed, which is why documents must be saved to storage such as a Solid-State drive. The amount of RAM limits how many programs and how much data a computer can handle at once before it must swap to much slower storage.
Most main memory is dynamic RAM (DRAM), which stores each bit as a charge in a tiny capacitor paired with a transistor. Because the charge leaks, every DRAM cell must be refreshed at intervals of a few tens of milliseconds. Robert Dennard invented the single-transistor DRAM cell at IBM in the 1960s, and Intel's 1103 of 1970 was the first widely sold DRAM chip. Static RAM (SRAM) uses several transistors per bit, needs no refresh and is faster but costlier, so it is used for processor caches. Successive DDR generations have raised speeds for desktops, while LPDDR serves mobile devices and stacked high-bandwidth memory feeds GPUs and AI accelerators.
Memory sits in a hierarchy between fast, small processor caches and large, slow storage, and much performance engineering is about keeping needed data close to the processor. Error-correcting code (ECC) memory detects and fixes bit errors and is standard in servers. Memory also has security implications: research on the Rowhammer effect showed that rapidly accessing DRAM rows can flip bits in neighboring rows, and data can linger briefly after power is cut. In many thin laptops RAM is soldered to the motherboard, preventing upgrades, a concern raised by right to repair advocates.
Key points
- RAM is volatile working memory that the processor can access directly in any order.
- DRAM stores bits as charges in capacitors that must be constantly refreshed.
- SRAM is faster and needs no refresh, so it is used for processor caches.
- ECC memory corrects bit errors and is standard in servers and many workstations.
Related entries
Central Processing Unit
Main processor of a computer, which fetches, decodes and executes program instructions and coordinates the operation of other components.
Motherboard
Main printed circuit board of a computer, connecting the processor, memory, storage, expansion cards and peripherals and distributing power among them.
Solid-State Drive
Storage device that keeps data in flash memory chips with no moving parts, offering much faster access than spinning hard disk drives.
Transistor
Semiconductor device that amplifies or switches electrical signals and serves as the basic building block of modern electronics and computer chips.
Latency
Time delay between a cause and its effect in a system, such as between sending a request and receiving the first part of the response.
Integrated Circuit
Set of electronic circuits fabricated together on a single small piece of semiconductor, combining many transistors and other components in one chip.
Memory Leak
Bug in which a program keeps holding memory it no longer needs, so its memory use grows over time and can degrade or crash the system.
Featured in guides
Referenced by
Other entries that discuss or point to Random-Access Memory.