What is memory paging? | Definition from TechTarget (2024)

What is memory paging? | Definition from TechTarget (1)

By

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 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.

Benefits and disadvantages of memory paging

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.

What is memory paging? | Definition from TechTarget (2)

Memory paging in virtualized environments

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. This strategy is used only during a VM restart when no memory is available and none can be reclaimed.
  • Hypervisor swapping. This approach provides long-term page swap support for a certain amount of memory reclamation. Because hypervisors generally have no insight into VM memory, the data swapped out might routinely need to be swapped back, which can degrade performance.
  • Memory ballooning. This technique forces the VM's guest OS to decide which memory pages are less important and swap them to disk.

This was last updated in January 2023

Continue Reading About memory paging

Related Terms

application containerization (app containerization)
Application containerization is a virtualization technology that works at the operating system (OS) level. It is used for ...Seecompletedefinition
paravirtualization
Paravirtualization is a type of hardware virtualization that enables the guest operating system (OS) in a virtual machine (VM) to...Seecompletedefinition
What is server virtualization? The ultimate guide
Server virtualization is a process that creates and abstracts multiple virtual instances on a single server.Seecompletedefinition

Dig Deeper on Containers and virtualization

What is memory paging? | Definition from TechTarget (2024)
Top Articles
Latest Posts
Article information

Author: Mr. See Jast

Last Updated:

Views: 6030

Rating: 4.4 / 5 (55 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Mr. See Jast

Birthday: 1999-07-30

Address: 8409 Megan Mountain, New Mathew, MT 44997-8193

Phone: +5023589614038

Job: Chief Executive

Hobby: Leather crafting, Flag Football, Candle making, Flying, Poi, Gunsmithing, Swimming

Introduction: My name is Mr. See Jast, I am a open, jolly, gorgeous, courageous, inexpensive, friendly, homely person who loves writing and wants to share my knowledge and understanding with you.