getting tape speed with iostat or similar

Tags:

Hi,

On solaris I can get an idea of the data getting read or written to with
"iostat" - but in linux iostat does not support tape (st) devices it
appears, and I haven't found any other way to get this info. Right now
to see the rate at which something is being written to tape I have to
try and deduce it (disk read speed, strace, etc), but is there a way to
get the read/write data rate of st device use?

regards,

Duncan

--

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

getting tape speed with iostat or similar

On Tue, Jan 09, 2007 at 01:43:47PM +1100, Duncan Robertson wrote:
> On solaris I can get an idea of the data getting read or written to with
> "iostat" - but in linux iostat does not support tape (st) devices it
> appears, and I haven't found any other way to get this info. Right now
> to see the rate at which something is being written to tape I have to
> try and deduce it (disk read speed, strace, etc), but is there a way to
> get the read/write data rate of st device use?

you could use dd, buffer, bfr or similar programs to buffer the data on
its way to the tape drive. they can all print either a final summary or
progress reports (which either include bps or enough data to calculate
it).

they also tend to speed up tape backups by buffering to the right block
size for optimum streaming on your tape device.

Package: bfr
Status: install ok installed
Priority: extra
Section: utils
Installed-Size: 96
Maintainer: Mark Glines
Architecture: i386
Version: 1.6-0.1
Depends: libc6 (>= 2.3.6-6)
Description: nonblocking 8-bit-clean pipe buffer
bfr's purpose is to buffer data. It buffers from its standard input
and/or a list of files of your choosing, and allows this data to flow
to its standard output at whatever rate that end can handle. It's
useful for any situation in which it's beneficial to have I/O occur in
a detached yet smooth fashion.
Also contained is bfp, a buffering /dev/dsp writer. Pipe your raw PCM
data to it, for skip-free bliss.

Package: buffer
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 80
Maintainer: Martin Buck
Architecture: i386
Version: 1.19-8
Depends: libc6 (>= 2.3.5-1)
Description: Buffering/reblocking program for tape backups, printing, etc.
Buffer implements double buffering and can be used to keep backup tapes
streaming or printers printing. It can also be used to convert a data
stream to a given output blocksize.
.
Buffer uses shared memory to convert a variable input data rate to a
constant output data rate. It is typically used in a pipe between a backup
program and the tape device, but there are also other applications like
buffering printer data in lpd's input filter.

craig

--
craig sanders (part time cyborg)

--

getting tape speed with iostat or similar

i've already sent this to duncan in private mail, but thought others here
might find it useful:

google[1] came up with this:

http://sourceware.org/systemtap/wiki/WSiostatSCSI

"Linux doesn't provide I/O statistics for tape devices for printing by the
iostat command. Rather than beg your vendor to patch your kernel to do this,
let systemtap do some digging."

[1] http://www.google.com/linux?hl=en&lr=&q=%2Biostat+%2Btape&btnG=Search

systemtap is packaged for debian:

Package: systemtap
Priority: optional
Section: devel
Installed-Size: 2264
Maintainer: Eugeniy Meshcheryakov
Architecture: i386
Version: 0.0.20061202-1
Depends: libc6 (>= 2.3.6-6), libelf1, libgcc1 (>= 1:4.1.1-12), libglib2.0-0
(>= 2.12.0), libmysqlclient15off (>= 5.0.24-2), libpfm3-3.2, libstdc++6 (>=
4.1.1-12), sudo
Filename: pool/main/s/systemtap/systemtap_0.0.20061202-1_i386.deb
Size: 653470
MD5sum: 3807fc4ef56fb4cd028287b211a8bb1e
SHA1: 02754b7276391c6f3a5f1eaaec3ce3f50dec57f2
SHA256: b54cc07d4b2fc5f73511c0eb6c796940bdb7319993cc0a04a57d40fbeef27a2d
Description: instrumentation system for Linux 2.6
The SystemTap project aims to produce a Linux tool that lets
application developers and system administrators take a deeper look
into a running kernel. It aims to exploit the capability of a fully
open-source Linux target to go beyond performance measurements, and
perhaps even serve as a programmable debugger.

craig

ps: apparently you need to recompile your kernel and enable the
'kprobes' kernel debugging option to get this to work.

--
craig sanders (part time cyborg)

--

getting tape speed with iostat or similar

Actually this has done the trick, thanks muchness!!

In fact this whole systemtap thing looks like a handy tool in general
for figuring out whats happening on a server.

Now we can watch those bytes stream in and out, or not..

On Wed, 2007-01-10 at 10:10 +1100, Craig Sanders wrote:
> i've already sent this to duncan in private mail, but thought others here
> might find it useful:
>
>
>
> google[1] came up with this:
>
> http://sourceware.org/systemtap/wiki/WSiostatSCSI
>
> "Linux doesn't provide I/O statistics for tape devices for printing by the
> iostat command. Rather than beg your vendor to patch your kernel to do this,
> let systemtap do some digging."
>
>
>
> [1] http://www.google.com/linux?hl=en&lr=&q=%2Biostat+%2Btape&btnG=Search
>
>
>
> systemtap is packaged for debian:
>
> Package: systemtap
> Priority: optional
> Section: devel
> Installed-Size: 2264
> Maintainer: Eugeniy Meshcheryakov
> Architecture: i386
> Version: 0.0.20061202-1
> Depends: libc6 (>= 2.3.6-6), libelf1, libgcc1 (>= 1:4.1.1-12), libglib2.0-0
> (>= 2.12.0), libmysqlclient15off (>= 5.0.24-2), libpfm3-3.2, libstdc++6 (>=
> 4.1.1-12), sudo
> Filename: pool/main/s/systemtap/systemtap_0.0.20061202-1_i386.deb
> Size: 653470
> MD5sum: 3807fc4ef56fb4cd028287b211a8bb1e
> SHA1: 02754b7276391c6f3a5f1eaaec3ce3f50dec57f2
> SHA256: b54cc07d4b2fc5f73511c0eb6c796940bdb7319993cc0a04a57d40fbeef27a2d
> Description: instrumentation system for Linux 2.6
> The SystemTap project aims to produce a Linux tool that lets
> application developers and system administrators take a deeper look
> into a running kernel. It aims to exploit the capability of a fully
> open-source Linux target to go beyond performance measurements, and
> perhaps even serve as a programmable debugger.
>
>
> craig
>
> ps: apparently you need to recompile your kernel and enable the
> 'kprobes' kernel debugging option to get this to work.
>
> --
> craig sanders (part time cyborg)
>
>

--

Syndicate content