Sponsored Content
Top Forums Shell Programming and Scripting Show Percentage Compression in GZIP Post 302833159 by Corona688 on Tuesday 16th of July 2013 11:24:01 AM
Old 07-16-2013
There is of course some overhead but very little since, as you noted, it's smart enough to switch algorithms when faced with a file that compresses badly. It's much better than some older compressors which, worst case, could double the size of a file.

I have no idea where the 175% comes from, it makes no apparent sense either way you consider it.
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

compression utilities

I've noticed bzip2 gives a little bit better compression than gzip. So...I'm curious...what's gives the best compression out of all the compression utilities? Thanks! (6 Replies)
Discussion started by: jalburger
6 Replies

2. UNIX for Advanced & Expert Users

Move with compression

How can I move a file and compress it at the same time? (8 Replies)
Discussion started by: truma1
8 Replies

3. UNIX for Advanced & Expert Users

Predictor compression

Hi everybody, Does anybody know,whether linux-2.4.20-8 supports predictor1 compression in PPP protocol support,as i was able to see there were only two compression techniques that r being supported i.e bsd and deflate compression from "make menuconfig" under network device... (0 Replies)
Discussion started by: sriram.ec
0 Replies

4. UNIX for Dummies Questions & Answers

.z file compression

Hello, I have a .z file which i understand to be UNIX. I'm on PC (no UNIX boxes) and have tried many different unzipping programs to extract this .z file, but only PicoZip has allowed me to view what is inside (telling me, i think, that it's not corrupt), but i have not been able to extract... (3 Replies)
Discussion started by: Gonecat
3 Replies

5. UNIX for Dummies Questions & Answers

Un-compression types...

Hi Folks, As I am familiar wih both types compresion forms: gun-zip and .rpm. My questions is how do I uncompress gunz.zip type? As the .rpm I can double click and it will extract...Can someone shed some light on this and thank you... M (2 Replies)
Discussion started by: Mombo_Z
2 Replies

6. UNIX for Advanced & Expert Users

gzip vs pipe gzip: produce different file size

Hi All, I have a random test file: test.txt, size: 146 $ ll test.txt $ 146 test.txt Take 1: $ cat test.txt | gzip > test.txt.gz $ ll test.txt.gz $ 124 test.txt.gz Take 2: $ gzip test.txt $ ll test.txt.gz $ 133 test.txt.gz As you can see, gzipping a file and piping into gzip... (1 Reply)
Discussion started by: hanfresco
1 Replies

7. UNIX and Linux Applications

Compression (gzip) for image analysis

Hi Everyone, I am a Ph.D student working on some image processing tasks and I have run into an interesting problem that I thought someone on here might have an idea about. This paper discusses a method to compare two images based upon the amount they can be compressed. Sorry, since this is my... (3 Replies)
Discussion started by: rudigarude
3 Replies

8. Shell Programming and Scripting

Adding gzip compression to a connection using nc

Hello everyone, As the title suggests, I am attempting to test adding gzip compression to a connection to an application I am testing. Currently I have the application set up with httptunnel, which forwards the connection to the remote host. I would like to use a script to intercept the... (5 Replies)
Discussion started by: haggismn
5 Replies

9. Linux

Best Compression technique ?

Hi all, I am working on a sample backup code, where i read the files per 7200 bytes and send it to server. Before sending to server, i compress each 7200 bytes using zlib compression algorithm using dictionary max length of 1.5 MB . I find zlib is slow. Can anyone recommend me a... (3 Replies)
Discussion started by: selvarajvss
3 Replies

10. UNIX for Advanced & Expert Users

Tar gzip compression rate

How good is the compression rate of gzip when you use tar with the gzip option? I am pretty amazed that a 1 GB file was reduced to 1019K. This is what I did. tar -cvf tar_test.tar.gz -T /list_of_files ls -hl -rw-r-----. 1 owner group 19 Jul 23 16:00 list_of_files -rw-r-----. 1 owner group... (7 Replies)
Discussion started by: cokedude
7 Replies
lamssi_coll(7)						       LAM SSI COLL OVERVIEW						    lamssi_coll(7)

NAME
lamssi_collectives - overview of LAM's MPI collective SSI modules DESCRIPTION
The "kind" for collectives SSI modules is "coll". Specifically, the string "coll" (without the quotes) is the prefix that should be used with the mpirun command line with the -ssi switch. For example: mpirun -ssi coll_base_crossover 4 C my_mpi_program LAM currently has three coll modules: lam_basic A full implementation of MPI collectives on intracommunicators. The algorithms are the same as were in the LAM 6.5 series. Collec- tives on intercommunicators are undefined, and will result in run-time errors. impi Collective functions for IMPI communicators. These are mostly un-implemented; only the basics exist: MPI_BARRIER and MPI_REDUCE. shmem Shared memory collectives. smp SMP-aware collectives (based on the MagPIe algorithms). The following algorithms provide SMP-aware performance on multiprocessors: MPI_ALLREDUCE, MPI_ALLTOALL, MPI_ALLTOALLV, MPI_BARRIER, MPI_BCAST, MPI_GATHER, MPI_GATHERV, MPI_REDUCE, MPI_SCATTER, and MPI_SCATTERV. Note that the reduction algorithms must be specifically enabled by marking the operations as associative before they will be used. All other MPI collectives will fall back to their lam_basic equivalents. More collective modules are likely to be implemented in the future. COLL MODULE PARAMETERS
In the discussion below, the parameters are discussed in terms of kind and value. Unlike other SSI module kinds, since coll modules are selected on a per-communicator basis, the kind and value may be specified as attributes to a parent communicator. Need to write much more here. Selecting a coll module coll modules are selected on a per-communicator basis. They are selected when the communicator is created, and remain the active coll mod- ule for the life of that communicator. For example, different coll modules may be assigned to MPI_COMM_WORLD and MPI_COMM_SELF. In most cases LAM/MPI will select the best coll module automatically. For example, when a communicator spans multiple nodes and at least one node has multiple MPI processes, the smp module will automatically be selected. However, the LAM_MPI_SSI_COLL keyval can be used to set an attribute on a communicator that is used to create a new communicator. The attribute should have the value of the string name of the coll module to use. If that module cannot be used, an MPI exception will occur. This attribute is only examined on the parent communicator when a new communicator is created. coll SSI Parameters The coll modules accept several parameters: coll_associative Because of specific wording in the MPI standard, LAM/MPI can effectively not assume that any reduction operator is associative (at least, not without additional overhead). Hence, LAM/MPI relies on the user to indicate that certain operations are associative. If the user sets the coll_associative SSI parameter to 1, LAM/MPI may assume that the reduction operator is assocative, and may be able to optimize the overall reduction operation. If it is 0 or undefined, LAM/MPI will assume that the reduction operation is not associa- tive, and will use strict linear ordering of reduction operations (regardless of data locality). This attribute is checked every time a reduction operator is invoked. The User's Guide contains more information on this topic. coll_crossover This parameter determines the maximum number of processes in a communicator that will use linear algorithms. This SSI parameter is only checked during MPI_INIT. coll_reduce_crossover During reduction operations, it makes sense to use the number of bytes to be transferred rather than the number of processes as a met- ric whether to use linear or logrithmic algorithms. This parameter indicates the maxmimum number of bytes to be transferred by each process by a linear algorithm. This SSI parameter is only checked during MPI_INIT. Notes on the smp coll Module The smp coll module is based on the algorithms from the MagPIe project. It is not yet complete; there are still more algorithms that can be optmized for SMP-aware execution -- by the time that LAM/MPI was frozen in preparation for release, only some of the algorithms had been completed. It is expected that future versions of LAM/MPI will have more SMP-optimized algorithms. The User's Guide contains much more detail about the smp module. In particular, the coll_associative SSI parameter must be 1 for the SMP- aware reduction algorithms to be used. If it is 0 or undefined, the corresponding lam_basic algorithms will be used. The coll_associative attribute is checked at every invocation of the reduction algorithms. SEE ALSO
lamssi(7), mpirun(1), LAM User's Guide LAM 7.1.4 July, 2007 lamssi_coll(7)
All times are GMT -4. The time now is 09:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy