Use the sar -g option reports page-out and memory freeing activities (in averages).
$ sar -g SunOS venus 5.6 Generic sun4m 08/20/96 00:00:03 pgout/s ppgout/s pgfree/s pgscan/s %ufs_ipf 01:00:02 0.00 0.00 0.00 0.00 0.00 |
The output displayed by sar -g is a good indicator of whether more memory may be needed. Use the ps -elf command to show the number of cycles used by the page daemon. A high number of cycles, combined with high values for pgfree/s and pgscan/s indicates a memory shortage.
sar -g also shows whether inodes are being recycled too quickly, causing a loss of reusable pages.
Output from the -g option is described in Table 64-11.
Table 64-11 Output From the sar -g Command
The following example shows output from the sar -g command.
$ sar -g SunOS skisun 5.6 Generic sun4m 08/20/96 14:28:12 pgout/s ppgout/s pgfree/s pgscan/s %ufs_ipf 15:29:13 0.00 0.00 0.35 8.18 0.00 16:29:12 1.20 2.20 3.35 3.40 0.00 |