From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cF43ImeVgWLzVwAAbAwnHQ (envelope-from ) for ; Mon, 16 May 2022 02:05:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2OIsImeVgWL6OQAA9RJhRA (envelope-from ) for ; Mon, 16 May 2022 02:05:59 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 384D0FB44 for ; Mon, 16 May 2022 02:05:59 +0200 (CEST) Received: from localhost ([::1]:58718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqOFK-00056m-BY for larch@yhetil.org; Sun, 15 May 2022 20:05:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqODt-00056W-RJ for help-guix@gnu.org; Sun, 15 May 2022 20:04:30 -0400 Received: from mx1.riseup.net ([198.252.153.129]:56500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqODr-0005qG-S6 for help-guix@gnu.org; Sun, 15 May 2022 20:04:29 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4L1fcn4bQJzDr9p; Sun, 15 May 2022 17:04:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1652659465; bh=JRbM5Ed+l3aHkaho2zXNsF8HW0TvQMu3VhUNeB8v1N4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nQFj3AdWQzulTUVx9jGlzUbTvCecRQhi2crJJJC7YuQEtFC3dVoi7zH/gq1Na3QsE YYVVWjXRbdJte6B4fWZWysRbyeiNRn0wpxAO/NzF2Qy4on4ts1QtxJtclDbvqs/hqc t0WEgV2yKrDWdZhramTg7epgnJ7l13tFcSmyLfQQ= X-Riseup-User-ID: B3DB402B246E9F37F311290A83A6A4B9F3B26C27C83BE778F305A61414F5CB8F Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4L1fcm1Vtsz1xqV; Sun, 15 May 2022 17:04:24 -0700 (PDT) Date: Mon, 16 May 2022 02:04:21 +0200 From: raingloom To: Katherine Cox-Buday Cc: Guix Help Subject: Re: Why does setting a language in Grub take 1.5 minutes? Message-ID: <20220516020421.0fbfad9c@riseup.net> In-Reply-To: <87ee0u2y66.fsf@gmail.com> References: <87ee0u2y66.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URI_NOVOWEL=0.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652659559; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DkzEYI9Q6X2RRaXI/wEkEO35NZA0GEovZWtWuX8Y37c=; b=VEsdza7Zht3kcRnTZmSEhnNCVqgonKUzL3L9kG8Q/m8Z2WWi5Jo2MkBeCiLUlZ1TtGl03i vy6DmWuxPiXcBD5VGVK0COIIRiKq6XGmTb9w1AttsBm9JshLbQodHBoZL75DnfYx65ueVK WmetzmE/p1zmXjINxsffW3rhVLmq/HmxwoCezhDuHXiWWT8XYrkdI4EYwhPmre+jH0D4Nw eHTbIH13f2oZMGXtnd3Xna8NOuWvcOim0mB6gJy6sG8ZT2hUPOYeQZp2kUd3tkDWZ1oSVh u8UNiZAt9wr7AWSpt+cqp7iy67EYLN2MtE9XquZxLBD3/rIwGxpZkmuST6CfWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652659559; a=rsa-sha256; cv=none; b=jHSEXl7BToc5uXoqckRxJVOc8O8jNBq0EbrTF4anunxCdCSWffoB0lAy+2IOuhKW2gsY44 Vg/hyzSxuhkl+ic6SNUdcSAgKFNaDPrT6H0PpYlJISDKUoiyYoG07RD/66VOqdYK7Zp80U T3TxXigwjD5vKONPofm+g35ds+8i0uE3Y9UObPOj0FNIEcNPg4spLkg4JO8YFBTs4Lq0tD QuCrhm9u7st4FqTcO9AMNwpOBzOM5RIoXONhMFSgAIqktBSI02yh6C/8WFG24RhvM/2p7I HBRSxPS6nReuUtF3IlbXvQxh+TVI5jG2rqOms7QBcGSuTP/gTOrhqfar2uSbfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=nQFj3AdW; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=nQFj3AdW; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 384D0FB44 X-Spam-Score: -7.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: t2bG1UcQxwai On Sun, 15 May 2022 18:06:41 -0500 Katherine Cox-Buday wrote: > At some point, after a long time with no problems, my system began > taking an unreasonably long time to boot. I only reboot my system > ~1/week for updates, so I never took the time to debug the problem, > and therefore, I couldn't really connect the issue with any changes > that either I or Guix had made. >=20 > I'm now trying to debug a wake from hibernate issue, and this > involves a lot of rebooting, so I had to figure this out. I have, and > I'm unsure why what I found is causing issues, and whether it's a > Guix bug, or something wrong with my setup. >=20 > Here's my partition layout: >=20 > #+begin_example > $ lsblk > NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS > nvme0n1 259:2 0 931.5G 0 disk > =E2=94=9C=E2=94=80nvme0n1p1 259:3 0 549M 0 part /boot/efi > =E2=94=94=E2=94=80nvme0n1p2 259:4 0 931G 0 part > =E2=94=94=E2=94=80cryptroot 253:0 0 931G 0 crypt /var/lib/docker > /gnu/store > / > #+end_example >=20 > There are no filesystem errors. >=20 > Here's the bootloader portion of my operating-system: >=20 > #+begin_example > (bootloader > (bootloader-configuration > (bootloader grub-efi-bootloader) > (targets (list "/boot/efi")) > (keyboard-layout keyboard-layout))) > #+end_example >=20 > Here's part of my /boot/grub/grub.cfg, generated by Guix. I've added > some echo statements to help debug. >=20 > #+begin_example > echo "C" >=20 > # Set 'root' to the partition that contains /gnu/store. > search --file --set > /gnu/store/9lcbyg3pkb38chhv0yzk6hn3arxfjfgk-grub-image.png echo "D" >=20 >=20 > if loadfont unicode; then > set gfxmode=3Dauto > insmod all_video > echo "E" > insmod gfxterm > echo "F" > fi >=20 > terminal_output gfxterm > echo "G" >=20 > insmod png > echo "H" > if background_image > /gnu/store/9lcbyg3pkb38chhv0yzk6hn3arxfjfgk-grub-image.png; then echo > "H.1" set color_normal=3Dlight-gray/black > echo "H.2" > set color_highlight=3Dyellow/black > echo "H.3" > else > set menu_color_normal=3Dcyan/blue > set menu_color_highlight=3Dwhite/blue > fi > echo "I" > Localization configuration. > search --file --set > /gnu/store/mdrdpd6aw9ikx1wzx6ljydpzvnvwpq0y-grub-locales/en@quot.mo > echo "J" set > locale_dir=3D/gnu/store/mdrdpd6aw9ikx1wzx6ljydpzvnvwpq0y-grub-locales > echo "K" set lang=3Den_US > echo "L" > insmod keylayouts > echo "M" > keymap /gnu/store/pgg50qzm7d2q6k0f82c43fmsxwpwrjvx-grub-keymap.us > echo "N" > #+end_example >=20 > And here are the time elapsed between steps (at least the ones that > didn't go by too quickly), in seconds: >=20 > C -> D : 13 > H -> I : 13 > I -> K : 27 > K -> M : 157 (!!!!) > M -> N : 20 >=20 > That's almost 4 minutes from unlocking the luks volume to get to the > Grub menu, and then another 4 minutes to boot into the Kernel. >=20 > I then removed the keyboard configuration and changed the theme so > that it wouldn't load an image: >=20 > #+begin_example > (bootloader > (bootloader-configuration > (bootloader grub-efi-bootloader) > (targets (list "/boot/efi")) > (theme (grub-theme > (inherit (grub-theme)) > (image #f))))) > #+end_example >=20 > It produces a grub.cfg with this in it (again, echoes added): >=20 > #+begin_example > echo "A" > set > locale_dir=3D/gnu/store/mdrdpd6aw9ikx1wzx6ljydpzvnvwpq0y-grub-locales > echo "B" set lang=3Den_US > echo "C" > #+end_example >=20 > Between B -> C, it still takes 157 seconds. >=20 > Does anyone know why this is taking so long or how to fix it? As it > is, I'll have to manually edit my grub.cfg after every system > reconfigure. >=20 > Thank you, A guess: since LUKS seems to be involved, mayyybe it's an entropy issue? There was a time when booting took a while on my Thinkpad because the ssh key generations was not set up correctly or something. A quick way to check would be to hit random keys, if it makes booting much faster, it's probably an entropy issue.