From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SNn0DLQQuGHaPgAAgWs5BA (envelope-from ) for ; Tue, 14 Dec 2021 04:34:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kGiLCLQQuGE2NwAAbx9fmQ (envelope-from ) for ; Tue, 14 Dec 2021 03:34:12 +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 C2F7114CFB for ; Tue, 14 Dec 2021 04:34:11 +0100 (CET) Received: from localhost ([::1]:51122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwyZu-0004eF-RG for larch@yhetil.org; Mon, 13 Dec 2021 22:34:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwyXq-0004Vp-Uc for bug-guix@gnu.org; Mon, 13 Dec 2021 22:32:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mwyXq-0002ex-M9 for bug-guix@gnu.org; Mon, 13 Dec 2021 22:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mwyXq-00021u-D1 for bug-guix@gnu.org; Mon, 13 Dec 2021 22:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#51787: GC takes more than 9 hours on berlin Resent-From: Christian =?UTF-8?Q?Th=C3=A4ter?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 14 Dec 2021 03:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51787 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 51787@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16394526987773 (code B ref -1); Tue, 14 Dec 2021 03:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Dec 2021 03:31:38 +0000 Received: from localhost ([127.0.0.1]:57288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwyXS-00021I-Gt for submit@debbugs.gnu.org; Mon, 13 Dec 2021 22:31:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:52670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwyXO-000217-Iw for submit@debbugs.gnu.org; Mon, 13 Dec 2021 22:31:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwyXM-0004Q7-4k for bug-guix@gnu.org; Mon, 13 Dec 2021 22:31:33 -0500 Received: from mail.pipapo.org ([78.47.240.153]:59736) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwyXJ-0002ct-5k for bug-guix@gnu.org; Mon, 13 Dec 2021 22:31:31 -0500 Received: from hermes.pipapo.org (imap.pipapo.org [10.10.40.10]) by mail.pipapo.org (Postfix) with ESMTPS id 0D7A75E7EB for ; Tue, 14 Dec 2021 03:31:25 +0000 (UTC) Received: from wolke.pipapo.org (wolke.pipapo.org [10.100.20.10]) by hermes.pipapo.org (Postfix) with ESMTPSA id 099D09E01211 for ; Tue, 14 Dec 2021 03:31:30 +0000 (UTC) Date: Tue, 14 Dec 2021 04:31:23 +0100 From: Christian =?UTF-8?Q?Th=C3=A4ter?= Message-ID: <20211214043123.7b041b8a@wolke.pipapo.org> In-Reply-To: <87o85lhhrd.fsf@gnu.org> References: <87o86pegr3.fsf@gnu.org> <87zgpuhig7.fsf@gnu.org> <87wnkv15k3.fsf@cbaines.net> <87zgpp971n.fsf@gnu.org> <87pmqet419.fsf@gnu.org> <87czm57zao.fsf@gnu.org> <87czm4bvzt.fsf@gnu.org> <877dcccrlq.fsf@gnu.org> <87a6h86s7o.fsf@gnu.org> <87bl1nxyt5.fsf@gnu.org> <87o85lhhrd.fsf@gnu.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=78.47.240.153; envelope-from=ct@pipapo.org; helo=mail.pipapo.org 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_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 13 Dec 2021 22:33:56 -0500 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639452851; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=Mbj/c4lX+4Cs/6rb/mQd9QfZt3kqhV49f8S4jGNb3cI=; b=g91TLS/DrPZ/wx7Irckg85M1nffXKv6NUJndNxuQHjth5lnqSN8qJhfTZz0ZaGxXDUQhH2 j1ep4f7BNvaDVYnj68d4E73Tmt7CMWdMegbf1sw89amT1YzYH3eh1nmUxXSn2RcffDjsya ue7FoyTsc+rUeymosoiwCG2bj3fzo6YB6cahRnX5ostLwhnWlg1Prhtpno4gsch4oqGqpu uxQp4dkelcvH70wVwGt0h1oW9aue/ApOf/t4SQmTInNTsyH4y89qrB9aCTJHYUj7zhzY8i HsUYSIT7NAko79SChWiSV23gFr6VcyQtwRFX5eBuiNLxkZcMmHBvdXKiisM96w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639452851; a=rsa-sha256; cv=none; b=sIx2xrt3fG9BZHR6+fY4NU80/kbgKvncsoN77VdboSGPX3xWXwmtXHSH8OlbuO4OJCQl7c +2WsYrjgqltCKFPEEpJlW4vxxX5Gy++hQZQ9Fes9WLnGq9+6qwolkGwdSzJMDm5kfX+2jt VpjYw+gEdrS6B9a95sqjgcmG4KQsj/WzgTjePw/ySxR2lbLXFsFn551TjYMUURpemRCpmy CBk46O2DudHmCqvV8sMu7E4b7412C6vAc8BdT1y8e6ggsLb7j/M8g9xqemCEeR/+2fC9Rr 3Up7WKx4fNVWTsLKriuYwoLIopjWMWugNtNE0IU1S8fnLviihNxcpHgsIx0Dow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Spam-Score: -3.17 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Queue-Id: C2F7114CFB X-Spam-Score: -3.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: eitpAQA2/QE5 On 2021-12-12 18:09, Mathieu Othacehe wrote: >Hey, > >> OK, thanks. Looks it just finished removing the trash directory >> content. I started a GC process from my session to monitor it >> closely. > >Daily GC recap: > >* The GC process I started yesterday, did collect 5.5TiB in > approximately 24 hours, that are now in the /gnu/store/trash > directory. > >* The /gnu/store/trash directory contains 288910 entries. If those >items > are removed at the same rate than on the previous days, it will take > days/months to delete them all. On another note: when 'guix gc' determines that objects are dead, are they really dead then or can it be that they are 'locally' dead but in case the store serves as substitutes/offload server some external clients may still request dead objects? In the either case would make sense to run the GC more frequently, but for the later case a --min-age option to preserve objects that just died recently could be helping. Further it may consider the atime of objects for removal. And finally while I had this Idea: You mount the guix store with 'relatime' or 'nodiratme', if not that could explain the slow deletion process as well! Christian > >* I noticed that the upstream Nix GC process can now operate without > locking. I think it shouldn't be too hard to port it to our fork or > maybe rewrite the process in Guile while we are at it. > > That will not fix the slow hard-drives issues though. > >Thanks, > >Mathieu > > >