1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
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 $
|