Messages in this thread | | | From | Mark Robson <> | Subject | Re: gzip compression of vmlinux | Date | Mon, 21 Oct 2002 15:51:07 +0100 |
| |
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |