From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 11FB31F66F for ; Mon, 9 Nov 2020 10:43:32 +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