Skip to main content

RAM

Random Access Memory

In Turkish
bellek
Pronunciation
RAM
Updated 2 min read

Share this page

Send the link, quote the definition with a link back, or show it as a card on your own site.

https://softwaredictionary.org/terms/ram

In short

RAM (random access memory) is a computer's fast, temporary working memory, holding the programs and data in use; its contents are lost when power goes off.

What is RAM?

When you open an app, the operating system loads its code and data from storage into RAM, because reading from RAM takes nanoseconds while even a fast SSD is many times slower. Random access means any byte can be read directly by its address, as fast as any other, instead of scanning through in order.

RAM is volatile: it needs power to keep its contents, which is why unsaved work disappears in a crash and why files are written back to disk. Most computers use DRAM modules of the DDR family, such as DDR4 and DDR5, while CPU caches use faster and more expensive SRAM built into the processor.

The operating system shares RAM between programs through virtual memory: each process sees its own address space, and the OS maps it onto physical RAM page by page. When RAM fills up, the OS moves rarely used pages to disk in swap space, which keeps programs running but slows them down dramatically if it happens often.

A common misconception is that free RAM is good RAM. Modern operating systems deliberately fill spare memory with a cache of recently used files, which speeds things up and is released instantly when programs need it. A computer is short of memory when it starts swapping heavily, not when the usage number looks high.

Key takeaways

  • RAM is fast, temporary working memory for running programs.
  • It is volatile: its contents vanish without power.
  • Any address can be read directly, which is what random access means.
  • Virtual memory maps each process onto physical RAM; swap spills to disk.
  • Unused RAM is used as a file cache, so high usage is normal.

Example

How much memory is in use, on Linuxbash
$ free -h
               total        used        free      shared  buff/cache   available
Mem:            15Gi       6.2Gi       1.1Gi       412Mi       8.1Gi       8.7Gi
Swap:          2.0Gi          0B       2.0Gi
# "available" is what programs can still get: free memory plus cache the system can drop

Readers ask

What is the difference between RAM and storage?

RAM is fast, temporary memory for what is running right now and loses its contents without power. Storage, such as an SSD or hard drive, is slower but keeps files permanently.

How much RAM does a developer need?

It depends on the tools. Browsers, IDEs, containers and local databases add up quickly, so many developers find 16 GB a comfortable minimum and use 32 GB or more for heavy container or machine learning work.

What happens when RAM runs out?

The operating system moves less-used memory pages to disk (swap), which slows the system down. If memory is still not enough, it may stop programs, as Linux's out-of-memory killer does.

Free · once a week

Software and AI, explained once a week

The week's software and AI news with every term explained, plus a term to learn and a quick quiz. A two-minute read.

You confirm by email first, and one click unsubscribes. Privacy

See this week's issue

About this page

Page history

  1. Added a code example: how much memory is in use, on Linux.

Changes that altered what this page says. Typo fixes are not listed.

Spotted a mistake or something missing on this page?Suggest an edit

How pages are made

More

Settings