TotalView Reference Guide : Part III: Platforms and Operating Systems : Operating Systems : Swap Space : Swap Space on HP HP-UX

Swap Space on HP HP-UX
The swapinfo command on an HP-UX system lets you find out how much swap space is allocated and is being used.
To find out how much swap space is being used while TotalView is running, enter:
/usr/bin/ps -lf
Here is an example of what you might see. The SZ column shows the pages occupied by a program.
To add swap space, use the/usr/sbin/swapon(1M) command or the SAM (System Administration Manager) utility. If you use SAM, invoke the Swap command in the Disks and File Systems menu.
Maximum Data Size
To see the current data size limit in the C shell, enter:
limit datasize
The following command displays the current hard limit:
limit -h datasize
If the current limit is lower than the hard limit, you can easily raise the current limit. To change the current limit, enter:
limit datasize new_data_size
If the hard limit is too low, you must reconfigure and rebuild the kernel, and then reboot. This is most easily done using SAM.
To change maxdsiz, use the following path through the SAM menus:
Kernel Configuration > Configurable Parameters >
maxdsiz > Actions > Modify Configurable Parameter >
Specify New Formula/Value > Formula/Value
You can now enter the new maximum data segment size.
You may also need to change the value for maxdsiz_64.
Here is the command that lets you rebuild the kernel with these changed values:
Configurable Parameter > Actions > Process New Kernel
Answer yes to process the kernel modifications, yes to install the new kernel, and yes again to reboot the machine with the new kernel.
When the machine reboots, the value you set for maxdsiz should be the new hard limit.

Rogue Wave Software, Inc.
Voice: (303) 473-9118
support@roguewave.com