Received: by 10.192.165.148 with SMTP id m20csp2696503imm; Sun, 22 Apr 2018 12:59:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Z6XIBu6Qwdl2sewGWopRkvycdTJOJLT/x94gbM2CjfsEgPDkVr7l75SRjPqM5JcF7W9un X-Received: by 2002:a17:902:6909:: with SMTP id j9-v6mr18274915plk.313.1524427187562; Sun, 22 Apr 2018 12:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524427187; cv=none; d=google.com; s=arc-20160816; b=HMYWbk2ZlyWMPKX2PuT2Sae5Bb7qUUuDgp1Lmx8Iyz0uqCQdfWVKTh60nIyrnua2em DUwn+WXhs/2y5qmZgRTIew+24c4KUSqBkhB1A5k4TOXHA9r0V+CjiP9jtQavpzyDM/Tq JL2sBRHnOLq5BS0P4Peaq2Fsbf4dgbRgrISX6lSMmxMRetDRT5SQEssafEfgnCzfQ/cX FO0sKIdXUMHO1C/IAkxFssBcUix29/ATRCoeP6EqeacrKl8sV18F+XIsRYvtyoLOdKp6 wc75nSJDtAjCiGS8WuYRkGIMoyMbos027g9KDzUT+P4AGucXaNLY6hlj0SsVsTXOOozw gIjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=KdjR+pbcXe0vgyBnohwlOyS8I62B6EMe2ATC3wagEHo=; b=IfQa3FFCPfDFFtduco5EPWpXeiJ7yh4QTo3bSp8pkYnXLU2Wxgl1JGRL90n4aw2xj6 TaxNb4tLvZytZZf+E2PReJ4SUxUJP57sANwHx8yp9yk6CrocCrBBaBXixdLVrzGebgZl ZjVSsPqqyJoDZG54RGQQQDRznA5rOa6J/qJy+O9bBNyca4dEOslCVQNCSOyIQF/VDr+b Iqv312NnAZmbyFXsrvtjpX71UdSB77bWr0IuWiZ6eRS6O8/bkOuoe/1pYHufEOidAwG2 G90Karh7v1KJkpfddTMOIitM3goC7A0Te6qoPLdFzOcCMqTUPJAR9a62BVWdeaPCqm7Q o7Kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h90-v6si9728815plb.377.2018.04.22.12.58.57; Sun, 22 Apr 2018 12:59:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753497AbeDVTz4 (ORCPT + 99 others); Sun, 22 Apr 2018 15:55:56 -0400 Received: from mx3.molgen.mpg.de ([141.14.17.11]:45967 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753417AbeDVTzz (ORCPT ); Sun, 22 Apr 2018 15:55:55 -0400 Received: from [192.168.0.2] (ip5f5aeec0.dynamic.kabel-deutschland.de [95.90.238.192]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 83BC32012BA054; Sun, 22 Apr 2018 21:55:52 +0200 (CEST) Subject: =?UTF-8?Q?Re:_How_to_disable_Linux_kernel_self-extraction_=28KERNEL?= =?UTF-8?B?X0daSVAsIEtFUk5FTF9CWklQMiwg4oCmKT8=?= To: Pavel Machek Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Ingo Molnar References: <9468be0e-5eb9-246c-e60e-3d8019a42fd1@molgen.mpg.de> <20180422102033.GB26243@amd> From: Paul Menzel Message-ID: Date: Sun, 22 Apr 2018 21:55:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180422102033.GB26243@amd> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Pavel, Am 22.04.2018 um 12:20 schrieb Pavel Machek: > On Fri 2018-04-20 16:36:00, Paul Menzel wrote: >> I try to decrease boot time, and my system has an SSD and enough space, so >> loading 18 instead of 12 MB doesn’t make a difference, but the >> self-extraction is noticeable. So, I like to disable it. > > How long does GZIP extraction take on your hardware? It’s hard to measure – at least I didn’t find a way to do so –, but counting from the last GRUB message to the first message of Linux (with `quiet` removed from the the command line), it takes roughly *two* seconds. ``` $ ls -l /boot/vmlinuz-4.15.0-3-686-pae -rw-r--r-- 1 root root 3987200 Apr 19 12:13 /boot/vmlinuz-4.15.0-3-686-pae $ ls -lh /boot/vmlinuz-4.15.0-3-686-pae -rw-r--r-- 1 root root 3,9M Apr 19 12:13 /boot/vmlinuz-4.15.0-3-686-pae $ time scripts/extract-vmlinux vmlinuz-4.15.0-3-686-pae > bla.txt real 0m1,204s user 0m1,041s sys 0m0,245s ``` As another data point, my self-built (*bigger*) image with XZ used for compression. ``` $ ls -lh /boot/vmlinuz-4.16.0+ -rw-r--r-- 1 root root 6,1M Apr 14 10:48 /boot/vmlinuz-4.16.0+ $ time /usr/src/linux-headers-4.17.0-rc1+/scripts/extract-vmlinux vmlinuz-4.16.0+ > bla.txt real 0m2,190s user 0m1,792s sys 0m0,500s ``` So, it’s really noticeable if the rest of the system starts in less then five seconds to a login prompt, or you are trying to achieve to display the LUKS passphrase dialog more or less instantly. Kind regards, Paul