From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,15fb7c9a34ded5cd X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-11-26 10:54:20 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!nabeth.cxo.cpqcorp.net!alan Newsgroups: comp.unix.tru64 From: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Distribution: world References: Reply-To: alan@nabeth.cxo.cpqcorp.net (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Backup Efficiency Message-ID: Date: Mon, 26 Nov 2001 18:54:19 GMT NNTP-Posting-Host: 16.112.5.128 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1006800859 16.112.5.128 (Mon, 26 Nov 2001 10:54:19 PST) NNTP-Posting-Date: Mon, 26 Nov 2001 10:54:19 PST Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:5895 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)