Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965324AbdCWPcf (ORCPT ); Thu, 23 Mar 2017 11:32:35 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35977 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751619AbdCWPcc (ORCPT ); Thu, 23 Mar 2017 11:32:32 -0400 Date: Fri, 24 Mar 2017 00:31:17 +0900 From: Sergey Senozhatsky To: Yinghai Lu Cc: Chao Peng , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , the arch/x86 maintainers , Michal Marek , Kees Cook , Baoquan He , "H.J. Lu" , Paul Bolle , Masahiro Yamada , Borislav Petkov , Andrew Morton , Arnd Bergmann , Petr Mladek , "David S. Miller" , "Paul E. McKenney" , Andy Lutomirski , Thomas Garnier , Nicolas Pitre , Tejun Heo , Daniel Mack , Sebastian Andrzej Siewior , Sergey Senozhatsky , Helge Deller , Rik van Riel , Linux Kernel Mailing List , linux-kbuild Subject: Re: [PATCH] x86/boot: Support uncompressed kernel Message-ID: <20170323153117.GA6356@tigerII.localdomain> References: <1490273467-97948-1-git-send-email-chao.p.peng@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1073 Lines: 23 On (03/23/17 08:07), Yinghai Lu wrote: > On Thu, Mar 23, 2017 at 5:51 AM, Chao Peng wrote: > > Compressed kernel has its own drawback: uncompressing takes time. Even > > though the time is short enough to ignore for most cases but for cases that > > time is critical this is still a big number. In our on-going optimization > > for kernel boot time, the measured overall kernel boot time is ~90ms while > > the uncompressing takes ~50ms with gzip. > > > > The patch adds a 'CONFIG_KERNEL_RAW' configure choice so the built binary > > can have no uncompressing at all. The experiment shows: > > > > kernel kernel size time in decompress_kernel > > compressed (gzip) 3.3M 53ms > > uncompressed 14M 3ms > > How about the time difference for bootloader to read kernel from > flash/disk/network to ram? there are also faster de-compressors than gzip out there. LZ4, for instance. LZ4, as far as I remember, can be quite fast, like ~10 times faster than gzip. have you tested it? -ss