What RAM does between the processor and storage
A processor can only work quickly on data it can reach quickly. Storage drives hold files permanently, but they respond far more slowly than RAM. RAM sits between the two and holds the code and data that open programs need.
"Random access" means any location can be read in about the same time, whatever the order. Desktop RAM usually comes on memory sticks called DIMMs. Laptops that take removable RAM use smaller SO-DIMMs, and many thin laptops have RAM soldered to the board.
How DRAM cells store bits and stay refreshed
Main memory in most computers is DRAM, dynamic RAM. Each bit is stored as charge in a tiny capacitor, switched by one transistor. A charged cell usually means 1 and an empty cell means 0.
Capacitors leak, so the memory controller refreshes every cell many times per second. That repeated refresh is why the memory is called dynamic. Cells sit in rows and columns, and the controller selects a row, then reads the needed column from it.
Worked example: peak bandwidth of DDR5-4800
Bandwidth is the amount of data moved per second. DDR5-4800 performs 4,800 million transfers per second. One DDR5 module carries 64 data bits in total, split into two independent 32-bit subchannels, which is 8 bytes per transfer. Here, channel means the full 64-bit path of one module.
Peak rate = 4,800 million x 8 bytes = 38,400 million bytes per second, or 38.4 GB/s per channel. Two channels working in parallel give 2 x 38.4 = 76.8 GB/s. Real speeds are lower because of access delays.
Common misconceptions
RAM is not storage. Saving a file writes it to a drive, and unsaved work held in RAM is lost in a power failure. More RAM does not raise processor speed directly. It helps when a system would otherwise run out and push data to a slower drive.
Capacity and speed are separate. A 32 GB module holds more than a 16 GB one but is not necessarily faster.
Where RAM is found
RAM appears in desktops, laptops, phones, servers and many embedded devices. Servers often use error-correcting (ECC) RAM, which detects and fixes some single-bit errors. Graphics cards carry their own separate memory.
Key terms
- RAM
- Random access memory, the fast working memory that holds data and programs in use.
- Volatile memory
- Memory that loses its contents when power is removed.
- DRAM
- Dynamic RAM, which stores each bit as charge in a capacitor that must be refreshed.
- DIMM
- A memory stick, a small circuit board carrying several RAM chips.
- Refresh
- The repeated rewriting of DRAM cells to restore charge that leaks away.
- Bandwidth
- The amount of data transferred per second.
- ECC
- Error-correcting code memory, which can detect and fix some bit errors.
