Lines Matching +full:single +full:- +full:cpu
9 iostat-1s: Do a single 1-second iostat sample and show values.
10 iostat-10s: Do a single 10-second iostat sample and show values."
13 if [ "$1" = "-h" ] ; then
14 echo "$helpstr" | grep "$script:" | tr -s '\t' | cut -f 2-
21 if [ ! -b "$VDEV_UPATH" ]; then
27 if [ "$script" = "iostat-1s" ] ; then
28 # Do a single one-second sample
32 elif [ "$script" = "iostat-10s" ] ; then
33 # Do a single ten-second sample
39 if [ -f "$somepath" ] ; then
40 # We're a file-based vdev, iostat doesn't work on us. Do nothing.
45 out=$(iostat -dKx \
46 ${interval:+"-w $interval"} \
47 ${interval:+"-c 1"} \
48 "$somepath" | tail -n 2)
50 out=$(iostat -kx \
51 ${brief:+"-y"} \
54 "$somepath" | grep -v '^$' | tail -n 2)
60 # Linux 2.6.32-642.13.1.el6.x86_64 (centos68) 03/09/2017 _x86_64_ (6 CPU)
62 # avg-cpu: %user %nice %system %iowait %steal %idle
65 # Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_awa…
70 cols=$(echo "$out" | head -n 1)
72 # Get the values and tab separate them to make them cut-able.
73 vals=$(echo "$out" | tail -n 1 | tr -s '[:space:]' '\t')
79 if [ "$i" -eq 1 ]; then
84 val=$(echo "$vals" | cut -f "$i")