systat - Refactor memory displays for systat -vm
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 25 Jul 2016 23:05:40 +0000 (16:05 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 25 Jul 2016 23:16:34 +0000 (16:16 -0700)
commit32ac1f29ee0bfe4c4bc678e9dfa39a6c13633923
tree573e269fb014333def433fa4feace247dfcefca9
parentb5297f91a9b59c808e4440d8403ec513cfd7dd1c
systat - Refactor memory displays for systat -vm

* Report paging and swap activity in bytes and I/Os instead of pages and
  I/Os (I/Os usually matched pages).

* Report zfod and cow in bytes instead of pages.

* Replace the REAL and VIRTUAL section with something that makes a bit
  more sense.

  Report active memory (this is just active pages), kernel memory
  (currently just wired but we can add more stuff later), Free
  (inactive + cache + free is considered free/freeable memory), and
  total system memory as reported at boot time.

  Report total RSS - basically how many pages the system is mapping to
  user processes.  Due to sharing this can be a large value.

  Do not try to report aggregate VSZ as there's no point in doing so
  any more.

  Reported swap usage on the main -vm display as well as total swap
  allocated.

* Fix display bug in systat -sw display.

* Add "nvme" device type match for the disk display.
lib/libdevstat/devstat.c
usr.bin/systat/swap.c
usr.bin/systat/vmstat.c