VMSTAT's avm field
avm stands for "Active Virtual Memory" and not "Available Memory". The avm value in VMSTAT indicates the average number of 4K virtual memory pages that have been accessed but not necessarily paged out. With the previous policy of late page space allocation, avm was equivalent to "paging space blocks" since the VMM would allocate one paging space disk block for each working page that was accessed. With the current deferred allocation policy, the page space disk blocks are allocated at the time the pages are actually paged out. The avm number will grow as more processes get started and/or existing processes allocate more working storage. Likewise, the avm number will shrink when processes (not threads) terminate or are released by the disclaim ( ) system call. They are not released by the free ( ) system call.
VMSTAT's fre field
fre is the average number of 4K pages that are currently on the free list. When an application terminates, all of its working pages are immediately returned to the free list. Its persistent pages (files), however, remain in RAM and are not added back to the free list until they are stolen by the VMM for use by other programs. Persistent pages are also freed if the corresponding file is deleted.
For these reasons, the fre value may not indicate all the real memory that can be readily available for use by processes. If a page frame is needed, then persistent pages previously referenced by terminated applications are among the first to be handed over to another program.
The minimum number of pages that the Virtual Memory Manager keeps on the free list is determined by the minfree parameter of vmtune. If the number of pages on the free list drops below minfree, the Virtual Memory Manager will steal pages until the free list has been restored to the maxfree value.
Explanation of svmon output
SIZE Total size of memory in 4K pages
INUSE Number of pages in RAM that are in use by a process plus the number of persistent pages that belonged to a terminated process and are still resident in RAM. This value is the total size of memory minus the number of pages on the free list.
FREE Number of pages on free list.
PIN Number of pages pinned in RAM (a pinned page is a page that is always resident in RAM and cannot by paged out)
VIRTUAL Number of pages allocated in the system virtual space (version 4.3.3 or later)
Pgspace:
SIZE Total size of paging space in 4K pages
INUSE Total number of allocated slots. (see "Paging space allocation and Virtual Memory" above)