Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Backup Efficiency
@ 2001-11-26 14:30 Marc Biggs
  2001-11-26 18:54 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Biggs @ 2001-11-26 14:30 UTC (permalink / raw)


Dear All,
I have recently been investigating ways to speed up the backups of our
systems. I have been testing the relative advantages of software
compression (utilising the -C option in the vdump command) and
hardware compression (utilising the /dev/tape/tape1_d1 device). The
results suggested that hardware compression was faster in the
situation were we were backing up many small files. There seemed to be
little difference between the two when we were backing up a small
number of large files.

Has any one else investigated the relative efficiencies of the backup
processes? Can anyone suggest ways of increasing the efficiency of our
backup process? Any thoughts would be most welcome.

As an aside - does anyone know a way to estimate the amount of space
left on a tape after a vdump? Again any thoughts or ideas would be
great.

Thanks for the help.

Regards 
Marc


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Backup Efficiency
  2001-11-26 14:30 Backup Efficiency Marc Biggs
@ 2001-11-26 18:54 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  2001-11-27  9:48   ` Hans Schwengeler
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2001-11-26 18:54 UTC (permalink / raw)


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)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Backup Efficiency
  2001-11-26 18:54 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 2001-11-27  9:48   ` Hans Schwengeler
  2001-11-30 16:48     ` John McNulty
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Schwengeler @ 2001-11-27  9:48 UTC (permalink / raw)


Well, I use rdump to backup the files to a remote backup server.
Using a bigger blocksize (i.e 64 instead the default 10(?)) decreased
the time needed for a backup about threefold!

rdump -f venus:/dev/nrmt0h -0u -b 64 -d 62500 -s 80000 /
rdump -f venus:/dev/nrmt0h -0u -b 64 -d 62500 -s 80000 /usr


Yours, Hans.
-- 
===============================================================================
Hans Schwengeler                
Astronomical Institute		
University of Basel                   
Venusstrasse 7
CH-4102 Binningen               PHONE:    +41 61 20 55 422
Switzerland                     FAX:      +41 61 20 55 455
===============================================================================


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Backup Efficiency
  2001-11-27  9:48   ` Hans Schwengeler
@ 2001-11-30 16:48     ` John McNulty
  2001-12-03 10:08       ` Marc Biggs
  0 siblings, 1 reply; 5+ messages in thread
From: John McNulty @ 2001-11-30 16:48 UTC (permalink / raw)


Hans Schwengeler wrote:

> Well, I use rdump to backup the files to a remote backup server.
> Using a bigger blocksize (i.e 64 instead the default 10(?)) decreased
> the time needed for a backup about threefold!
> 
> rdump -f venus:/dev/nrmt0h -0u -b 64 -d 62500 -s 80000 /
> rdump -f venus:/dev/nrmt0h -0u -b 64 -d 62500 -s 80000 /usr

You're over simplifying the task you're trying to accomplish here.   Think 
about how many individual places your data has to go (pass through) before it 
arrives at its destination.   Like having lots of different size pots all 
lined up, pouring water from one to the next to the next.   Your data has to 
come direct from disk (because it won't all be cached) and into the read 
buffer in the rdump process, then out into the network driver buffers where 
it's collated or broken up into suitable sizes to go over the network you're 
using.   All manner of wierd bunching and splitting could take place after 
that depending what's in the way of the path to your remote system (bridges, 
routers, etc) and then there's network contention/congestion to factor into it 
all.  Then at the remote system there's its network driver buffers to fill 
before the data gets passed on buffered up to be written out to the tape, and 
the resource usage of the system at the time.  It might be getting hammered 
because of some other task.

The chances of you getting your data to consistantly stream in a predictable 
manner over a link like that are pretty remote.

If you want tight control over the speed of your backups, you need a dedicated 
link from system to tape drive.

John




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Backup Efficiency
  2001-11-30 16:48     ` John McNulty
@ 2001-12-03 10:08       ` Marc Biggs
  0 siblings, 0 replies; 5+ messages in thread
From: Marc Biggs @ 2001-12-03 10:08 UTC (permalink / raw)


John McNulty wrote in message 

> The chances of you getting your data to consistantly stream in a predictable 
> manner over a link like that are pretty remote.
> 
> If you want tight control over the speed of your backups, you need a dedicated 
> link from system to tape drive.
> 

John's earlier posting gave me a useful insight into some of the
concepts I need to look into. Just to clarify my present situation - i
do indeed have a dedicated link from system to tape drive so the
networking problems should not come into it.

I am still looking for any information on how to speed up backups
using the vdump command so any hints or workarounds will be gratefully
accepted or any information that will increase my understanding of the
backup process.

For example, is there any way to measure how quickly you can read from
the source or write to the destination. Are there any methods for
speeding either of these up including any system tweaking???

Thanks in advance for any help you can give me.

Regards
Marc


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-12-03 10:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-26 14:30 Backup Efficiency Marc Biggs
2001-11-26 18:54 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2001-11-27  9:48   ` Hans Schwengeler
2001-11-30 16:48     ` John McNulty
2001-12-03 10:08       ` Marc Biggs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox