Technical article 113163

Which is the best compression tool to use?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7UnixWare 7.0.0UnixWare 7.0.1UnixWare 7.1.0UnixWare 7.1.1UnixWare 7.1.3UnixWare 7.1.4Open UNIX 8

Written · Last revised

Problem

Which compression tool, supplied by SCO or available from Skunkware, is the best one to use to compress my files?

Cause

Different compression algorithms used by UnixWare's or OpenServer's own "compress" and the GNU "gzip" or "bzip2" compression tools, available from:

http://www.sco.com/skunkware

will differ depending on the type of file being compressed, which will result in different compressed file sizes and the amount of CPU resource required to obtain that compression.

Solution

In order to determine which is the better tool to use for your files, you should TEST the files being compressed with the following:

*     timex compress -v <file> ;using the OS's standard "compress"
*     timex gzip -v <file>     ;using "gzip" with default compression
*     timex gzip -1 -v <file>  ;using "gzip" with quickest compression
*     timex gzip -9 -v <file>  ;using "gzip" with best compression
*     timex zip <file>.zip <file> ; using InfoZip from Skunkware
timex bzip2 <file>       ;using "bzip2" from Skunkware

timex compress -H <file> ;using the OpenServer's "compress -H"

timex pack <file>        ;using the OS's standard "pack"

Please Note "*" signifies that a file generated with this utility is also compatible with WinZip version 8.

In addition, tar files can also be read by WinZip.

"bzip" is used by UnixWare's Emergency Recovery in /usr/lib/drf. Examples for use are included in /usr/lib/drf/cpioout and /usr/lib/drf/cut_flop.

If you wish to use the "-H" flag from OpenServer's "compress" on UnixWare7, then this is available on UnixWare7 from :

/OpenServer/bin/compress

gunzip will also read files compressed using "compress" with the "-H" flag.

SCO OpenServer also supports DTFS, a file system which performs
automatic compression of data as it is being written to disk. Average
compression ratios for different file types are listed in the
OpenServer System Administration Guide in Chapter 2,
"Administering Filesystems".  You can view this list at
http://osr5doc.xinuos.com:457/OSAdminG/fsC.compress.html.
NOTE:     lzma-4.32.7 for OpenServer 6.0.0 has been posted at:
ftp://ftp2.sco.com/pub/skunkware/osr6/vols/lzma-4.32.7Sb-VOLS.cpio

SUMMARY: The lzma package provides utilities implementing LZMA compression from 7zip. It includes lzmash, a compression tool with an interface similar to that of gzip and bzip2.

A README describing how to install this Skunkware release is available at:

ftp://ftp2.sco.com/pub/skunkware/osr6/vols/lzma-4.32.7Sb-README

7zip is free for Windows PC's and can read cpio, tz and tar format files along with traditional 'zip'.

http://www.7-zip.org/download.html

See also

bzip2; compress; gzip; tar; timex; pack; zcat

From the Xinuos technical article database, record 113163. Reproduced with permission. The original is at www.sco.com/ta/113163, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.