Kernel-Managed Swap Facility (KMSF) Manual
Introduction
Kernel-Managed Swap Facility (KMSF) Manual—425824-005
1-6
Kernel-Managed Swap Space Process Flow
given from a different swap file than that used for the initial reservation. When a
process no longer needs swap space, the operating system returns it to the KMSF.
Figure 1-2 illustrates how swap space is allocated.
The process can request additional memory, and KMSF increases the reservation if
space is available. If possible, the same file provides the additional swap space;
otherwise, the space is provided by another KMS file.
If there are multiple swap files configured for a processor, KMSF attempts to distribute
swap reservations evenly among the available swap files. If a swap file has reached its
configured threshold, KMSF attempts to distribute the swap reservations among the
available swap files that have not reached their configured thresholds before using files
that have reached their configured threshold.
Figure 1-2. How Swap Space Is Allocated
operating system
swap space request
swap space allocation
Write page
request
Write page
completed
Executing
Process
Executing
Process
Executing
Process
Executing
Process
Executing
Process
Inactive
Process
KMSF
Disk
Process
swap00
swap01
VST002.vsd
Memory
Management
Software