LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   What are the differences between the Gzip, Lzma, Xz and Lzop compression (https://www.linuxquestions.org/questions/linux-kernel-70/what-are-the-differences-between-the-gzip-lzma-xz-and-lzop-compression-899944/)

smag 08-28-2011 03:41 PM

What are the differences between the Gzip, Lzma, Xz and Lzop compression
 
In the Kernel configuration, under the General configuration, is possible to select the prefered kernel compression. But what's the difference between this options?

H_TeXMeX_H 08-29-2011 08:42 AM

It compresses the kernel image using a different algorithm.

gzip is the standard because it unzips very fast and provides decent compression.
lzma and xz provide maximum compression, not recommended if you have a slow computer.
lzop is supposedly faster than gzip...
http://www.linuxjournal.com/node/8051/print
http://aliver.wordpress.com/2010/06/...of-datagraphs/

smag 08-29-2011 09:17 AM

So, which one should I choice? And why the kernel image dimension is so important?

H_TeXMeX_H 08-29-2011 10:03 AM

When you boot, the kernel image is decompressed and loaded into RAM.

There is a balance between compression ratio and decompression speed. If you have a slow computer it's best to use gzip or lzop because they don't require much CPU time. If you have a fast computer you may want to use xz or lzma because your CPU is fast and can decompress it quickly.

In reality I doubt it makes much difference, except on slow machines, where you would always want to use gzip or lzop.

smag 08-29-2011 10:07 AM

Thanks for the help.


All times are GMT -5. The time now is 04:52 AM.