# RAM

> The computer's short-term memory: fast, small and wiped when you turn it off.

- Level: Basic
- Topics: Hardware
- URL: https://tidbit.legios.com.ar/ram/
- In Spanish: [RAM](https://tidbit.legios.com.ar/es/ram/)

**RAM** (Random Access Memory) is where a computer keeps whatever it is working on right now: the open programs, the document you are editing, the browser tabs. The CPU can read and write any part of it in nanoseconds, far faster than an SSD. The catch is that it is volatile: cut the power and everything in it is gone, which is why you save files to disk.

For most people the amount matters more than the speed. If the programs you have open need more RAM than you have, the operating system starts shuffling parts of them to the SSD (swapping) and everything crawls. That is the classic 'my laptop is slow with 40 tabs open' problem. Phones have roughly 6 to 12 GB, laptops 8 to 32, servers hundreds.

RAM comes as chips soldered onto the board or on removable sticks. Samsung, SK Hynix and Micron make most of the memory chips in the world. GPUs have their own, faster kind (VRAM, and HBM in AI chips), and for AI the question 'does the model fit in memory?' is usually about that.

Example: an LLM with 7 billion parameters needs roughly 14 GB just to hold its weights. On a laptop with 16 GB of RAM it barely fits; on one with 8 GB it does not run at all. Memory, not speed, is the first wall you hit.

## An analogy

Your desk versus your filing cabinet. The desk (RAM) holds the papers you are working on, within reach; the cabinet (SSD) holds everything else. A bigger desk lets you work on more things at once, and when you leave, the desk is cleared.

## Keep in mind

- Fast and volatile: holds running programs, forgets everything when powered off.
- Too little RAM forces swapping to disk, the usual cause of a sluggish computer.
- Measured in gigabytes; more RAM lets you keep more open at once.
- AI models must fit in memory (GPU VRAM or system RAM) to run at all.

## Go deeper

- [Random-access memory on Wikipedia](https://en.wikipedia.org/wiki/Random-access_memory)
- [Memory hierarchy on Wikipedia](https://en.wikipedia.org/wiki/Memory_hierarchy)

## Related terms

- [Web browser](https://tidbit.legios.com.ar/web-browser/): The app that fetches web pages from the internet and draws them on your screen.
- [CPU](https://tidbit.legios.com.ar/cpu/): The chip that runs your programs, one instruction after another, very fast.
- [SSD](https://tidbit.legios.com.ar/ssd/): Storage with no moving parts: where your files live when the power is off.
- [Operating system](https://tidbit.legios.com.ar/operating-system/): The base software that runs a device and lets every app share its hardware.
- [Server](https://tidbit.legios.com.ar/server/): A computer whose job is to answer requests from other computers, all day, every day.
- [Chip](https://tidbit.legios.com.ar/semiconductor-chip/): A sliver of silicon carrying billions of tiny switches that compute and remember.
- [Samsung](https://tidbit.legios.com.ar/samsung/): Korean giant that sells phones and TVs, and makes much of the world's memory chips.
- [GPU](https://tidbit.legios.com.ar/gpu/): The chip that does thousands of simple calculations at once.
