swapinfo shows what swap files are set up. I want to add a 2GB swap file to
fozzie by using a somewhat empty disk on edg. First, I export the directory
to fozzie and then mount it on fozzie. Next, I add it as a swap file with:
swapon -l 500000 -p 2 /net/edg/bin
Finally, to make this permanent, add the following to /etc/checklist.
default /net/edg/bin swapfs lim=500000,pri=2 0 0
Other info:
The first time I ran the swapon command, I got the following error message:
swapon-NFS paging on /net/edg/bin/paging cannot be enabled because the
tunable parameter "remote_nfs_swap" is zero.
So I created a new kernel with remote_nfs_swap=1 and made a new kernel.
This still didn't work because ran out of memory again. Another change I made
was to maxswapchunks. This value helps to determine the total amount of swap
that can be used, according to the following formula:
maxswapchunks * 1024 * 2048 = total amount of swap (in bytes)
(The 2048 in the above equation is another tunable parameter, swchunk.) I changed maxswapchunks to 1024 and made a new kernel. Seems to be working.
Finding info about memory:
-top command, SIZE value gives the amount of memory a process and its data take.
For the simulation here, qsim.mod had a size 655M. All the other processes
had values in kilobytes, like 2832K or 292K.
-On edg, in /usr/local/hpux, run du -b paging, shows disk usage in bytes of the
directory paging, which is the swap area specified. So far, it has reached
around 175 MB.