What is the role of paging devices in virtualized memory?

What is the role of paging devices in virtualized memory?

In virtualized environments like IBM PowerVM, paging devices (also called swap space) act as an overflow extension of RAM, allowing the system to handle memory pressure without immediately failing workloads.


🚀 Core Role

A paging device provides secondary storage (disk/SSD) where memory pages are temporarily moved when physical RAM is insufficient.

👉 Think of it as:

“Backup space for RAM when memory demand exceeds supply”


⚙️ How Paging Works in Virtualized Memory

1. Normal Operation

  • Active data stays in RAM
  • Paging device is mostly idle

2. Memory Pressure Occurs

When:

  • Multiple LPARs demand more memory than available
  • Or an individual LPAR exceeds its working set

👉 The system starts paging out:

  • Moves less-used memory pages → paging device

3. Page-In (On Demand)

  • When that data is needed again:
    • It is read back from disk into RAM

👉 This introduces latency (disk is slower than RAM)


🔑 Roles in a Virtualized Environment

1. Enables Memory Overcommit

  • Allows total virtual memory across LPARs > physical RAM

👉 Critical for:

  • Consolidation environments
  • Cloud-style deployments

2. Supports Memory Virtualization

  • Each LPAR sees:
    • “Logical memory” larger than physical allocation

👉 Managed by hypervisor + OS paging


3. Prevents Out-of-Memory Failures

  • Instead of crashing:
    • System slows down (graceful degradation)

4. Works with Hypervisor Memory Management

  • Coordinates with:
    • Page replacement algorithms
    • Memory balancing across LPARs

🔄 Types of Paging in PowerVM

🔹 OS-Level Paging (Inside LPAR)

  • Managed by AIX/Linux
  • Uses local paging space

🔹 Hypervisor-Assisted Paging

  • Occurs when:
    • Memory is overcommitted at system level

🔹 Active Memory Sharing (AMS)

  • Advanced feature in IBM PowerVM
  • Uses a shared paging pool

👉 Allows:

  • Dynamic memory redistribution across LPARs

📊 Performance Impact

âś… Benefits

  • Higher system utilization
  • More workloads per system
  • Better memory flexibility

⚠️ Costs

Latency Penalty

  • RAM access: nanoseconds
  • Disk access: microseconds–milliseconds

👉 Paging is orders of magnitude slower


Throughput Reduction

  • CPU waits for page-in operations
  • I/O subsystem becomes bottleneck

Thrashing Risk

  • Excessive paging leads to:
    • Constant page-in/page-out
    • Severe performance degradation

⚡ Example Scenario

  • Physical RAM: 128 GB
  • Total LPAR demand: 160 GB

👉 Extra 32 GB:

  • Stored in paging devices
Looking for servers Rental ?

Call Our Expert :


  • (call for rental enquiries)

Email us :