RAM
In plain English
Plain definition
Think of a desk next to a filing cabinet. The cabinet holds everything you own; the desk holds only the papers you are working on. A bigger desk holds more jobs at once; a full one means constant trips to the cabinet. At the end of the day the desk is cleared, and anything unfiled is gone. You meet RAM in gigabytes on laptop specifications and cloud instance sizes, and whenever a machine runs out of memory.
RAM (random access memory) is a computer’s working memory: the operating system and every running program keep the code and data they are using in it, so the processor can reach them without going back to storage. RAM is volatile, which means it loses its contents when the power is turned off or lost, so anything that must survive a restart has to be written to disk. On Linux, the best guide to how much RAM is left for new work is the available column in free -h, not the free column.
What RAM does, technically
On a Linux system with a memory management unit, programs do not handle physical RAM directly. Each memory access uses a virtual address, which the CPU translates into a physical address the memory controller understands. The kernel divides physical memory into pages and keeps in RAM only the pages a program needs, which is called demand paging. Whenever a file is read, its data goes into the page cache so the next read avoids an expensive trip to disk.
Why admins care about available memory
Because the page cache fills spare RAM, a healthy server can show little free memory. The free command reads /proc/meminfo and reports available, an estimate of how much memory new applications can use without swapping. It counts cache the kernel can drop. If memory is exhausted and the kernel cannot reclaim enough, it invokes the OOM killer, which picks a process and ends it to keep the rest of the system running.
Where it fits between the CPU and the disk
The CPU works on what is in RAM; storage holds everything else. Swap sits in between, on disk. The kernel can move pages of program memory out to swap to make room, then read them back when they are needed. Growing a volume, as in increasing an AWS EBS volume and extending the Linux file system, adds storage and no RAM, and a disk that reports full because it has run out of inodes is a storage problem that more memory will not fix.
A worked example with free -h
These commands change nothing:
free -h
grep -E 'MemTotal|MemAvailable' /proc/meminfo
vmstat 5 3
free -h prints one line for physical memory and one for swap, under the headings total used free shared buff/cache available. used is total minus available, so cache the kernel can hand back is not counted as used. MemTotal is the usable physical RAM, less a few reserved bits and the kernel’s own code. vmstat 5 3 prints three reports five seconds apart. Its si and so columns show memory swapped in from and out to disk each second; on the first line those are averages since boot, so read the later two.
The misconception that free memory is what is left
The free column only counts memory nothing is using at all, page cache excluded. RAM is also not storage: a laptop with 16 GB of RAM and a 512 GB SSD has two different things. And swap is not extra RAM; it is disk standing in for memory, and every page read back from it is a trip to disk.
See also
- Page cache: file data the kernel keeps in RAM to avoid rereading the disk.
- Swap: disk space that holds memory pages moved out of RAM.
- Virtual memory: the per-process address space the CPU translates to physical RAM.
- OOM killer: the kernel mechanism that ends a process when memory runs out.
Learn more about Linux memory
The kernel’s memory management “Concepts overview” and the free(1), vmstat(8) and proc_meminfo(5) manual pages.
When a server really needs more RAM
Over a normal working period, watch for three signs: available staying low, si and so in vmstat staying above zero, and the OOM killer ending processes. All of these checks read only, so there is nothing to roll back. If they agree, the choice is between giving the machine more memory, such as a larger instance size, and running less on it.
Authoritative Sources
Concepts overview - The Linux Kernel documentation
free(1) - Linux manual page
proc_meminfo(5) - Linux manual page
The /proc Filesystem - The Linux Kernel documentation
vmstat(8) - Linux manual page
Volatile Memory - Glossary | CSRC
Understand What RAM Is and How It Works | Lenovo US
About this page
Credited to
Dates
Published
Corrections
No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Recommended reading
More from KBY that goes with this term.

Education ITArbor, SIMS and iSAMS compared on their own pages, ahead of the DfE's 2027 MIS framework
8 min read