What is memory paging?

Blog

HomeHome / Blog / What is memory paging?

Apr 14, 2024

What is memory paging?

Memory paging is a memory management technique used to control sharing of memory resources belonging to a computer or virtual machine (VM). A computer can address memory beyond the amount physically

Memory paging is a memory management technique used to control sharing of memory resources belonging to a computer or virtual machine (VM).

A computer can address memory beyond the amount physically installed on the system. This nonphysical memory, or virtual memory, is actually a section of a hard disk set up to emulate the computer's RAM.

Virtual memory was originally conceptualized at a time when physical memory -- the amount of RAM installed on a computer -- was extremely expensive. The portion of the hard disk that acts as physical memory is called a page file.

When a computer runs out of RAM, the operating system (OS) moves pages of memory over to the computer's hard disk to free up RAM for other processes. This process is designed to ensure that the OS will not run out of memory and crash.

However, overreliance on memory paging can impair performance. Because RAM operates much faster than disk memory, the OS must wait for the disk to catch up every time a page is swapped. Heavy reliance on swap files can, therefore, negatively impact a workload's performance.

In a virtualized environment, the hypervisor manages physical memory. This is because guest OSes are not aware of the virtualization layer and, therefore, behave as though they have the host hardware all to themselves.

Approaches to memory paging in virtualized environments include the following:

Smart paging.Hypervisor swapping.Memory ballooning.