[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120418172349.GA6165@x4>
Date: Wed, 18 Apr 2012 19:23:49 +0200
From: Markus Trippelsdorf <markus@...ppelsdorf.de>
To: Lasse Collin <lasse.collin@...aani.org>
Cc: "H. Peter Anvin" <hpa@...or.com>,
Randy Dunlap <rdunlap@...otime.net>,
qasdfgtyuiop <qasdfgtyuiop@...il.com>,
linux-kernel <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>, alain@...ff.lu,
albin.tonnerre@...e-electrons.com
Subject: Re: [PATCH] kconfig: update compression algorithm info
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists