Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1F77C2D0A3 for ; Mon, 9 Nov 2020 10:43:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9DF5A206C0 for ; Mon, 9 Nov 2020 10:43:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729174AbgKIKn3 (ORCPT ); Mon, 9 Nov 2020 05:43:29 -0500 Received: from mx2.suse.de ([195.135.220.15]:38440 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726646AbgKIKn3 (ORCPT ); Mon, 9 Nov 2020 05:43:29 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 50B47ABCC; Mon, 9 Nov 2020 10:43:28 +0000 (UTC) Date: Mon, 9 Nov 2020 11:43:27 +0100 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Andreas Schwab Cc: Git List Subject: Re: git gc ineffective Message-ID: <20201109104327.GX29778@kitsune.suse.cz> References: <20201109092041.GV29778@kitsune.suse.cz> <87361ilv1a.fsf@igel.home> <20201109101738.GW29778@kitsune.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201109101738.GW29778@kitsune.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Mon, Nov 09, 2020 at 11:17:38AM +0100, Michal Suchánek wrote: > On Mon, Nov 09, 2020 at 10:49:21AM +0100, Andreas Schwab wrote: > > On Nov 09 2020, Michal Suchánek wrote: > > > > > I noticed I am running out of disk space, and one repository taking up > > > about 38G. Did git gc --aggressive, and the used space *raised* to 42G, > > > and git would report it does gc after every commit. > > > > Do you have a lot of loose objects? > { for i in .git/objects/?? ; do ls $i ; done ; } | wc -l > 53392 And in the double-size repository it's doubled, too: { for i in .git/objects/?? ; do ls $i ; done ; } | wc -l 101167