Next | Prev | Up | Top | Contents | Index

Swapping and Paging Messages

Swapping and Paging are the methods by which the operating system manages the limited memory resources in order to accommodate multiple processes and system activities.In general, the operating system keeps in actual RAM memory only those portions of the running programs that are currently or recently in use. As new sections of programs are needed, they are paged (or "faulted") into memory, and as old sections are no longer needed they are paged out.

Swapping is similar to paging, except that entire processes are swapped out, instead of individual memory pages, as in paging. The system maintains a section of hard disk for swapping. If this space is filled, no further programs can be swapped out, and thus no further programs can be created.

The following messages may indicate a swapping or paging problem:

If you run out of swap space or memory frequently, you should:

  1. Exit from applications when you are not using them. Remember to check all your Desks.

  2. Order additional memory from your local support or sales organization.

  3. Turn on virtual swap space. Refer to the swap(1M) reference page and "Swap Space" first.

    The Administrator should log in as root and enter the command:

    chkconfig

    If the chkconfig listing shows a line that says vswap off, give the commands:

    chkconfig vswap on

    /etc/init.d/swap start

    If vswap was already on, go on to the next step.

  4. Create a file that the system can use for additional swap space. Note that this decreases your available disk space by the size of the file. If you create a 10 MB swap file, you'll no longer have access to that 10MB of disk space.

    To create a 10 MB swap file, the Administrator should log in as root and enter these commands:

    mkdir -p /var/swap

    /usr/sbin/mkfile 10m /var/swap/swap1

    /sbin/swap -a /var/swap/swap1

    To make this permanent, so you have the swap space available every time you restart the system, add this line to the /etc/fstab file:

    /var/swap/swap1 swap swap pri=3

    For more information, see the swap(1M) reference page or "Swap Space".

  5. You can permanently increase swap space by repartitioning the disk. You can find instructions to do this in the IRIX Admin: Disks and Filesystems volume.

Next | Prev | Up | Top | Contents | Index