Pedro,
Pseudo Swap (otherwise knows as swapmem) was introuduced in HP-UX 9.04. Pseudo Swap gives the OS the ability to run new programs by reserving their swap allocation upon invocation, this resevartion is performed using real memory instead of using swap. What this means, is, that you no longer have to have swap equal or larger than total physical memory. By default the tunable parameter that contols this behavior, swapmem_on, is set to 1.
In HP-UX 11.0 and new feature was added called Lazy Swap. Instead of me trying to explain lazy swap in my own words, let me quote the release notes:
BEGIN QUOTE
Lazy Swap Reservation
Run time environments in which multiple processes map large private data
regions into their address spaces will put an exorbitant demand on a
system's swap resources. It can be demonstrated that in such environ-
ments the swap pool becomes inefficiently utilized.
The Lazy Swap Reservation (SWLZY) feature means that a swap reservation
for a process-private page is deferred until the process actually
attempts to modify the page (i.e. copy-on-write is broken). Essentially,
for Lazy Swap private regions, swap resources are used only for dirtied
private pages (which really require swap backing-store in the event of a
possible page-out).
Programming Impact
------------------------------------------------------------------------
Although a SWLZY process more efficiently utilizes swap resources by not
reserving swap for all private pages at either exec(2) or fork(2) time,a
process may receive an unexpected SIGBUS signal at run time as a result of a failed attempt at making a swap reservation. Consequently, a
discerning program must be written to handle the SIGBUS signal and
invoke appropriate recovery steps. These steps may include a
limited retry, a check-pointing of any significant or volatile data,
or simply exiting.
END QUOTE
This behavior can be controled on an individual proccess level by setting the '+z' flag with the chatr command.
JL
Wild turkey surprise? I love wild turkey surprise!