From unknown Fri Jun 20 07:20:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#50353 <50353@debbugs.gnu.org> To: bug#50353 <50353@debbugs.gnu.org> Subject: Status: Excessive temproots size when running guix build Reply-To: bug#50353 <50353@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:20:00 +0000 retitle 50353 Excessive temproots size when running guix build reassign 50353 guix submitter 50353 Christopher Baines severity 50353 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 03 05:54:05 2021 Received: (at submit) by debbugs.gnu.org; 3 Sep 2021 09:54:05 +0000 Received: from localhost ([127.0.0.1]:42991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mM5tc-0006Ov-W3 for submit@debbugs.gnu.org; Fri, 03 Sep 2021 05:54:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:43766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mM5tX-0006OS-7j for submit@debbugs.gnu.org; Fri, 03 Sep 2021 05:54:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mM5tW-00046X-U7 for bug-guix@gnu.org; Fri, 03 Sep 2021 05:53:58 -0400 Received: from mira.cbaines.net ([212.71.252.8]:37388) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mM5tV-0005Kg-1Q for bug-guix@gnu.org; Fri, 03 Sep 2021 05:53:58 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:8ac0:b4c7:f5c8:7caa]) by mira.cbaines.net (Postfix) with ESMTPSA id 5DCDA27BBE1 for ; Fri, 3 Sep 2021 10:53:55 +0100 (BST) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 88687b2a for ; Fri, 3 Sep 2021 09:53:55 +0000 (UTC) User-agent: mu4e 1.4.15; emacs 27.2 From: Christopher Baines To: bug-guix@gnu.org Subject: Excessive temproots size when running guix build Date: Fri, 03 Sep 2021 10:53:52 +0100 Message-ID: <874kb2q91r.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain I spotted a problem with data.guix.gnu.org trying to process this old revision [1] 1: https://data.guix.gnu.org/revision/75dabac633bb9a33efbebf859f8aa4bb3b9582b2 The machine ran out of disk space, as a ~30GiB file had been created in /var/guix/temproots. I think I can reproduce the situation by running this command. guix time-machine --commit=75dabac633bb9a33efbebf859f8aa4bb3b9582b2 -- build --system=armhf-linux guix It's the build of the guix package that seems to be involved. For some reason though, I can't reproduce this on my local machine, I get a build failure for [2]. 2: /gnu/store/cz4sr5whzf3qhp8c47bzlfzcxxwl485i-python2-2.7.15.drv Any ideas? Is there a known issue (perhaps with grafts) for old revisions of Guix which could lead to excessive temproots file sizes in some situations? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmEx8LBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XcE4w//Zmzb8V7WIr306iusWbnwm+uu+i1uYMlr gG0EAZNAbrWxi0tax+ZXf2/oUu7cBQWiTnTV1wjHAAtE4QnNC4Tm87IF+6eIb+Vx vY5viWGQU1wXbOHQpp1bes0QspRSQE7l0axI3NkpNt2K+JLLWuOqQt2WdtvlQD5S AeQGcjEM3UYzwDOWOo7awuEOUwC56joGF/AuNfHz+U9VDQwXE8FQc6jeMOayypwj HDxfev/AfjkmjI6vPwLTg7E0PgwsvVqGQL8Elo89cUm6NIYw6biz2KG6s4AJdukl eKZnciMWDcp+ZEn0okY8AYJ8n1x+ymCL+YjegnuMGOdB2JlywB34eLBu58G+W3ZS 4ZBbhf4JZGTYmCKg99kzoGJdO+UNAXDPx6tz8WXJSMc3tzPBOg9w9zeO7fb+EmjF +bg2oX/Je2IzWDQuRQ7mJi2jruesJP6LYoAzinaeyOZvTCkAzYCUyLQK8rUxH9Q/ Sf54V2euZnGS9v24M6jRC9i7QVgOGAo+I08Dvr14qhPpRfxMIjteWXQIY7+8/MKm RN4Uk9HUxYvhpmOAju9yKnHeU6fPJQBHeztvsmMOAYlvllsdG7xi/j4Ou0/RTVjX qP9jZxjghCJKRkyHIddU9xgGsfrB6ozqFCVI+ZKzYfApcx1CU2CIOFWkI0tpm4wk hZgolwCdBS4= =DCfm -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 06 17:18:26 2021 Received: (at 50353) by debbugs.gnu.org; 6 Sep 2021 21:18:27 +0000 Received: from localhost ([127.0.0.1]:54615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNM0Y-0007R2-MY for submit@debbugs.gnu.org; Mon, 06 Sep 2021 17:18:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNM0X-0007Qq-81 for 50353@debbugs.gnu.org; Mon, 06 Sep 2021 17:18:25 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53690) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNM0R-0006Qk-QR; Mon, 06 Sep 2021 17:18:19 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35338 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNM0R-0004VQ-Hm; Mon, 06 Sep 2021 17:18:19 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Christopher Baines Subject: Re: bug#50353: Excessive temproots size when running guix build References: <874kb2q91r.fsf@cbaines.net> Date: Mon, 06 Sep 2021 23:18:18 +0200 In-Reply-To: <874kb2q91r.fsf@cbaines.net> (Christopher Baines's message of "Fri, 03 Sep 2021 10:53:52 +0100") Message-ID: <87czpl7691.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50353 Cc: 50353@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Christopher Baines skribis: > I spotted a problem with data.guix.gnu.org trying to process this old > revision [1] > > 1: https://data.guix.gnu.org/revision/75dabac633bb9a33efbebf859f8aa4bb3b9= 582b2 > > The machine ran out of disk space, as a ~30GiB file had been created in > /var/guix/temproots. Sounds fishy. Those files contain a nul-separated list of GC roots (store file names). Thus, a file in there is proportional to the number of =E2=80=98add-temp-root=E2=80=99 RPCs made by the client during the sessi= on. A client with a long-running session (=E2=80=98guix publish=E2=80=99, Coord= inator, Data Service, Cuirass, etc.) that regularly adds temp roots makes that file grow endlessly. HTH! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 07 05:46:02 2021 Received: (at 50353) by debbugs.gnu.org; 7 Sep 2021 09:46:02 +0000 Received: from localhost ([127.0.0.1]:55424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNXg2-0003fK-Fo for submit@debbugs.gnu.org; Tue, 07 Sep 2021 05:46:02 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:38710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNXg0-0003ek-Fe for 50353@debbugs.gnu.org; Tue, 07 Sep 2021 05:46:01 -0400 Received: from butterfly.local ([188.188.3.227]) by laurent.telenet-ops.be with bizsmtp id qxlv2500l4tskic01xlw1M; Tue, 07 Sep 2021 11:45:58 +0200 Message-ID: <8b57f8cef097e56b0db3ae2f6bc4519bf4046776.camel@telenet.be> Subject: Re: bug#50353: Excessive temproots size when running guix build From: Maxime Devos To: Ludovic =?ISO-8859-1?Q?Court=E8s?= , Christopher Baines Date: Tue, 07 Sep 2021 11:45:33 +0200 In-Reply-To: <87czpl7691.fsf@gnu.org> References: <874kb2q91r.fsf@cbaines.net> <87czpl7691.fsf@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-P/1tuDcgYCb0Q8GyH2Ot" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1631007958; bh=0ZhvGsRpDRk0kYD3psz1LfTEQFpLmYtlCkSL9MDWvxw=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=XQLTCB2TK1NaJryZEg9ZXd9PfJ15rabOESouYDjsJTIHeOlYSh6dOOKBnyuq35FpF UB7UNSxhxxsaZln+TKQ8NW2N71mXublnq326D3aWPZNnDLIZ6rZ1KMOeopssFTGZvX Nt4KAXTgJL5G1P0mo6IAzJ8A/ayz8ZjH5V7HcGXVmQ91jNpl5Ni5SGyjwj7yl+jQ0f uyKxtBg8EEiFUhuJOFNkyviB+ivNxwDx6xfgFD3ghxzm0oafeLxYo8XdQWk4JV+yej I03nPpkUf72nepHbVaYFd70h7A+ZmomELfyRewPm+KfzV5EJl9sG3ipY3xz05jLQ39 iBbHhmQ88hpWQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 50353 Cc: 50353@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-P/1tuDcgYCb0Q8GyH2Ot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op ma 06-09-2021 om 23:18 [+0200]: > Hi, >=20 > Christopher Baines skribis: >=20 > > I spotted a problem with data.guix.gnu.org trying to process this old > > revision [1] > >=20 > > 1: https://data.guix.gnu.org/revision/75dabac633bb9a33efbebf859f8aa4bb3= b9582b2 > >=20 > > The machine ran out of disk space, as a ~30GiB file had been created in > > /var/guix/temproots. >=20 > Sounds fishy. Those files contain a nul-separated list of GC roots > (store file names). Thus, a file in there is proportional to the number > of =E2=80=98add-temp-root=E2=80=99 RPCs made by the client during the ses= sion. >=20 > A client with a long-running session (=E2=80=98guix publish=E2=80=99, Coo= rdinator, Data > Service, Cuirass, etc.) that regularly adds temp roots makes that file > grow endlessly. FWIW, temp roots are added in =E2=80=98DerivationGoal::DerivationGoal=E2=80= =99 when building things, and =E2=80=98DerivationGOal::haveDerivation=E2=80=99, =E2=80=98SubstitutionGoal::init=E2=80=99, =E2=80=98LocalStore::optimiseStor= e=E2=80=99 =E2=80=98LocalStore::addToStoreFromDump=E2=80=99, =E2=80=98LocalStore::addT= extToStore=E2=80=99, =E2=80=98LocalStore::createTempDirInStore=E2=80=99 and =E2=80=98LocalStore:= :importPath=E2=80=99. I.e., temp roots are not only added from the add-temp-root RPC. Greetings, Maxime. --=-P/1tuDcgYCb0Q8GyH2Ot Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYTc0vRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7vPzAQCiSb+g4emT66LaUwlSL+R41KAn 0gi42mlTJDfrCfCN5wEA5sbGvOmrrk4BB1kFQ7vwKOAAyk/q/ZEqLXvxhX97UA8= =4Rne -----END PGP SIGNATURE----- --=-P/1tuDcgYCb0Q8GyH2Ot--