mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: gzip compression of vmlinux
  2002-10-21 23:41 gzip compression of vmlinux Amol Kumar Lad
@ 2002-10-21 14:43 ` Richard B. Johnson
  2002-10-21 14:51 ` Mark Robson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Richard B. Johnson @ 2002-10-21 14:43 UTC (permalink / raw)
  To: Amol Kumar Lad; +Cc: linux-kernel

On 21 Oct 2002, Amol Kumar Lad wrote:

> Hi,
>  Currently we use gzip to compress vmlinux ( and finally form bzImage).
> I am planning to replace it with bzip2 . Should I go ahead with it ?
> Will it find its place in the latest kernel ? 
> We save some 35k of compressed bzImage using bzip2
> 
> Please cc me
> 
> Thanks
> Amol

Is it allowed? I think Phil Katz had some claim to this since
he created the compression method by combining several published
algorithms. Don't hit me with fire, I was involved in the PK/ARC
Lawsuit. I am distinctly aware of his work.

The RedHat bzip2 Web Page seems to say that it's all "Free Software".
I suppose, upon the death of an author, everything's up for grabs.

At the very least, if you use this method, I suggest you name the
output file pkImage.


Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
The US military has given us many words, FUBAR, SNAFU, now ENRON.
Yes, top management were graduates of West Point and Annapolis.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gzip compression of vmlinux
  2002-10-21 23:41 gzip compression of vmlinux Amol Kumar Lad
  2002-10-21 14:43 ` Richard B. Johnson
@ 2002-10-21 14:51 ` Mark Robson
  2002-10-21 15:19 ` jbradford
  2002-10-24  7:58 ` Eric W. Biederman
  3 siblings, 0 replies; 5+ messages in thread
From: Mark Robson @ 2002-10-21 14:51 UTC (permalink / raw)
  To: Amol Kumar Lad; +Cc: linux-kernel

On Tuesday 22 October 2002 12:41 am, Amol Kumar Lad wrote:
> Hi,
>  Currently we use gzip to compress vmlinux ( and finally form bzImage).
> I am planning to replace it with bzip2 . Should I go ahead with it ?
> Will it find its place in the latest kernel ?
> We save some 35k of compressed bzImage using bzip2

If you replace the gzip kernel compression with bzip2, will it be easy to 
also bzip2 initrd images?

If so, does the kernel then no longer need a gzip decompression routine? Does 
the current implementation use the same gunzipper for the kernel and initrd 
(possibly not? Is the kernel gunzipper real mode?)

If so then this is a good feature for some embedded systems which can trade a 
few seconds of boot time for smaller images, particularly if it removes the 
routine from the kernel.

How much slower is bunzip2?

On my system, bunzip2 decompresses a kernel image nearly 10x slower than gzip

[mark@athlon linux-2.4.19]$ time gunzip blah
0.08user 0.01system 0:00.09elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k

[mark@athlon linux-2.4.19]$ time bunzip2 blah.bz2 
0.83user 0.04system 0:00.87elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k

and it only gets 6% smaller

but this is a highly unscientific test.

Mark

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gzip compression of vmlinux
  2002-10-21 23:41 gzip compression of vmlinux Amol Kumar Lad
  2002-10-21 14:43 ` Richard B. Johnson
  2002-10-21 14:51 ` Mark Robson
@ 2002-10-21 15:19 ` jbradford
  2002-10-24  7:58 ` Eric W. Biederman
  3 siblings, 0 replies; 5+ messages in thread
From: jbradford @ 2002-10-21 15:19 UTC (permalink / raw)
  To: Amol Kumar Lad; +Cc: linux-kernel

>  Currently we use gzip to compress vmlinux ( and finally form bzImage).
> I am planning to replace it with bzip2 . Should I go ahead with it ?
> Will it find its place in the latest kernel ? 
> We save some 35k of compressed bzImage using bzip2

There was a discussion about using bzip2 on this list a few months
ago:

http://www.uwsg.iu.edu/hypermail/linux/kernel/0207.1/0467.html

John.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* gzip compression of vmlinux
@ 2002-10-21 23:41 Amol Kumar Lad
  2002-10-21 14:43 ` Richard B. Johnson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Amol Kumar Lad @ 2002-10-21 23:41 UTC (permalink / raw)
  To: linux-kernel

Hi,
 Currently we use gzip to compress vmlinux ( and finally form bzImage).
I am planning to replace it with bzip2 . Should I go ahead with it ?
Will it find its place in the latest kernel ? 
We save some 35k of compressed bzImage using bzip2

Please cc me

Thanks
Amol





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gzip compression of vmlinux
  2002-10-21 23:41 gzip compression of vmlinux Amol Kumar Lad
                   ` (2 preceding siblings ...)
  2002-10-21 15:19 ` jbradford
@ 2002-10-24  7:58 ` Eric W. Biederman
  3 siblings, 0 replies; 5+ messages in thread
From: Eric W. Biederman @ 2002-10-24  7:58 UTC (permalink / raw)
  To: Amol Kumar Lad; +Cc: linux-kernel

Amol Kumar Lad <amolk@ishoni.com> writes:

> Hi,
>  Currently we use gzip to compress vmlinux ( and finally form bzImage).
> I am planning to replace it with bzip2 . Should I go ahead with it ?
> Will it find its place in the latest kernel ? 
> We save some 35k of compressed bzImage using bzip2

You might also want to take a look at upx.  It's compressor
is roughly of the same quality as gzip, but it's decompresser
is only a couple of hundred bytes.  I don't know which will
buy you more in practice.  I smaller decompresser, or a larger
decompresser with that compresses a little smaller.  Or possibly
you just want to pass -9 to gzip?

Eric


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-24  7:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-21 23:41 gzip compression of vmlinux Amol Kumar Lad
2002-10-21 14:43 ` Richard B. Johnson
2002-10-21 14:51 ` Mark Robson
2002-10-21 15:19 ` jbradford
2002-10-24  7:58 ` Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome