From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yLC7B9/QCGXiUQAAG6o9tA:P1 (envelope-from ) for ; Tue, 19 Sep 2023 00:36:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yLC7B9/QCGXiUQAAG6o9tA (envelope-from ) for ; Tue, 19 Sep 2023 00:36:15 +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 8A03654A08 for ; Tue, 19 Sep 2023 00:36:14 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=QVjPC0vX; 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-Seal: i=1; s=key1; d=yhetil.org; t=1695076575; a=rsa-sha256; cv=none; b=utDT1duXMqbkTfaJHOP+/qx5y9g2vSn9IVfdKIsfMGFC4tgbOtTtND1TyMB2471XxSchWY c7OyzB1LzY5Ck5LVPBk9z5PJYRZTcZNtUSDb2408cNo4JjJrRTQtDJ/ZJ9SUsFgA3VNN92 gjN2gPYrImLbTSWCQ+V3w9bvIsp11Fy/TjlUNs/vMuuE3QxeKoRK00DTQN1DyvWHfY/tgS NpNXh9fa3S2p1mLWvjP0mgFEHd7jSBFDfm4oWw2PFTqiclQzzmB1ncjqsgkP9/AQ42jKhg +cNEP83ddWzog1v/wycEJSwb2K9FPzEI7pzdN1l11XPLiZRxBcAoxzEJYO1Xww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695076575; 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:dkim-signature; bh=VnCdo5ERqnjAzkB8ATdJaeLx+YXVmKXugHDB0d3lVWU=; b=eC9KhxEilUkZLKYML/Q76DpoQqzd1IMLJzXMRnMp+mpaCUsywwCx0cB/uwYM+aCQS8bp7Q OkB5Hm1KZ4RRTRGSpqHlxdVfx8E1maNHkIWrygPdXDY4VGM+i3uPiPo44BplzYvr0CrLeB MLSMXj1RqCuCA7znPkTJI8sMKEyfEEvXssAY9/lDpWroKS2FNR7/ZVtgUrdtS/fV22S+H8 QPMAc/+/h4Vsfxd/PuKgVwbjenSRyUE6FDEGZ5LXYYVJe4SNWT/y7YGO1SgvRkhaaTde6P FVwpy2C4gZ3aGGYXEGPYOvG8F/Kv+DErmsCetIMO72XC1NWL/K0TxitDU+TIvw== 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=QVjPC0vX; 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 1qiMqR-0004Ie-KA; Mon, 18 Sep 2023 18:35:55 -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 1qiMqQ-0004IL-FK for bug-guix@gnu.org; Mon, 18 Sep 2023 18:35:54 -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 1qiMqQ-0007Mm-6i for bug-guix@gnu.org; Mon, 18 Sep 2023 18:35:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qiMqY-0004Fi-E3 for bug-guix@gnu.org; Mon, 18 Sep 2023 18:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65720: Guile-Git-managed checkouts grow way too much Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 18 Sep 2023 22:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65720 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 65720@debbugs.gnu.org Received: via spool by 65720-submit@debbugs.gnu.org id=B65720.169507654816324 (code B ref 65720); Mon, 18 Sep 2023 22:36:02 +0000 Received: (at 65720) by debbugs.gnu.org; 18 Sep 2023 22:35:48 +0000 Received: from localhost ([127.0.0.1]:54873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiMqJ-0004FE-KV for submit@debbugs.gnu.org; Mon, 18 Sep 2023 18:35:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiMqH-0004Ez-6S for 65720@debbugs.gnu.org; Mon, 18 Sep 2023 18:35:46 -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 1qiMq3-0007GS-Aj for 65720@debbugs.gnu.org; Mon, 18 Sep 2023 18:35:31 -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=VnCdo5ERqnjAzkB8ATdJaeLx+YXVmKXugHDB0d3lVWU=; b=QVjPC0vXxfleSW5DPSJ/ bBSDF5kCSrl4m08GiI+NBRGYpE+fjV3E1lBB9/7uWQUm5j/9hzw6+hA1tBoVre8fgAdLAVZhXqi1d +o2S9nd40TLAzVrAsYWIc12t51Cu7I+vuZOa0yqWagxtzZ/J4GbznfE5waXrbAgXuqXRg4TJf2PR3 d3WIQU5jfQ3h7ILznZqg8G/zUkf24ZmFd4prTDjjNDRJWWLyU9DnR3SpiDUGnp4/zT+9ngft3l4rl B2KAsW5eEUYZl+LevHgLXeWIvtnR6Zhmi1pJDw15iHlM7oY/mPlZyOPVVgSzRvvdZrGr7Ifek2hHN FUxmYlI5Mx/D2g==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87bkejc7go.fsf@inria.fr> Date: Tue, 19 Sep 2023 00:35:28 +0200 In-Reply-To: <87bkejc7go.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sun, 03 Sep 2023 22:44:39 +0200") Message-ID: <87jzsnf6tr.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.40 X-Spam-Score: -5.40 X-Migadu-Queue-Id: 8A03654A08 X-Migadu-Scanner: mx2.migadu.com X-TUID: Rx9imXVFimNL Ludovic Court=C3=A8s skribis: > As reported by Tobias on IRC (in the context of =E2=80=98hpcguix-web=E2= =80=99), > checkouts managed by Guile-Git appear to grow beyond reason. As an > example, here=E2=80=99s the same =E2=80=98.git=E2=80=99 managed with Guil= e-Git and with Git: > > $ du -hs ~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27= shj7apsnalwq > 6.7G /home/ludo/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlay= wmisyr27shj7apsnalwq > $ du -hs .git > 517M .git More data=E2=80=A6 The biggest file in that repo is a pack that was created when that repo was first cloned (Aug. 2021): --8<---------------cut here---------------start------------->8--- $ du /home/ludo/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisy= r27shj7apsnalwq/.git/objects/pack/* |sort -k1 -n| tail -3 44272 /home/ludo/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmis= yr27shj7apsnalwq/.git/objects/pack/pack-3c2f1857501b01c321bc67ba1f30704deb9= e18e9.pack 47272 /home/ludo/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmis= yr27shj7apsnalwq/.git/objects/pack/pack-30d5b35ad14a8398464e49e224811b162f6= 73d66.pack 191492 /home/ludo/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmi= syr27shj7apsnalwq/.git/objects/pack/pack-d39507858782209d1ad87e389e4dffd4b6= ff7ea2.pack $ ls -l /home/ludo/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywm= isyr27shj7apsnalwq/.git/objects/pack/pack-d39507858782209d1ad87e389e4dffd4b= 6ff7ea2.pack -r--r--r-- 1 ludo users 196079671 Aug 9 2021 /home/ludo/.cache/guix/check= outs/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq/.git/objects/pack= /pack-d39507858782209d1ad87e389e4dffd4b6ff7ea2.pack $ ls -ld /home/ludo/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlayw= misyr27shj7apsnalwq/.git/config -rw-r--r-- 1 ludo users 266 Aug 9 2021 /home/ludo/.cache/guix/checkouts/p= jmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq/.git/config --8<---------------cut here---------------end--------------->8--- The pack starts with things from Aug. 2021: --8<---------------cut here---------------start------------->8--- $ git show-index < pack-d39507858782209d1ad87e389e4dffd4b6ff7ea2.idx|sort -= k1 -n|head -3 12 30289f4d4638452520f52c1a36240220d0d940ff (852d8cb3) 927 d7ffc535c52f49177a8e5553569cdb1e321b5bc6 (2007c5d0) 1800 0a379de3249d5e9ff66fb404f7e5aa8ce2cb3d24 (b1e69aa4) $ git show 30289f4d4638452520f52c1a36240220d0d940ff commit 30289f4d4638452520f52c1a36240220d0d940ff Author: Milkey Mouse Date: Sun Aug 8 22:15:40 2021 -0700 [=E2=80=A6] --8<---------------cut here---------------end--------------->8--- =E2=80=A6 and at the bottom (large offsets) it contains very old blogs from= the Nix repo that somehow made it here. I figured we still had a =E2=80=98nix=E2=80=99 branch from the early days, = that contains the history of Nix. I=E2=80=99ve now removed it, which helps a bit: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,use(git) scheme@(guile-user)> ,t (clone "https://git.savannah.gnu.org/git/guix.git" = "/tmp/guix") $5 =3D # ;; 600.534529s real time, 435.260926s run time. 0.000000s spent in GC. scheme@(guile-user)> ,t (clone "https://git.savannah.gnu.org/git/guix.git" = "/tmp/guix-after-removing-nix-branch") $6 =3D # ;; 420.321511s real time, 398.772963s run time. 0.000000s spent in GC. --8<---------------cut here---------------end--------------->8--- =E2=80=A6 and more importantly: --8<---------------cut here---------------start------------->8--- $ du -hs /tmp/guix/.git 373M /tmp/guix/.git $ du -hs /tmp/guix-after-removing-nix-branch/.git 362M /tmp/guix-after-removing-nix-branch/.git --8<---------------cut here---------------end--------------->8--- Anyway, what seems to happen is that every pull (every call to =E2=80=98remote-fetch=E2=80=99) creates a new pack (see =E2=80=98git_fetch_= download_pack=E2=80=99 in libgit2), which becomes inefficient in the long run (lots of small poorly-compressed packs). That=E2=80=99s at least one possible explanation. To be continued=E2=80=A6 Ludo=E2=80=99.