An address is a reference, not a location label
When a program refers to an address, it normally uses a virtual address. The operating system and processor translate that address to the physical memory supporting it. Different processes can use the same virtual address while referring to different underlying information. Microsoft’s description of virtual address spaces makes this distinction explicit. Virtual address space.
This abstraction gives each process a consistent view of its own accessible memory. It also supports protection: a program should not be able to read another process’s private information simply by guessing a numerical address. Deliberately shared memory requires a separate controlled arrangement.
A deliberately small mapping example
Consider a hypothetical system with 16-byte pages. Real page sizes differ; the small value makes the example easy to follow. Virtual address 37 is in virtual page 2, at offset 5, because 37 equals two groups of 16 plus 5.
Suppose the operating system maps that virtual page to physical frame 9. The corresponding physical address is 9 times 16 plus 5, or 149. The program still uses 37. The mapping supplies the relationship to the physical frame.
Another process could use virtual address 37 with a mapping to frame 12 instead. The arithmetic of the address is identical, but the underlying frame is different. If the two processes intentionally share a frame, they can also have distinct virtual addresses for the same physical data.
Pages need not all be resident
The virtual address space describes what a process can address, not a promise that every possible address has physical RAM behind it at that instant. Linux describes demand paging, page mappings, and the translation lookaside buffer used to cache translations. Linux virtual-memory primer.
A request can trigger a page fault when the required mapping or access is not immediately available. Some faults can be resolved without storage input, such as supplying an initial zero-filled page. Others can require retrieving data from a file or paging device. An invalid access may instead terminate the operation or process. Therefore “a page fault” is not automatically synonymous with “a disk read.”
Why more address space is not more RAM
Imagine a program reserving a large region for a future image-processing job. Reserving addresses and actively touching every page are different actions. The program’s virtual size may therefore be much larger than its current resident footprint. Neither figure alone is a complete measure of available capacity.
If the active information demanded by competing programs grows beyond what the system can support efficiently, repeated movement or reclaim can become costly. The exact behavior depends on operating-system policies, backing resources, and workload. Virtual memory organizes those resources; it cannot make their physical limits disappear.
What a useful memory report states
A report should distinguish reserved address range, committed allocation where that concept applies, resident memory, shared pages, and peak demand. Different tools expose different metrics. Comparing one program’s virtual size with another program’s resident set would not be an equivalent comparison.
For a service failure, record when the error appears, which allocation failed, and whether the limiting resource was address space, process limits, physical pressure, or backing capacity. The remedy may be a smaller working set, streaming, a corrected lifetime bug, or a configuration change. “Add virtual memory” is too vague to establish the cause.
Continue with RAM and storage for the resource distinction, or stack and heap for how a program organizes memory lifetimes.