Glossary

Physical Memory

Physical memory is the actual RAM installed in a machine, the chips on its memory modules. Everything a running program uses must sit in physical memory at the moment it is used.

What is physical memory?

It is the hardware: DRAM modules in the motherboard's slots, addressed by the memory controller in the CPU. A server listed with 128 GB has that many bytes of real, addressable RAM. Programs never address it directly; they use virtual addresses that the MMU maps onto physical page frames. But physical memory is the resource that actually runs out, so it is the number capacity planning revolves around. Virtual memory explains the other side.

How does Linux divide physical memory?

UseWhat it holdsCan it be reclaimed?
Process memory (anonymous)Heaps, stacks, database buffersOnly by swapping or ending the process
Page cacheCopies of file data recently read or writtenYes, clean pages instantly
Shared memory and tmpfsShared buffers, files in /dev/shm and /runOnly by swapping
Kernel slabInode and dentry caches, network buffersPartly
Kernel and firmware reservedKernel code, page tables, device areasNo

Because the page cache expands to fill spare RAM, a healthy server often shows little "free" memory. The figure that matters is "available", the kernel's estimate of memory that can be handed to programs without swapping.

How do I read physical memory figures?

free -h
grep -E '^(MemTotal|MemAvailable|Cached|Shmem|SReclaimable|AnonPages|PageTables)' /proc/meminfo
dmesg | grep -i 'Memory:' | head -2

MemTotal is slightly less than the installed RAM because firmware and the kernel reserve some at boot; the dmesg line shows the split. AnonPages is memory owned by processes, Cached is page cache and SReclaimable is the part of kernel caches that can be freed. Check memory usage goes through more tools.

Why is MemTotal lower than the RAM I paid for?

Some physical address space is reserved by firmware for its own use, and the kernel sets aside memory for its code, its page structures (about 1.5 percent of RAM for the per-page metadata alone) and crash-dump reservations if configured. On a 64 GB machine, seeing 62 to 63 GB as MemTotal is normal. dmidecode -t memory shows the installed modules, confirming the full amount is present; see RAM slot.

How does physical memory work on dual-socket machines?

Each CPU socket has its own memory controller and its own bank of RAM. Both CPUs can reach all memory, but access to the other socket's RAM crosses an interconnect and takes longer. Linux shows each socket's memory as a NUMA node:

numactl --hardware
numastat -m | head -20

Large databases and VM hosts on machines like D9 or M7 run better when each process or guest stays on one node's cores and memory. NUMA and dual-socket servers covers the details.

Does dedicated hardware change the picture?

Yes, in a useful way. On a virtual server, the "physical" memory the guest sees is itself virtual, backed by a host that may overcommit or reclaim it under pressure. On a single-tenant machine, the RAM listed is the RAM you have: no balloon drivers, no neighbors, no host swapping your pages. Measurements stay honest, and a database sized to the box keeps its performance all month. Physical memory across our range runs from 16 GB DDR3 on E1 to 1 TB DDR5 on M13.

How much physical memory should I leave free?

Plan for the busiest hour, then keep a cushion. A good rule is that process memory at peak should stay below about 80 percent of MemTotal, leaving the rest for page cache and spikes. Databases are the exception that proves the rule: they deliberately claim a large share for their own buffer pool, which should be accounted for as process memory. When available memory regularly falls under 10 percent, look at Out of memory (OOM) for what comes next, and at a larger model before it happens.

Physical RAM From 16 GB to 1 TB

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
E1Intel Xeon E3-1240 v34 / 816 GB DDR32x 240 GB SSD2x 1 Gbps$30.52$91.56 (3 months)
S5Intel Xeon E-2276G6 / 12128 GB DDR42x 1 TB NVMe2x 10 Gbps$88.72$88.72 (1 month)
D92x Intel Xeon Gold 632632 / 64256 GB DDR42x 2 TB NVMe2x 25 Gbps$400.25$400.25 (1 month)
M72x Intel Xeon Gold 643064 / 128512 GB DDR52x 4 TB NVMe2x 25 Gbps$666.74$666.74 (1 month)
M132x Intel Xeon Gold 5418Y48 / 961 TB DDR52x 4 TB NVMe2x 25 Gbps$849.12$849.12 (1 month)

Keep Reading

Virtual memory

How every process gets its own private address space, how pages map to RAM or swap, and why VSZ and RSS numbers differ so much.

Open

Check memory usage

Read free, /proc/meminfo, vmstat and per-process numbers correctly, and tell real memory pressure apart from a healthy page cache.

Open

NUMA and dual-socket servers

Why two processors in one box share memory unevenly, and when a dual-socket machine beats a single big chip.

Open

RAM slot

The motherboard sockets that hold memory modules, why channel population matters for speed, and how to list slots from Linux.

Open

FAQ

Quick Answers

Physical memory is the real RAM. Virtual memory is the address space each program sees, which the CPU maps onto physical RAM.

Usually not. Linux fills spare RAM with page cache, so look at the available column, which counts memory that can be reclaimed.

Firmware and the kernel reserve some memory at boot for their own structures. A small gap is normal.

Run numactl --hardware. Each NUMA node lists its CPUs and its share of the RAM.

No. Every machine is single tenant, so all listed memory is yours alone.