Linux tape drive throughput performance statistics

linuxperformancetape

Does anyone know a way, (other than using SystemTap + iostat-scsi.stp script), to get Tape Drive performance statistics?

Server:
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
Kernel 2.6.18-274.12.1.el5 on an x86_64

Attached Tape Devices:
Number model SN HBA SCSI FO Path
0 ULT3580-HH5 1068028623 qla2xxx 1:0:0:0 NA
1 ULT3580-HH5 1068030139 qla2xxx 2:0:0:0 NA

I want to get throughput information out of these tape drives.

In AIX, you can just do iostat -p and get that information (assuming atape driver is installed). There doesn't seem to be anything like that for Linux.

Anyone know of anything?

(I don't use SystemTap + iostat-scsi.stp script because it's not meant for production. It's known to cause kernel dumps and crash systems.)

Best Answer

tapestat, part of the iostat package.

[dan@lnaapp-backup ~]$ tapestat 1 1
Linux 3.10.0-514.el7.x86_64 (lnaapp-backup.internal.lr.org)     05/07/17        _x86_64_        (24 CPU)

Tape:    r/s     w/s   kB_read/s   kB_wrtn/s %Rd %Wr %Oa    Rs/s    Ot/s
st0        0     106           0       27284   0  11  21       0     0 
st1        0       0           5           0   0   0  21       0     0 
st2        0       0           5           0   0   0  11       0     0 
st3        0       0           3           0   0   0  19       0     0