From: "Steven Noonan" <steven@uplinklabs.net>
To: "Bill Davidsen" <davidsen@tmr.com>
Cc: "Frans Meulenbroeks" <fransmeulenbroeks@gmail.com>,
"Rob Landley" <rob@landley.net>, "Willy Tarreau" <w@1wt.eu>,
"Alain Knaff" <alain@knaff.lu>,
torvalds@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] init: bzip2 or lzma -compressed kernels and initrds
Date: Mon, 15 Sep 2008 10:28:09 -0700 [thread overview]
Message-ID: <f488382f0809151028w4b5b8a2bs86025e9286cfffe7@mail.gmail.com> (raw)
In-Reply-To: <48CE97BA.1060901@tmr.com>
On Mon, Sep 15, 2008 at 10:13 AM, Bill Davidsen <davidsen@tmr.com> wrote:
> Frans Meulenbroeks wrote:
>>
>> 2008/9/15 Rob Landley <rob@landley.net>:
>>>
>>> On Sunday 07 September 2008 00:48:31 Willy Tarreau wrote:
>>>>
>>>> Hi Alain,
>>>>>
>>>>> +config KERNEL_LZMA
>>>>> + bool "LZMA"
>>>>> + help
>>>>> + The most recent compression algorithm.
>>>>> + Its ratio is best, decompression speed is between the other
>>>>> + 2. Compression is slowest.
>>>>> + The kernel size is about 33 per cent smaller with lzma,
>>>>> + in comparison to gzip.
>>>>
>>>> isn't memory usage in the same range as bzip2 ?
>>>
>>> Last I checked it was more. (I very vaguely recall somebody saying 16
>>> megs
>>> working space back when this was first submitted to busybox, but that was
>>> a
>>> few years ago...)
>>>
>>> A quick Google found a page that benchmarks them. Apparently it depends
>>> heavily on which compression option you use:
>>>
>>> http://tukaani.org/lzma/benchmarks
>>>
>>
>> [...]
>>
>> Apologies if I'm sidetracking the discussion, but I'd like to coin a
>> remark.
>>
>> For kernel/ramfsimage etc the best choice is the one that has the
>> fastest decompression (info on tukaani.org says gzip).
>> Rationale: as it uncompresses faster the system will boot faster.
>>
>> Of course this only holds if the background memory can hold that
>> image. For disk based systems, I assume this is not a problem at all,
>> but for embedded systems with all software in flash a higher
>> compression ration (e.g. lzma) can just make the difference between
>> fit and not fit (so in those cases lzma could just make your day).
>>
> Given the larger memory needed to decompress, it becomes a very interesting
> calculation in really small memory machines.
>
It all really depends on what you're prioritizing. If your priority is
speed and low RAM usage, you'd want to go with gzip. If your priority
is low disk usage (for instance, if you're a kernel developer with
dozens of kernels on /boot) and speed/RAM usage are less important,
LZMA is a good choice. It's just a matter of priority in non-embedded
machines. And in embedded machines, you just need to be -really-
careful about the RAM usage. LZMA is pretty flexible, though, so you
can customize the settings to get it to fit whatever memory profile
you need to.
next prev parent reply other threads:[~2008-09-15 17:28 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-06 21:19 Alain Knaff
2008-09-06 22:29 ` Leon Woestenberg
2008-09-06 22:59 ` Alain Knaff
2008-09-07 6:17 ` Rob Landley
2008-09-08 8:35 ` H. Peter Anvin
2008-09-08 13:14 ` Jörn Engel
2008-09-07 3:18 ` H. Peter Anvin
2008-09-07 4:35 ` Steven Noonan
2008-09-07 4:46 ` H. Peter Anvin
2008-09-07 7:40 ` Alain Knaff
2008-09-07 16:30 ` H. Peter Anvin
2008-09-07 7:39 ` Alain Knaff
2008-09-07 8:03 ` Yinghai Lu
2008-09-07 9:17 ` Alain Knaff
2008-09-07 5:48 ` Willy Tarreau
2008-09-07 8:59 ` Alain Knaff
2008-09-15 1:37 ` Rob Landley
2008-09-15 12:46 ` Frans Meulenbroeks
2008-09-15 17:13 ` Bill Davidsen
2008-09-15 17:28 ` Steven Noonan [this message]
2008-09-26 18:53 ` Leon Woestenberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f488382f0809151028w4b5b8a2bs86025e9286cfffe7@mail.gmail.com \
--to=steven@uplinklabs.net \
--cc=alain@knaff.lu \
--cc=davidsen@tmr.com \
--cc=fransmeulenbroeks@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rob@landley.net \
--cc=torvalds@linux-foundation.org \
--cc=w@1wt.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®