SGI IRIX
To find out how much swap space has been allocated and is currently being used, use the swap command:
% /sbin/swap -s
total: 1.55m allocated + 124.47m add'l reserved = 126.02m bytes
used, 250.94m bytes available
To find out how much swap space is in use while you are running TotalView:
- Start TotalView with a large executable:
totalview executable
- Press Ctrl-Z to suspend TotalView.
- Use the following command to see how much swap space TotalView is using:
/bin/ps -l
For example, in this case the value in the SZ column is 584 pages.
F S UID PID PPID C PRI NI P ...
b0 T 14694 26236 26271 5 62 20 * ...
Use the following command to determine the number of bytes in a page:
sysconf PAGESIZE
To add swap space, use the mkfile(1M) and swap(1M) commands. You must be root to use these commands. For more information, refer to the on-line manual pages for these commands.