Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1609828

Re: [PATCH] x86/boot: Support uncompressed kernel

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: [PATCH] x86/boot: Support uncompressed kernel
Date Mon, 27 Mar 2017 15:30:01 +0200
Message-ID <tpCSB-hj-9@gated-at.bofh.it> (permalink)
References <toaF4-2Eh-13@gated-at.bofh.it> <tocxd-3SR-53@gated-at.bofh.it> <tod0e-4a5-21@gated-at.bofh.it> <toq77-5eW-3@gated-at.bofh.it> <tpxSW-4Xx-17@gated-at.bofh.it> <tpBtw-7vp-25@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=lI344EiaqMIeX9ZQlU0HYkbB0O/PR0GhNjiESydoNwU=; b=co2jMu/eEpPmvZFcHYbPT0PkdVjT51O+jyKbVZtkKAJKsRsZSzM1Q8YbjfCF9AmsD8 iFEM3NmQBiT6AwnJGer1GclI0YHIcdlyOQ48XyVX/wOkRc878K23CtZydi1v5WOD3rea +Gl3JwSFpl0fk14oboRjUEU2TFrPpzFvMRwuoQVWculwxLQAf571QiCX5goiCAYk3A7N iH5VFFtIfPL9LAir3L4cVtHGVgSSP4Xwiv7hyPKAUUqS5J8arP9vMKEJPdxvEeVNgiBK qTmgiLfO6MNBxpn4AQJJECENohOzlrUyreyt43RFyv3rlBkRD6E4srddENehZPbvuWO2 AQAg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=lI344EiaqMIeX9ZQlU0HYkbB0O/PR0GhNjiESydoNwU=; b=BalKqgOLIKAxjX699u8p4UAKENIALbWV6piDA05jhj295ez9NF4rqQX8EJfPTYoRIV EBuJbeY+TpeUVcFp4Rz7bl/MjPIlbbpku0Wo+wejbNvYJQN0vepiJofWvsM1CKp79T46 4Hp/C8HdKQOqREqrp6cGQqc7WLZHGxIrrLDrmeC/TwUMGlQoq8TxclsCAozQj/xCCckz NI2wUD0pl90ezO+0lj3H5RGVSK0NDqNlnau4CLrJc13UzxT6T09gHVK9ahDx0h//+7fY LEPxlR7Na/lVLR7mpMckrSBJBlFnkANOWqPJMupEFI/nPWYvWtvRv116tXtV+WxcBMHv 7b+w==
X-Gm-Message-State AFeK/H0UGqkn5t7tcs5RxdGV5/ZZyOVF64OwXdBiNb6GK3mPU5ndXZg4H5Jvn8oV+PvMk4yUKueqLkov9+UspQ==
X-Received by 10.202.206.23 with SMTP id e23mr1633812oig.113.1490621105284; Mon, 27 Mar 2017 06:25:05 -0700 (PDT)
MIME-Version 1.0
X-Google-Sender-Auth AbMUpa4p44yHNcdiHM8T0KL8L4Y
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 24
Organization linux.* mail to news gateway
X-Original-Cc Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Chao Peng <chao.p.peng@linux.intel.com>, Sergey Senozhatsky <sergey.senozhatsky@gmail.com>, Yinghai Lu <yinghai@kernel.org>, "H. Peter Anvin" <hpa@zytor.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, "the arch/x86 maintainers" <x86@kernel.org>, Kees Cook <keescook@chromium.org>, Baoquan He <bhe@redhat.com>, "H.J. Lu" <hjl.tools@gmail.com>, Paul Bolle <pebolle@tiscali.nl>, Masahiro Yamada <yamada.masahiro@socionext.com>, Borislav Petkov <bp@suse.de>, Andrew Morton <akpm@linux-foundation.org>, Petr Mladek <pmladek@suse.com>, "David S. Miller" <davem@davemloft.net>, "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>, Andy Lutomirski <luto@kernel.org>, Thomas Garnier <thgarnie@google.com>, Nicolas Pitre <nicolas.pitre@linaro.org>, Tejun Heo <tj@kernel.org>, Daniel Mack <daniel@zonque.org>, Helge Deller <deller@gmx.de>, Rik van Riel <riel@redhat.com>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, linux-kbuild <linux-kbuild@vger.kernel.org>
X-Original-Date Mon, 27 Mar 2017 15:25:04 +0200
X-Original-Message-ID <CAK8P3a1nf7zOHZCK+ZhfhVo9R8Onz4Mv5T2eTg7i4nwuL=zo7w@mail.gmail.com>
X-Original-References <1490273467-97948-1-git-send-email-chao.p.peng@linux.intel.com> <CAE9FiQVmazd8Z=_DT2vrcy7aOpgtFwxAF1Cw6PvzFnE+MckSQg@mail.gmail.com> <20170323153117.GA6356@tigerII.localdomain> <1490333740.2925.7.camel@linux.intel.com> <20170327075817.bb7wda62fcuvfa4b@linutronix.de> <2e97b35f-bb9e-66e4-736d-66313626354e@suse.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1609828

Show key headers only | View raw


On Mon, Mar 27, 2017 at 1:47 PM, Michal Marek <mmarek@suse.com> wrote:
> Dne 27.3.2017 v 09:58 Sebastian Andrzej Siewior napsal(a):
>> On 2017-03-24 13:35:40 [+0800], Chao Peng wrote:
>>>
>>>>>>     kernel               kernel size    time in decompress_kernel
>>>>>>     compressed (gzip)    3.3M           53ms
>>>>>>     uncompressed         14M            3ms
>>>>>
>>> Exactly, LZ4 is the fastest. It takes 16ms to complete the
>>> decompression. Still sounds a little longer when compared to
>>> uncompressed kernel.
>>
>> Are we seriously talking here about one-time improvement of 13ms
>> boot time?
>
> If the use case is launching new VM instances continuously, then
> compressing the kernel image is about as useful as compressing /bin/bash.

I guess the next step would be to use CONFIG_XIP_KERNEL on x86,
which requires an uncompressed kernel but has the additional advantage
of sharing the read-only sections of the kernel image across virtual
machines, resulting in better RAM and cache usage.

        Arnd

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] x86/boot: Support uncompressed kernel Chao Peng <chao.p.peng@linux.intel.com> - 2017-03-23 14:10 +0100
  Re: [PATCH] x86/boot: Support uncompressed kernel Yinghai Lu <yinghai@kernel.org> - 2017-03-23 16:10 +0100
    Re: [PATCH] x86/boot: Support uncompressed kernel Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2017-03-23 16:40 +0100
      Re: [PATCH] x86/boot: Support uncompressed kernel Chao Peng <chao.p.peng@linux.intel.com> - 2017-03-24 06:40 +0100
        Re: [PATCH] x86/boot: Support uncompressed kernel Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2017-03-27 10:10 +0200
          Re: [PATCH] x86/boot: Support uncompressed kernel Chao Peng <chao.p.peng@linux.intel.com> - 2017-03-27 11:30 +0200
          Re: [PATCH] x86/boot: Support uncompressed kernel Michal Marek <mmarek@suse.com> - 2017-03-27 14:00 +0200
            Re: [PATCH] x86/boot: Support uncompressed kernel Arnd Bergmann <arnd@arndb.de> - 2017-03-27 15:30 +0200
              Re: [PATCH] x86/boot: Support uncompressed kernel Chao Peng <chao.p.peng@linux.intel.com> - 2017-03-28 14:10 +0200
                Re: [PATCH] x86/boot: Support uncompressed kernel "H. Peter Anvin" <hpa@zytor.com> - 2017-03-29 01:00 +0200
                Re: [PATCH] x86/boot: Support uncompressed kernel Andy Lutomirski <luto@amacapital.net> - 2017-03-29 01:00 +0200
  Re: [PATCH] x86/boot: Support uncompressed kernel Michal Marek <mmarek@suse.com> - 2017-03-24 09:30 +0100

csiph-web