systat - clarify 'Free' in systat -vm 1
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 30 Aug 2017 06:56:42 +0000 (23:56 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 30 Aug 2017 06:56:42 +0000 (23:56 -0700)
commita4c31683d0550ba3aef4c22e6179952f3251101d
tree9071aee43e1009a10505f7a660eb36155d62c6b9
parentaff729969cea3810c2aae773a210c459ffd8d2db
systat - clarify 'Free' in systat -vm 1

* Clarify Free by indicating i+c+f (inactive + cache + free).  That is,
  the Free memory reported in the upper left counts the Inactive page
  queue as part of its total, even though it isn't quite free.

* The main reason for this is that when the memory pressure de-stresses,
  the VM system doesn't bother wasting time moving pages out of the inactive
  queue, even though they are effectively freeable.

  On the otherhand, if the system is under significant memory pressure,
  the inactive queue will itself become stressed and minimize.

  This makes it a fairly accurate representation of what is potentially
  freeable (albeit with some effort by the paging system).
usr.bin/systat/vmstat.c