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 498811F66F for ; Mon, 9 Nov 2020 10:48:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729005AbgKIKs4 (ORCPT ); Mon, 9 Nov 2020 05:48:56 -0500 Received: from mx2.suse.de ([195.135.220.15]:42736 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726646AbgKIKs4 (ORCPT ); Mon, 9 Nov 2020 05:48:56 -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 78861AD6D; Mon, 9 Nov 2020 10:48:55 +0000 (UTC) Date: Mon, 9 Nov 2020 11:48:54 +0100 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Andreas Schwab Cc: Git List Subject: Re: git gc ineffective Message-ID: <20201109104854.GY29778@kitsune.suse.cz> References: <20201109092041.GV29778@kitsune.suse.cz> <87361ilv1a.fsf@igel.home> <20201109101738.GW29778@kitsune.suse.cz> <20201109104327.GX29778@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: <20201109104327.GX29778@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:43:27AM +0100, Michal Suchánek wrote: > 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 And server-side bare repository has 16G with 30836 loose objects and git 2.26.2. Thanks Michal