Kernel-Managed Swap Facility (KMSF) Manual
Managing KMS Files
Kernel-Managed Swap Facility (KMSF) Manual—425824-005
3-14
Deleting Swap Files
The file is not deleted until all the current processes using the file have
terminated and NSKCOM is started by a super-group user (255, n). When
NSKCOM is started by a super-group user (255, n), NSKCOM searches for
files that are marked for deletion and that are not in use and deletes them.
In Example 3-13 on page 3-14, the STOP and DELETE commands are not
completed immediately because the swap file is in use. The DELETE
command is not completed immediately, but the file is marked for deletion. The
user then exits NSKCOM. When a super-group user (255, n) later starts
NSKCOM again, NSKCOM searches for files to delete and deletes them.
For complete information on syntax for the STOP and DELETE commands, see
Section 4, NSKCOM Command Reference.
Example 3-13. Deleting a Swap File That Is in Use
NSK-STOP SWAPFILE $SWAP.KERSWAP.CPU00B
File $SWAP.KERSWAP.CPU00B Stop Pending altered in ZSYSCFG
STOP is pending
NSK-STATUS SWAPFILE $SWAP.KERSWAP.CPU00B
Status of $SWAP.KERSWAP.CPU00B
CPU 0
CPU Pages: Total 32768 Reserved 20488 Available 12280
Peak CPU Pages ever reserved 22320
Threshold 27852 CPU pages
Stop pending
NSK-DELETE SWAPFILE $SWAP.KERSWAP.CPU00B
*** Warning: File in-use: $SWAP.KERSWAP.CPU00B
*** File Error 12: System Monitor: CPU 0
File marked 'delete pending' by Monitor
File $SWAP.KERSWAP.CPU00B marked for delete in ZSYSCFG
NSK-EXIT
...
$SYSTEM SYSTEM 3> NSKCOM
NSKCOM - T5838H01 BASE (01OCT04) - Apr 15 2005
Copyright 1995 Compaq Computer Corporation
$SYSTEM.SYSTEM.ZSYSCFG
KMS.SWAPFILE = 0 $SWAP.KERSWAP.CPU00A THRESHOLD 70
KMS.SWAPFILE = 1 $SWAP.KERSWAP.CPU01A THRESHOLD 90
KMS.SWAPFILE = 1 $SWAP1.KERSWAP.CPU01B
KMS.SWAPFILE = 0 $SWAP1.KERSWAP.CPU00C
KMS.SWAPFILE = 0 $SWAP.KERSWAP.CPU00B DELETE STOP
Cleaning $SWAP.KERSWAP.CPU00B...Please wait.
SWAPFILE $SWAP.KERSWAP.CPU00B was purged.
NSK-