From: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: Backup Efficiency
Date: Mon, 26 Nov 2001 18:54:19 GMT [thread overview]
Message-ID: <vdwM7.1964$RL6.61134@news.cpqcorp.net> (raw)
In-Reply-To: fad3ec54.0111260630.7bfdebf3@posting.google.com
Over generalizing some, backup speed is affected by:
o How quickly you can read from the source.
o How quickly you can write to the destination.
o How quickly you can open and close files if using a backup utility
that has to open and close files.
o How quickly you can catalog the files backed up if you do that
sort of thing. For example, if vdump has a "verbose" option that
echos the name of each file backed up, saving that somewhere will
affect the speed of the backup.
When you have many small files, the extra I/O required to open the file
and later close it (update the access or inode change time) may dominate
the time required to read the file. Usually the writes for the close
are done asynchronously, but there is still an I/O load there, which
may steal throughput and bandwidth capacity from the source device.
Writeback caches on suitable subsystems or Prestoserve NVRAM may help
some.
Some tape drives are very sensitive to changes in data rate going to
the drive. If you can't maintain a high enough data rate, the tape
won't be able to stream and will have switch to start-stop mode; shoeshine.
Some drives will pad the data stream with empty blocks of its own just
to keep the tape moving, but that eats into capacity.
When compression is being used it hard to estimate tape usage, since
compression ratio changes with the data. Some drives may report the
amount of tape used in Mode or Log pages, or in the vendor specific
data sent back on a Request Sense. scu(8) likely won't know how to
format such vendor specific pages, but if you can get the raw data
and the format, you might be able to work it out. If the data is
available you may be able to get before and after tape usage. With
a reliable estimate of compression you can at least get rough numbers
on much tape is left.
I don't know how well it is supported these days, but the SCSI CAM
driver supported a method to send bare SCSI commands to devices; the
CAM User Agent. It was hard to use, but would let you write a custom
program to get and format the data. The drivers may also still support
the old ULTRIX radisk interface. I don't know if there was anything
in the tape driver to support it was possible to use the 6 byte Mode
Sense on some devices. Look for the rzdisk.h file.
--
Alan Rollow alan@nabeth.cxo.cpqcorp.net (previously .dec.com)
next prev parent reply other threads:[~2001-11-26 18:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-26 14:30 Backup Efficiency Marc Biggs
2001-11-26 18:54 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
2001-11-27 9:48 ` Hans Schwengeler
2001-11-30 16:48 ` John McNulty
2001-12-03 10:08 ` Marc Biggs
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox