In IBM PowerVM on systems built with the IBM POWER architecture, shared processor pool (SPP) scheduling is how the hypervisor (PHYP) distributes CPU time among micro-partitioned LPARs that share a defined set of physical cores.
Itβs a fair-share, priority-aware, time-sliced scheduling system with dynamic borrowing.
πΉ 1. What a Shared Processor Pool Is
A Shared Processor Pool (SPP) is:
-
A group of physical CPU cores
-
Shared by multiple LPARs
Each LPAR in the pool has:
-
Entitled capacity (guaranteed CPU)
-
Optional ability to use more (uncapped mode)
πΉ 2. Core Scheduling Concepts
π§ a) Entitled Capacity (EC)
-
Minimum guaranteed CPU for an LPAR
-
Example:
βοΈ b) Virtual Processors (VPs)
-
Logical CPUs presented to the LPAR
-
Determines how much parallel work it can run
π¦ c) Capped vs Uncapped
-
Capped β cannot exceed entitlement
-
Uncapped β can use extra CPU if available
π§© d) Weight (Priority)
-
Used in uncapped mode
-
Determines how extra CPU is shared
πΉ 3. How Scheduling Works (Step-by-Step)
π’ Step 1: Guarantee Phase
-
PHYP first ensures all LPARs get their entitled capacity
π This is strict and guaranteed
π‘ Step 2: Surplus Distribution
-
If unused CPU exists:
-
Distributed among uncapped LPARs
π Based on:
π΄ Step 3: Time-Slice Scheduling
-
CPU time divided into small time slices
-
PHYP rotates execution across LPARs
π Very fast switching (microseconds level)
πΉ 4. Example Scenario
Pool: 4 physical cores
| LPAR | Entitlement | Mode | Weight |
|---|
| A | 1.0 | Uncapped | 200 |
| B | 1.0 | Uncapped | 100 |
| C | 0.5 | Capped | β |
Allocation:
-
Guaranteed:
-
A = 1 core
-
B = 1 core
-
C = 0.5 core
π Total = 2.5 cores used
-
Remaining = 1.5 cores
-
Shared between A and B based on weight:
π A gets ~2/3
π B gets ~1/3
πΉ 5. Hardware Support
On processors like the IBM POWER10 processor:
-
SMT threads allow fine-grained sharing
-
Fast context switching reduces overhead
-
Hardware counters help scheduler decisions
πΉ 6. Performance Characteristics
β
High Utilization
β‘ Fast Response
-
Microsecond-level scheduling
βοΈ Fairness
-
Guaranteed minimum + weighted sharing
π Dynamic Adaptation
-
Adjusts in real time based on workload demand
πΉ 7. Potential Trade-offs
β Latency variability
-
Shared environment β contention possible
β Overcommit risk
-
Too many LPARs β CPU contention
β Tuning complexity
-
Requires correct:
-
Entitlement
-
Weight
-
VP sizing
πΉ 8. Best Practices
β Match virtual processors to workload parallelism
β Avoid excessive overcommit
β Use uncapped mode for bursty workloads
β Monitor CPU wait time
πΉ 9. Key Insight
Shared processor pool scheduling ensures guaranteed performance first, then maximizes utilization through intelligent sharing.
π Summary
| Feature | Function |
|---|
| Entitlement | Guaranteed CPU |
| Uncapped mode | Burst usage |
| Weight | Priority in sharing |
| Time slicing | Fair scheduling |
π§ Bottom Line
In IBM PowerVM:
-
Shared processor pools use fair-share scheduling with guarantees
-
Combine:
-
Deterministic performance
-
High efficiency
π This allows POWER systems to achieve very high consolidation ratios without sacrificing critical workload performance.