All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] bzip2 very slow
@ 2005-04-08  3:34 Aras Vaichas
  0 siblings, 0 replies; only message in thread
From: Aras Vaichas @ 2005-04-08  3:34 UTC (permalink / raw)
  To: u-boot

I recently started using bzip2 to compress my kernel, I made the necessary
changes in u-boot-1.1.2 to include bzip2 and increase the malloc size to 4MB.
The decompression for the bzip2 image is over 10 times slower compared to the
gzip image.

version: U-Boot-1.1.2 - 5338372 Feb 25 10:47 u-boot-1.1.2.tar.bz2
cpu: at91rm9200

from at91rm9200dk.h:
#define CONFIG_BZIP2     1
#define  CFG_MALLOC_LEN  (0x410000)

Here is a comparison of gzip vs bzip2 on the same 2.6.x kernel:

== gzip ==
$ gzip -v9 linux.bin
$ /usr/local/uboot/mkimage -A arm -O linux -C gzip -a 0x20008000 -e 0x20008000
-d linux.bin.gz uImage-2.6-dk

compressed file size: 877kB
decompression time:  about 3 seconds

== bzip2 ==
$ bzip2 --best linux.bin
$ /usr/local/uboot/mkimage -A arm -O linux -C bzip2 -a 0x20008000 -e 0x20008000
-d linux.bin.bz2 uImage-2.6-dk

compressed file size: 813kB
decompression time: about 30 seconds


bzip2 is taking over 10 times longer to decompress for a 64K smaller file size.
Is this normal?

regards,

Aras Vaichas

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-08  3:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-08  3:34 [U-Boot-Users] bzip2 very slow Aras Vaichas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.