System Administration Guide: Advanced Administration

ProcedureHow to Check Unused Memory (sar -r)

  1. Use the sar -r command to report the number of memory pages and swap-file disk blocks that are currently unused.


    $ sar -r
    00:00:00 freemem freeswap
    01:00:00    2135   401922

    The following list describes the output from the -r option:

    freemem

    The average number of memory pages that are available to user processes over the intervals sampled by the command. Page size is machine-dependent.

    freeswap

    The number of 512-byte disk blocks that are available for page swapping.


Example 13–13 Checking Unused Memory (sar -r)

The following example shows output from the sar -r command.


$ sar -r

SunOS balmyday 5.10 s10_51 sun4u    03/18/2004

00:00:04 freemem freeswap
01:00:00   44717  1715062
02:00:01   44733  1715496
03:00:00   44715  1714746
04:00:00   44751  1715403
05:00:00   44784  1714743
06:00:00   44794  1715186
07:00:00   44793  1715159
08:00:00   44786  1714914
08:20:00   44805  1715576
08:40:01   44797  1715347
09:00:00   44761  1713948
09:20:00   44802  1715478
09:40:00   41770  1682239
10:00:00   35401  1610833
10:20:00   34295  1599141
10:40:00   33943  1598425
11:00:00   30500  1561959

Average    43312  1699242