SolarisInternals

Categories
OpenSolaris
directiostat
etruss
filebench
filestat
cpustat
mdb
::memstat
memtool
pmap
prstat
ptools
se toolkit
statit
taz
tnf
trapstat
vmstat/memstat
vmstat -p and memstat(1M)

Solaris 7 Only

A downloadable extended vmstat command for Solaris 7: memstat

Additional paging statistics are provided in the Solaris 7 kernel. Later, in Solaris 8, a new vmstat option (-p) was added to examine these statistics. The statistics can be observed on Solaris 7 with a simple command-line utility: memstat. memstat shows the paging activity, page-ins, page-outs, and page-frees separated into three classes: file system paging, anonymous memory paging, and executable/shared library paging.

Solaris 8 onwards

These statistics are available in Solaris 8 using vmstat -p

Statistics from the memstat and and vmstat -p commands

Counter

Description

  • free
  • The amount of free memory as reported by vmstat , which reports the combined size of the cache list and free list. Free memory on Solaris 7 may contain some of the file system cache.
  • re
  • Page reclaims -- The kilobytes of pages reclaimed since the last sample. Some of the file system cache is in the free list, and when a file page is reused and removed from the free list, a reclaim occurs. File pages in the free list can be either regular files or executable/library pages.
  • mf
  • Minor faults -- The kilobytes of pages attached to an address space since the last sample. If the page is already in memory, then a minor fault simply reestablishes the mapping to it
  • pi
  • Page-ins -- The kilobytes of pages paged in since the last sample. A page-in occurs whenever a page is brought back in from the swap device or brought from a file system into the file system cache.
  • po
  • Page-outs -- The kilobytes of pages paged out and freed. A page-out will be counted whenever a page is written and freed, often as a result of the pageout scanner, fsflush, or file close.
  • fr
  • Page-frees -- The kilobytes of pages that have been freed by either the page scanner or by the file system (free-behind).
  • de
  • The precalculated anticipated short-term memory shortfall. Used by the page scanner to free ahead enough pages to satisfy requests.
  • sr
  • The kilobytes of pages scanned by the page scanner per second.
  • epi
  • Executable and library page-ins -- The kilobytes of pages from executable or shared library files paged in since the last sample. An executable/library page-in occurs whenever a page for the executable binary or shared library is brought back in from the file system.
  • epo
  • Executable and library page-outs. Should be zero.
  • epf
  • Executable and library page-frees -- The number of executable and library pages that have been freed by the page scanner.
  • api
  • Anonymous memory page-ins -- The number of anonymous (application heap and stack) pages paged in from the swap device since the last sample.
  • apo
  • Anonymous memory page-outs -- The number of anonymous (application heap and stack) pages paged out to the swap device since the last sample.
  • apf
  • Anonymous memory page-frees -- The number of anonymous (application heap and stack) pages that have been freed, after they have been paged out.
  • fpi
  • Regular file page-ins -- The kilobytes of pages from regular files paged in since the last sample. A file page-in occurs whenever a page for a regular file is read in from the file system (part of the normal file system read process).
  • fpo
  • Regular file page-outs -- The number of regular file pages that were paged out and freed, usually as a result of being paged out by the page scanner or by write free-behind (when free memory is less than lotsfree + pages_before_pager ).
  • fpf
  • Regular file page-frees -- The number of regular file pages that were freed, usually as a result of being paged out by the page scanner or by write free-behind (when free memory is less than lotsfree + pages_before_pager ).



Browse the book online via Safari

Original Material © 2000-2005 Richard McDougall & Jim Mauro
Last Updated Dec 02 2005 00:21