Cameron Laird's personal notes on Unix "swap space"

How do I find out about my swap space?

Progressive deterioration in swap space availability often results from long-running, leaky--or just demanding--processes. All swap space investigations should begin with discovery of where you are. [Explain more.]

pstat -s

SunOS, ...

/usr/sbin/swap -s

This is how to say it in Solaris.


HP-UX, but often only to root user. In an HP-UX sense, "swap" is obsolete, anyway.


HP-UX, ... [explain]

How much swap space should I have?

These are my guidelines: [...] [Relation to physical memory ...]

How do I add more swap space?

[Explain contiguity.]



Digital Unix


See vnconfig(8).


Use swapon.

Much of the swap space under HP-UX is unusable. [Explain]

glance (glanceplus) on the CD-ROM might report more accurately than swapinfo.


Transient swap space:
mkfile 60m $FILE
/usr/sbin/swap -a $FILE
See `man swap`.

Under 2.x, it is possible to disable space with "swap -d ..." (which presumably derives from swapctl(2)). Solaris 1.x does not offer this.


Transient swap space:
mkfile 60m $FILE
swapon $FILE
It is not generally possible to invert this operation; there is no way to demand that SunOS surrender the swap space without a re-boot.

Persistent swap space: [give examples of /etc/*tab*].
$FILE - - swap - no -

Cameron Laird's personal notes on Unix "swap space"/