LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-28-2011, 03:41 PM   #1
smag
LQ Newbie
 
Registered: May 2011
Location: Linux land
Distribution: Arch linux
Posts: 26

Rep: Reputation: 11
Question 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?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-29-2011, 08:42 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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/
 
2 members found this post helpful.
Old 08-29-2011, 09:17 AM   #3
smag
LQ Newbie
 
Registered: May 2011
Location: Linux land
Distribution: Arch linux
Posts: 26

Original Poster
Rep: Reputation: 11
So, which one should I choice? And why the kernel image dimension is so important?
 
Old 08-29-2011, 10:03 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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.
 
Old 08-29-2011, 10:07 AM   #5
smag
LQ Newbie
 
Registered: May 2011
Location: Linux land
Distribution: Arch linux
Posts: 26

Original Poster
Rep: Reputation: 11
Thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Quiz: Why did gzip, bzip2 and lzma fail on this piece of data? What is it? irmin General 7 07-20-2010 02:06 PM
Determining the compression ratio when using -9 with gzip kaplan71 Linux - Software 2 04-08-2010 03:45 PM
Problem with installpkg - external compression utility gzip missing samkz Slackware 5 04-20-2009 12:48 AM
Is gzip -c9 giving the highest compression? Thaidog Linux - General 2 04-23-2007 05:15 AM
gzip , general compression question ?? glenn69 Linux - Newbie 5 10-12-2004 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration