vmstat - Remove the busy_time == 0 hack
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 2 May 2012 03:06:44 +0000 (20:06 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 2 May 2012 03:06:44 +0000 (20:06 -0700)
commit79c84c6c7d227c4c949bed8060b66da76d7ecc64
tree31b64a8d55a964e5337b3096b6327d6d517300a4
parenta60655aab59d4feed028cc4fe45e5c777afa7002
vmstat - Remove the busy_time == 0 hack

Remove a very old busy_time == 0 hack which assumed that a delta busy time
of 0 with transactions present simply meant that a transaction didn't
complete within one second and that the device was 100% busy.

In fact, disk devices are so fast these days (particularly SSDs) that it is
possible for many transactions to complete without causing the busy counter
to tick-over.  The device is more likely to be less than 1% busy.

This fixes the '% busy' display for e.g. 'systat -vm 1' to properly report
0% in these situations.
usr.bin/systat/vmstat.c