From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oHa7GW/ihWBGxgAAgWs5BA (envelope-from ) for ; Sun, 25 Apr 2021 23:43:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qHN5FW/ihWAyKgAA1q6Kng (envelope-from ) for ; Sun, 25 Apr 2021 21:43:11 +0000 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 B08FB261BB for ; Sun, 25 Apr 2021 23:43:10 +0200 (CEST) Received: from localhost ([::1]:44824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lamWz-0000ZG-Sx for larch@yhetil.org; Sun, 25 Apr 2021 17:43:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lamWs-0000Ya-Jk for bug-guix@gnu.org; Sun, 25 Apr 2021 17:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60678) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lamWs-000427-CF for bug-guix@gnu.org; Sun, 25 Apr 2021 17:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lamWs-0000C1-Aw for bug-guix@gnu.org; Sun, 25 Apr 2021 17:43:02 -0400 Subject: bug#39341: Installer using 100% of a CPU core Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Sun, 25 Apr 2021 21:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 39341 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Mail-Followup-To: 39341@debbugs.gnu.org, ludo@gnu.org, maxim.cournoyer@gmail.com Received: via spool by 39341-done@debbugs.gnu.org id=D39341.1619386932679 (code D ref 39341); Sun, 25 Apr 2021 21:43:02 +0000 Received: (at 39341-done) by debbugs.gnu.org; 25 Apr 2021 21:42:12 +0000 Received: from localhost ([127.0.0.1]:43990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lamW4-0000As-59 for submit@debbugs.gnu.org; Sun, 25 Apr 2021 17:42:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lamW2-0000Af-5B for 39341-done@debbugs.gnu.org; Sun, 25 Apr 2021 17:42:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43369) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lamVv-0003Qt-Td; Sun, 25 Apr 2021 17:42:03 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=51412 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lamVt-0007zl-En; Sun, 25 Apr 2021 17:42:02 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87a766u9et.fsf@gmail.com> Date: Sun, 25 Apr 2021 23:41:59 +0200 In-Reply-To: <87a766u9et.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 29 Jan 2020 00:19:22 -0500") Message-ID: <87h7juf3dk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619386990; 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:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=ePRCsuGlMZLNcdRPH/FGwvK+YyGv4jam0hwJUQuFEzQ=; b=XpDq0wWrmT88R9FfGX1Q6lnTzA4qo96CN/8/mi9KYaX9Is3YHvjRarCQKO/4WXG1cJLtog zuUMT7A9KgkarMhremxhtjp5kBQQUlRI69zARVS3c4ouNJDPF3cQkm3RcW0SzmLo5BPyaB r+duA16rEWUCMFWVuqMvtFIhbaU12CA8axGIVe8TDAz12QGh59Xq6V7Ld2cBMsSYygZHWU O2PYbJAhN5igAOTGfFYcEe48VhKjjCwruOznJZw3dJrfBQQvqBQFitecv8xwz7Jwv1OEj0 JHOUkU1Dl4sDEfwIu2rvnx47Q0ZwVOJpdmxNJHxxIjLmRMDmF3JH9S5Y/OCFig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619386990; a=rsa-sha256; cv=none; b=jeBgMx6TrLEqwHhSsw1xp64P/xbT7ZtGKOzizNVh9VpF3g+Sg82I5V3R+iN/ir5q8klRiL 40rUnGANWNdGtwbc+X/or38FjRQO6yroaXoZlAJVJJaLolIIDsjiFaoDbYfovtvcKDKUdU qr8O2MlFJptGNjh9nv67Qur8JOljAy4p8GuPlE8QMPfxUKIjRsE8yI54NrS09Ybh096sUz hL+byE7uHAd+9AQpqvJlxFhtfGXnC/OCZ7etUW/ldSzjfXoQ0IqyoP7bRI54PlPbvHnRI4 I2kV63cMk9O4Tehm3McjsTvHiQcDQ+QNPWV/uYVM5H1cIwhMpt21rM8x9p27VQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.95 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B08FB261BB X-Spam-Score: -2.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2XLRrD8s7/cM Hi! (Cc: Florian + Mathieu) Maxim Cournoyer skribis: > While using the Guix 1.0.1 installer, I noticed that it was constantly > maxing one of the cores on the machine. > > The guilty process is: > > USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND > root 377 99.8 0.3 37268 10328 ? Rs 08:20 377:09 /gnu/sto= re/8asv37pjsq3n4b4hgz9ys840f9j531hk-kmscon-0.0.0-1.01dd0a2/libexec/kmscon/k= mscon --login --vt tty1 --no-switchvt --login -- /gnu/store/cb92798ps1xpla3= ai14ik81vkl7jbw97-installer -p Good news! This is finally fixed: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3Dd904abe0768293b23= 22dbf355b6e41d94e769d78 (Mathieu, Florian: let me know if anything looks fishy.) The commit log says it all. With this patch, a new FIFO is opened after each keymap-change request so kmscon no longer polls on a stale file descriptor. I=E2=80=99ve verified that keymap choices in the installer are honored, tha= t you can change anytime via the F1 menu, and that there=E2=80=99s no file descri= ptor leak in the kmscon process. Now people will be less likely to hear the fan of their laptop right from the start of the installation process. :-) Ludo=E2=80=99.