Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 17cb1077c1dcc6211d88741b8885ac22 > files > 17

taper-7.0-0.pre1.19.mga7.armv7hl.rpm

Compression Methods
-------------------

There are several compression methods available. 

External compression - type 1
  This method calls an external compression program to do the compression.
  The default is set to gzip but can be changed in the defaults.h
  file at compile time. The compression program is expected to read 
  the file from standard input and write the compressed output to
  standard output. If your compression program doesn't do this, you
  will have to modify the taper sources. This is a VERY slow method.

Fast internal compression - type 2
  This is a very good compression method - it is very fast and reasonably
  good at compression. Because of this, it is the default compression
  method. The only problem is that is uses an extra 2MB of memory
  which can degrade system performance on heavily loaded machines.

Internal gzip - type 3
  This method is basically the gzip compression method, however,
  the source has been hacked around to accommodate taper. The
  advantage of using this over the external compression method
  is that it is a bit quicker because it is internal, however,
  it is still a very slow compression method. The other disadvantage
  is that although the compression method is that of gzip, it
  doesn't produce compressed files that can be read by gzip. You
  need taper to read the archives.

In summary then:

  Memory use, type 2 > type 3 > type 1.
  Speed, type 2 > type 3 > type 1.
  Compression ratio, type 3 > type 1 > type 2

You should use compression 2 unless you have a very heavily loaded
system or less than 4MB of RAM.

If taper is still too memory hungry, try the following:

  Turn off triple buffering

  In defaults.h, reduce the size of DEFAULT_TR_SIZE. This is the number
	of bytes that data is transferred to/from the tape device
	in a single read/write.

  Don't use use compress-type set at 2.
    
  Change the size of COMPRESS2_BUFFER_SIZE to 1 in the defaults.h
    file (and don't use compress-type 2)
    
  In defaults.h, add the following line:

            #define MAXNAMLEN 125

This assumes that the maximum filename length you have is 125 characters.
If this is not the case, change it to match your system.




$Id: COMPRESSION,v 1.1 1997/03/23 06:05:05 yusuf Exp $