From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gLA/HHyc82R/uAAAG6o9tA:P1 (envelope-from ) for ; Sat, 02 Sep 2023 22:35:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gLA/HHyc82R/uAAAG6o9tA (envelope-from ) for ; Sat, 02 Sep 2023 22:35:08 +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 2B5C734E7B for ; Sat, 2 Sep 2023 22:35:08 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=edcSM2Zl; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693686908; 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-cc: 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:dkim-signature; bh=qZ8cLC1ya8z65Y8D62/UQJiuIB5jiCppgb0jIOftkLE=; b=UuVLW1cMflLZfvWsD46QxR4nv5ArH1kz8VO9DUVfircW2t41tAOUO5u0bwxAASyI2FxW6A 0IW661lysCzcEnu/T2Myue3sDC8yWewiCGuCoW5TDkRn0uhrIZLB81u3ycIbtua9zmfFBw s8BYVX6TRcppr4xhLUrcbm7wleoEBPtS7qCajLkn8D2iwDplWd5JE1cZfze72XzNEfRI/e 17vxwY52wJ0O6vbEskDdoVTnbjw70kVxrTy51VWDjsYD7vxAnQbdiXXE6jBF6tfmdU67mW 49Vqt8LGvqwZZ867c7Cnb9utMqCn2v3HfkOmiofd2fiD52XZJP3Zy437Oulmug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693686908; a=rsa-sha256; cv=none; b=Lcr6NdjWaGdm4a78WmR/p9E76FLOYKzHMvFGoT8dD+gdI7q1eeM6IQ/dj2eLGTzmOqE0Bd +d4v6d8Vq2mFqPe9xMrXRWiTZZ36dwBn6pP1RHN7Sgb1mYuKix7+67qtvVnwVICuPcoHj8 LwFU3pLG6i3/7hyR9CpgwGlr5+oSHYM7yh/UScYH3Vv0VbleV5EYsg/3YpIpwjFOidJpL8 JDE+gMS6gjvELsRtbPl0E2dOw/lCMPCqkWzGFNJ2NLBJs0/TPSA23fdsIILTbeY1PbQKmX JlVM68nyLQNxPhRE2HS4rMOqHPuCkebmnTS2IP/ACNEmJYn/jfEOnauHt20L8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=edcSM2Zl; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcXKY-0004VO-5L; Sat, 02 Sep 2023 16:34:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qcXKW-0004V8-UD for bug-guix@gnu.org; Sat, 02 Sep 2023 16:34:53 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcXKW-0003UX-Lx for bug-guix@gnu.org; Sat, 02 Sep 2023 16:34:52 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qcXKg-0007Dx-JO for bug-guix@gnu.org; Sat, 02 Sep 2023 16:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65446: [berlin] guix gc throws: "error: build daemon out of memory" Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 02 Sep 2023 20:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65446 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 65446@debbugs.gnu.org, Leo Famulari Received: via spool by 65446-submit@debbugs.gnu.org id=B65446.169368684727699 (code B ref 65446); Sat, 02 Sep 2023 20:35:02 +0000 Received: (at 65446) by debbugs.gnu.org; 2 Sep 2023 20:34:07 +0000 Received: from localhost ([127.0.0.1]:38739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcXJm-0007Cg-Oc for submit@debbugs.gnu.org; Sat, 02 Sep 2023 16:34:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcXJj-0007CB-Cd for 65446@debbugs.gnu.org; Sat, 02 Sep 2023 16:34:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qcXJT-00037B-TZ; Sat, 02 Sep 2023 16:33:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=qZ8cLC1ya8z65Y8D62/UQJiuIB5jiCppgb0jIOftkLE=; b=edcSM2Zlpn6ZbjYZHgSP K2hfqJq4X1XjuIHGjse0vSccOrKsdGWqSZLXJ+Q+q0DaYi2peeETLcmrJDxr5UEhiefETpbRWXeOW ZeCNnOs8AU52ys/yl9rsEizG2MJ29j7700Yjzi5GQs66TNZ1F3wUYduPI1shwoPiAYRx0AzRhKOph u18Dkw6HqG7PRqRqpt4gUO3iZ5et+QKMAKzpR9HKZgQKnNQo+ALXYeY9rWg5a/0jEshg6vm29JUb8 0kviuhQtKnHKmedkd78E7Cw+MrAbV2iLFu6IuX8Mmy2forOsMz2w07lYQyzx6ulm+5Zcchg7hTZpD RDwaz3rl5G/JQQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87y1i3byz6.fsf@gmail.com> Date: Sat, 02 Sep 2023 22:33:44 +0200 In-Reply-To: <87y1i3byz6.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 21 Aug 2023 22:19:25 -0400") Message-ID: <87jzt8e2mv.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.93 X-Spam-Score: -6.93 X-Migadu-Queue-Id: 2B5C734E7B X-TUID: GGEndgf9G2Jn Hi! Maxim Cournoyer skribis: > Since a few days on Berlin, the following appears in /var/log/mcron.log: > > 2023-08-22 04:00:29 28215 /gnu/store/4lmpqf8dnk86avq5xa2l6bznxnmrz27x-gui= x-1.4.0-7.44bbfc2/bin/guix gc: guix gc: error: build daemon out of memory > > > It's not just a fluke, according to the kernel's dmesg: > > [7190243.475312] __vm_enough_memory: pid: 28300, comm: guix-daemon, not e= nough memory for the allocation > > > Once it appears, it can be triggered simply by running 'guix gc'. The > problem can be worked around by restarting the Guix daemon, with: > > herd restart guix-daemon > > Any ideas what could cause such a condition? No idea! I ran =E2=80=9Cguix gc -C0=E2=80=9D minutes ago, which reproduced the probl= em; /var/log/guix-daemon.log reads this: --8<---------------cut here---------------start------------->8--- 2023-09-02 21:40:31 accepted connection from pid 12853, user ludo 2023-09-02 21:40:50 unexpected build daemon error: std::bad_alloc --8<---------------cut here---------------end--------------->8--- and the kernel writes what you wrote above: --8<---------------cut here---------------start------------->8--- Sep 2 21:40:50 localhost vmunix: [8204269.198144] __vm_enough_memory: pid:= 12873, comm: guix-daemon, not enough memory for the allocation Sep 2 21:40:50 localhost vmunix: [8204269.207396] __vm_enough_memory: pid:= 12873, comm: guix-daemon, not enough memory for the allocation Sep 2 21:40:50 localhost vmunix: [8204269.216639] __vm_enough_memory: pid:= 12873, comm: guix-daemon, not enough memory for the allocation --8<---------------cut here---------------end--------------->8--- My reading of the Linux code is =E2=80=98__vm_enough_memory=E2=80=99 is use= d by Linux Security Modules (LSM), so perhaps something changed in our kernel config, be it compile-time or run-time? (Cc: Leo just in case.) This is with Linux-libre 6.3.4-gnu. Ludo=E2=80=99.