determine datasets:
# ssh root@192.168.73.141 analytics datasets list
DATASET STATE INCORE ONDISK NAME
dataset-000 active 710K 32.6K arc.accesses[hit/miss]
dataset-001 active 242K 31.2K arc.l2_accesses[hit/miss]
dataset-002 active 242K 31.2K arc.l2_size
dataset-003 active 242K 31.2K arc.size
dataset-004 active 880K 32.5K arc.size[component]
dataset-005 active 242K 31.2K cpu.utilization
dataset-006 active 409K 32.5K cpu.utilization[mode]
(output skipped)
2. write a small script that gives totals and average.
dataset-026 is used (nfs4.ops[client])
# vi datasets
#!/usr/bin/bash
if (($# == 0))
then
echo usage: $0 nseconds
exit 1
fi
sec=$1
while true
do
set `ssh root@192.168.73.141 analytics datasets select dataset-026 read $sec|awk '{p
rint $3}'|grep -v OPS`
total=0
while test $# -gt 0
do
((total+=$1))
shift
done
echo Total in $sec seconds: $total
((avg=$total/$sec))
echo Avg per second: $avg
sleep 10
done
:wq!
# chmod +x datasets
# ./datasets
usage: ./datasets nseconds
# ./datasets 15
Total in 15 seconds: 4224
Avg per second: 281
Total in 15 seconds: 4238
Avg per second: 282
(output skipped)