]> granicus.if.org Git - zfs/commit
Add zpool status -s (slow I/Os) and -p (parseable)
authorTony Hutter <hutter2@llnl.gov>
Fri, 9 Nov 2018 00:47:24 +0000 (16:47 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 9 Nov 2018 00:47:24 +0000 (16:47 -0800)
commitad796b8a3b2565bcd9c7460b7bf9154e4850ca93
tree645cc21be6d49c034f00273276caa82ce59702a7
parent877d925a9e816337bb62ee61d564118db0181477
Add zpool status -s (slow I/Os) and -p (parseable)

This patch adds a new slow I/Os (-s) column to zpool status to show the
number of VDEV slow I/Os. This is the number of I/Os that didn't
complete in zio_slow_io_ms milliseconds. It also adds a new parsable
(-p) flag to display exact values.

  NAME         STATE     READ WRITE CKSUM  SLOW
  testpool     ONLINE       0     0     0     -
  mirror-0   ONLINE       0     0     0     -
      loop0    ONLINE       0     0     0    20
      loop1    ONLINE       0     0     0     0

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #7756
Closes #6885
16 files changed:
cmd/zpool/zpool_main.c
include/sys/fm/fs/zfs.h
include/sys/fs/zfs.h
include/sys/spa.h
include/sys/zio.h
man/man5/zfs-events.5
man/man5/zfs-module-parameters.5
man/man8/zpool.8
module/zfs/vdev.c
module/zfs/vdev_label.c
module/zfs/zfs_fm.c
module/zfs/zio.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/fault/Makefile.am
tests/zfs-tests/tests/functional/fault/zpool_status_-s.ksh [new file with mode: 0755]
tests/zfs-tests/tests/perf/perf.shlib