3 swap \- establish a swap file
9 establishes a file for the system to swap on.
12 is an existing file, it is used for system swap. If it
13 does not exist, a new file is created. If
15 is a directory, a unique file is created in that directory
17 The environment variable
19 is set to the full name of the resulting file.
20 The number of blocks available in the file or device
21 must be at least the number of swap blocks configured
24 If a swap channel has already been set and no blocks
25 are currently valid in the file the old file will be
26 closed and then replaced. If any blocks are valid on
27 the device an error is returned instead.
29 .B /sys/src/cmd/swap.c
31 Swapping to a file served by a local user-level process
32 will lead to deadlock if the process isn't made non-swappable