Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755993AbdCWPHx (ORCPT ); Thu, 23 Mar 2017 11:07:53 -0400 Received: from mail-ua0-f194.google.com ([209.85.217.194]:35847 "EHLO mail-ua0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755702AbdCWPHu (ORCPT ); Thu, 23 Mar 2017 11:07:50 -0400 MIME-Version: 1.0 In-Reply-To: <1490273467-97948-1-git-send-email-chao.p.peng@linux.intel.com> References: <1490273467-97948-1-git-send-email-chao.p.peng@linux.intel.com> From: Yinghai Lu Date: Thu, 23 Mar 2017 08:07:48 -0700 X-Google-Sender-Auth: 0NHYdjHF4o2KtPX7_ZT67q71nCQ Message-ID: Subject: Re: [PATCH] x86/boot: Support uncompressed kernel To: Chao Peng Cc: "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 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 836 Lines: 20 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? Thanks Yinghai