Re: [PATCH] kconfig: update compression algorithm info

From: Markus Trippelsdorf
Date: Wed Apr 18 2012 - 13:24:35 EST


On 2012.04.18 at 20:09 +0300, Lasse Collin wrote:
> On 2012-04-18 H. Peter Anvin wrote:
> > On 04/18/2012 09:40 AM, Lasse Collin wrote:
> > > - LZO should give the fastest boot from a hard disk (desktop
> > > systems where file size doesn't matter much).
> >
> > That really depends on the speed of your disk vs CPU.
>
> Yes. Maybe it isn't good to give so clear recommendation for LZO over
> gzip here.
>
> I think it is still safe to say that gzip and LZO are better than
> bzip2, XZ, or LZMA for compressing a kernel that will be loaded from a
> normal hard disk. It would be unusual if reading the disk was so slow
> that e.g. XZ would make the booting faster than gzip.

When btrfs will finally implement LZ4 compression this would be the obvious
candidate for the fastest boot algo, because its decompression speed is
amazing.

For example here is a comparison with LZO on boot/compressed/vmlinux.bin:

memcpy = 75 ms (10251 MB/s), 13436968->13436968
Codec version args Size (Ratio) C.Speed D.Speed
LZ4 r59 12 4952064 (x 2.71) C: 518 MB/s D:1472 MB/s
LZO 2.05 1x1 4825088 (x 2.78) C: 472 MB/s D: 504 MB/s

--
Markus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/