Kernel-Managed Swap Facility (KMSF) Manual

Managing KMS Files
Kernel-Managed Swap Facility (KMSF) Manual425824-005
3-13
Deleting Swap Files
Usage of the file stops when all processes using the file have terminated.
NSKCOM then gives the file’s status as “Not currently in-use.
Deleting Swap Files
You use the STOP and DELETE commands to delete KMS files. The STOP command
disables a swap file for use by additional processes. The DELETE command deletes a
swap file if it is not in use and marks a swap file for future deletion if it is in use; any
current processes using the file are not affected. The swap file is not deleted until all
activity in the file has stopped, so the actual deletion of the file may be delayed.
1. Issue the STOP command to stop use of the file by additional processes; existing
processes using the file are not affected.
2. Issue the DELETE command to delete the file if it is not in use, or mark the file for
future deletion if it is in use. You can enter this command while the file is still in
use. When the file is actually deleted depends on whether the file is in use:
If the file is not being used by any processes, the file is deleted immediately. In
Example 3-12, the STOP command completes immediately and the STATUS
command shows that use of the swap file has been completely stopped with
the text “Not currently in use.” The subsequent DELETE command is
completed while the user waits.
If the file is still in use, the file is marked for deletion in the ZSYSCFG file.
NSKCOM shows any DELETE mark for a file in its informational commands,
including STATUS, INFO, and ENV.
Example 3-11. STOP Pending Message
NSK-STOP SWAPFILE $SWAP.KERSWAP.CPU00A
File $SWAP.KERSWAP.CPU00A Stop Pending altered in ZSYSCFG
STOP is pending
NSK-
Example 3-12. Deleting a Swap File That Is Not in Use
NSK-STOP SWAPFILE $SWAP.KERSWAP.CPU00B
File $SWAP.KERSWAP.CPU00B Stop Pending altered in ZSYSCFG
STOP was successful: $SWAP.KERSWAP.CPU00B
NSK-STATUS SWAPFILE $SWAP.KERSWAP.CPU00B
Status of $SWAP.KERSWAP.CPU00B
Not currently in-use.
NSK-DELETE SWAPFILE $SWAP.KERSWAP.CPU00B
Cleaning $SWAP.KERSWAP.CPU00B...Please wait.
Swapfile deleted from disk.
File $SWAP.KERSWAP.CPU00B was deleted from ZSYSCFG
DELETE was successful: $SWAP.KERSWAP.CPU00B
NSK-