From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.168.172.147 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796200732; b=qdBUTlT+1GqhYWqn+581uj5kLOtO+ZdHj61c8YfizhrnB79oxGDNKBNAS3nobapsEKFT FmJuzBQZ1lS6jC/SxMkZsegEZ2dG+TdyWHjnTeClC3y1tIzT00lYNQn93+yOPHXMn1wO9 b70TkiW4gmLQOwZADETh5r0UeqRl5uJV4WUd+YM+WVQoS2JqFaav/+UPAvqjN84wNOPxF cfgFxIyd08w1SMGp1/MHcwMwekEd9Zeb4JOuawsRrdQCN75SmNUcwcMg6XME24PuMUXNs /CiKUM+5m/5VO4rlLAn5CNDlYGuOx/pSqOM/qgUGi0NKksGAaNwk7Z+Rv1zoISmxIZQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796200732; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID: Received:Received:Date:From:To:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=USHnja5TFKQVtikVM82OMs2VYU35BXPmUbkLDfv0jvo=; b=eBvVwSyxOTAora96eoRMp9YHJBmRm+ClKWGRVoI77FLuQJoc46yPRgJtHsHFuJdfC6k5 YJmZA7HaqmqK98TxaEVlPyFjyRf4B0capKSp9pubSmEWcxGmQ1louFuJ+Sv/wulvhExKc 49DSE7C5fxoh5hoVddmYRU6plCMcEfb0fyGUFSnFTdFIw3Ws7/l3WdzddJNaLNFiOP9D7 zewfP7BOIVi/5AunHRqsJC4Mh0BJ6HsKzMnQYt3vSWTd9LV+Eih+NUPHraUd5mIkOHXfg MKR4o1UgxmJPzVCNQHPXuKihWhgk/7LnQdZwYoLay4VQhoh16VCn/GFVWSnw0c3n4cw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass header.d=pks.im header.i=@pks.im header.a=rsa-sha256 header.s=fm3 header.b="b//15yIS"; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=YvhXHtTQ; arc=none smtp.remote-ip=103.168.172.147 Received: from fout-a4-smtp.messagingengine.com (fout-a4-smtp.messagingengine.com [103.168.172.147]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 841C5606A32D for ; Wed, 2 Dec 2026 08:38:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 841C5606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=pks.im header.i=@pks.im header.a=rsa-sha256 header.s=fm3 header.b=b//15yIS; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=YvhXHtTQ Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 9F0D0EC053F for ; Wed, 2 Dec 2026 03:38:51 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Wed, 02 Dec 2026 03:38:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1796200731; x=1796287131; bh=USHnja5TFK QVtikVM82OMs2VYU35BXPmUbkLDfv0jvo=; b=b//15yISyMeSjkhg5j9Ng/572E Pxds4O3ptui+vOpzSYx8Nx44bWAm64+m/KBkXam+rnbCrzOEJOpNdphuDrmVUH2b NBE0QhqWsuZGlL1kQ6ibPTiLhrqPyBOephtBlR4Oq4AdFFn59LFcrZqMpmtwoCfT jGK+wJhfW2BWaQ73ULKdnWDx8FMuFo8C1MI95pMkAIZ1FFhXANCivbQ66uIckp2S 3mJzrUMf21aFo4wUBDLj9w6J7PmvJIMFsdr2M2PfZik4RVgfuvbazGgLV+TVzUj1 McAdeGe+0+7AEtZRIBT2tKZKk3c1dgwfsFY+mkALgkbwZmmGRtaqk2CGSFEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1796200731; x=1796287131; bh=USHnja5TFKQVtikVM82OMs2VYU35BXPmUbk LDfv0jvo=; b=YvhXHtTQ0GoTfOigs4wfDuSr3KE20zFRbeRwluvgVhTupUe5HDm 5qZ+pR3HymBOKVT1l8Jn2I/4ADyCPrAUOb+OiuajKXk3v+qQiatamuotbizf1DMZ 1bz5humdhklb2s5T8KiJNFRq/90DBQTpeoRyRlRaVtXGqrbX2E8DEKaS5DHJa9U8 VnD0TghnLeN7AzVnk1Qu9EFgURTe6fjiSni1L4Q8tw6OefgXH5XF+833K+97MPVH zvWd3yfne+ZvKdORTD0ujfOaLKD82+CvvKdsAMb5qaYmmyev+3QDL01mCNBllcrO Avk9TmNqiZyalv2V/GQzOEtY8pTPsaQBOdg== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=pks.im a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796200731; d=pks.im; mf=PHBzQHBrcy5pbT4=; rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+; s=fm3:rsa-sha256:OEiXDW0OujByXALrsbgUyVGqktFLV2bMpo/9+0BSdqLO/tz pl3H84lkz9NNP1rVRmGmD+wiAVuFO/Ga7hhik5Wp2Gvd29z6ElmwmT9XfwESQv+F bQNj0kINKJb+JS0oQKP9oa/fWzfc5vgksIPtxcl5GsqFSyJLUiafMXPyKiuNibRo xK211+VlH8dyVEvdLsQLzqfGZCR2EmqGH1yZ5pILzLNwktp82jDo+JTo8bEcRTkO IpuSgvEutxwcv2X30q5wFxW/Sll4y6GA/1Mu2edFN/0v0eIp47EGs30bYi1+1wU2 6ZB4Iy24QdRxaBvSEsjJ9j4WrUEg/3n3M8jMmJg==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=11; hn=content-disposition,content-type,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:deXRjekNWYDVYfwu0dc6xHG4DrqkkETqStSADhgBJZY=:jcJb69cLIHZ3gKZveYWQpCMCqBoFeOOhWprHUfD+4u0=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGnbXsLCPq1AXpHQnqEgJfeg7BG/UMx+lXmDHvo8LQD/dCWcz1It89sGIdtPBx2l9 kNENH3daJODjuXklGmihpcfP/m5fs6MQcxf+sGq2LWY7RD8TCkA1r8QA2EmVm2cuMuk6nP SFT9lCbXs0TR2oHVRrCZPzCh25qdBRHp7ZfHAEJGyodAAxB6vPVcOTAh8/C3s9L4ufMLGl +Ah4vkLIIKl5dbtByVxHcM9wX+dYab6+oUSgwb2vBk9uJEbZ9i0G0eXMTqvt++DghO3POa 8Fjdt/P1IhMlEJa8798mTUOJY1AW/uYrhI8BvvicWyH0iOh4EkJa9rRdsRbhrSJS7zG4d1 kp/5ywIBi+WpdJixwFyc9jzB0vOYo7LR04VAht9JNHjAbuuhNWL9FLSZYJww8akKF5NRn1 hmiq9rzFNT1LO6sh8pYnWBZF8JJ+asTMoe2Ycb8GbbxRq99mGOXE6YU9KsH+lVD6PEcXtI hyy74bWyGhfQWGYMZ+dcGtrwQchvadQGeDmb05Iy8nXXVKRIS1zuHRN69SbCgThp3n0f52 4z4vh1WxES/D+KVEIxKazm73TZ89RRsF5XYQhW0YBRDH3SjDlunWcr6NTu3NM0Mz47+KzL 0j75XtDLAdU21UoJkaxBDeXLMrmf9hpeoF5z3RuHhnzz+gos6FS7Sp2hNEJQ X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Dec 2026 03:38:50 -0500 (EST) Received: by mail (OpenSMTPD) with ESMTPSA id 63f39aaf (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 2 Dec 2026 08:38:50 +0000 (UTC) Date: Wed, 2 Dec 2026 09:38:47 +0100 From: Patrick Steinhardt To: "brian m. carlson" , git@vger.kernel.org Subject: Re: [PATCH 1/6] builtin/fast-import: stop reporting packfile statistics Message-ID: References: <20261120-pks-packfile-global-statistics-v1-0-19beb83b145f@pks.im> <20261120-pks-packfile-global-statistics-v1-1-19beb83b145f@pks.im> X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Nov 24, 2026 at 10:19:16PM +0000, brian m. carlson wrote: > On 2026-11-20 at 12:02:28, Patrick Steinhardt wrote: > > By default, git-fast-import(1) prints a bunch of statistics about all > > kinds of internal details of Git. This includes for example how many > > objects have been allocated, the number of refs processed, or the amount > > of memory that was allocated. > > > > Reporting this kind information is highly questionable, doubly so as it > > is done by default, as a user really shoudln't have to worry about such > > internal implementation details. For some of the above metrics it could > > be argued though that it's indeed interesting to learn about the number > > of objects processed to get a rough sense of what git-fast-import(1) has > > done. But for other kind of information that's not the case, as it is > > without a doubt purely internal implementation details. > > > > One of these reported implementation details is our packfile statistics. > > These include information on the system's page size, the number of packs > > that were opened, the number of calls to mmap(3) and how many pack > > windows were created. Reporting that kind of information, and that even > > by default, is just completely uncalled for. This information may be > > useful to a developer, but a user really shouldn't have to care about > > any of this. > > > > More importantly though, with pluggable object databases we shouldn't > > assume that we're using packfiles in the first place anymore. The > > current implementation of git-fast-import(1) still does, but we will > > convert it to use transactions sooner rather than later. > > > > Let's just unceremoniously drop reporting packfile information to the > > user. If anyone complains (which I highly doubt), then we may consider > > reintroducing this as trace2 data. The same is arguably true for many of > > the other reported statistics. But for now I care about the packfile > > subsystem, only, and hence those are left as-is. > > I would definitely say that in a future series, I'd like to see this > disabled by default altogether. My particular use case is that I have > some tests which convert repositories from SHA-1 to SHA-256 and I care > about errors if any should happen, so I do care about standard error. > However, I don't care about the stats, so I need to be careful to pass > `--quiet` or my testsuite output will just be one giant stream of > fast-import junk. > > I think this would be more in line with the Unix philosophy of saying > nothing on success, and `--stats` exists for those who do want those > details. Yeah. I was hard-pressed to also drop all the other information while at it, but felt like that's a much bigger change altogether. I think it would make sense to have a follow-up patch to at least default-disable this. Patrick