How does z/VM handle overcommitment?

How does z/VM handle overcommitment?

z/VM is designed to run far more virtual machines than the underlying hardware resources would normally allow. It achieves this through sophisticated overcommitment of CPU, memory, and I/O, while still keeping performance predictable.

Here’s how it works:


πŸ”· 1. What Overcommitment Means in z/VM

Overcommitment =

  • Allocating more virtual resources than physically available
  • Relying on the fact that not all workloads peak at the same time

πŸ‘‰ Example:

  • 100 physical CPUs β†’ 500 virtual CPUs
  • 1 TB RAM β†’ 3–5 TB virtual memory

πŸ”· 2. CPU Overcommitment (Time Sharing + Dispatching)

πŸ”Ή Virtual CPUs (vCPUs)

  • Each VM is assigned one or more virtual CPUs

πŸ”Ή Hypervisor Scheduling

z/VM:

  • Schedules vCPUs onto real CPUs
  • Uses time slicing and priority-based dispatching

πŸ”Ή Share System

  • Each VM gets a share value
  • Determines how much CPU it receives under contention

πŸ‘‰ Result:

  • Idle VMs consume almost no CPU
  • Active VMs get more CPU dynamically

πŸ”· 3. Memory Overcommitment (Core Strength)

z/VM is especially powerful in memory overcommitment:

πŸ”Ή a) Virtual Memory Model

  • Each VM thinks it has full dedicated memory
  • z/VM maps it to real memory dynamically

πŸ”Ή b) Paging & Swapping

  • When memory is overcommitted:
    • Inactive pages β†’ moved to disk (paging)
    • Active pages β†’ kept in RAM

πŸ‘‰ Smart paging minimizes performance impact


πŸ”Ή c) Memory Overcommit Ratios

  • Can safely exceed physical memory by 2x–5x or more
  • Depends on workload behavior

πŸ”Ή d) Page Sharing (Deduplication)

  • Identical memory pages across VMs are shared

πŸ‘‰ Example:

  • Many Linux VMs β†’ same OS pages β†’ stored once

πŸ”Ή e) Ballooning (Cooperative Memory Reclaim)

  • VMs can release unused memory back to z/VM

πŸ”· 4. I/O Overcommitment

πŸ”Ή Virtual I/O Devices

  • z/VM presents:
    • Virtual disks (minidisks)
    • Virtual network interfaces

πŸ”Ή Multiplexing

  • Many VMs share the same physical I/O channels

πŸ‘‰ Backed by:

  • IBM Z channel subsystem β†’ very efficient I/O handling

πŸ”· 5. Workload-Aware Optimization

z/VM continuously monitors:

  • CPU usage
  • Memory usage
  • I/O patterns

And dynamically adjusts:

  • Scheduling priorities
  • Memory allocation
  • Paging behavior

πŸ”· 6. Performance Controls

To avoid overload:

πŸ”Ή Share and Limit Settings

  • Guarantee minimum CPU
  • Cap maximum usage

πŸ”Ή Resource Pools

  • Group VMs into pools with quotas

πŸ”Ή Workload Isolation

  • Critical workloads protected from noisy neighbors

πŸ”· 7. Why Overcommitment Works Well on IBM Z

Overcommitment is more effective here because:

πŸ”Ή Large Memory Capacity

  • Systems have huge RAM β†’ less paging pressure

πŸ”Ή Fast I/O Subsystem

  • Paging is fast due to channel subsystem

πŸ”Ή Predictable Workloads

  • Enterprise workloads are stable and well-understood

πŸ”Ή Efficient Scheduler

  • z/VM scheduler is optimized for thousands of VMs

πŸ”· 8. Comparison with x86 Hypervisors

Featurez/VMTypical x86 (VMware/KVM)
CPU overcommitVery efficientGood
Memory overcommitVery aggressiveModerate
Page sharingStrongLimited (modern restrictions)
ScalabilityThousands of VMsHundreds
Stability under loadHighVariable

πŸ”· πŸ”₯ Simple Analogy

Think of a hotel:

  • Rooms (VMs) > actual beds (hardware)
  • Not all guests use beds at the same time

z/VM:

  • Tracks usage
  • Reassigns resources dynamically
  • Ensures important guests always get priority

πŸ”· πŸš€ Bottom Line

z/VM handles overcommitment by:

βœ” Time-sharing CPUs with intelligent scheduling
βœ” Using advanced memory techniques (paging, sharing, ballooning)
βœ” Multiplexing I/O efficiently
βœ” Dynamically adjusting resources based on workload

πŸ‘‰ This allows massive consolidation (1000s of VMs) on a single IBM Z system while maintaining stability.

Looking for servers Rental ?

Call Our Expert :


  • (call for rental enquiries)

Email us :