Article View: linux.kernel.git
Article #3746Re: [PATCH 1/6] builtin/fast-import: stop reporting packfile statistics
From: "brian m. carlson"
Date: Tue, 24 Nov 2026 22:19
Date: Tue, 24 Nov 2026 22:19
68 lines
12267 bytes
12267 bytes
--FqBvoPFqicEBwBsy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. >=20 > 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. >=20 > 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. >=20 > 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. --=20 brian m. carlson (they/them) Toronto, Ontario, CA Speaking for myself only --FqBvoPFqicEBwBsy Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- wr0EABYKAG8FgmsGDWQJEHwMSWKIh6KBRxQAAAAAAB4AIHNhbHRAbm90YXRpb25z LnNlcXVvaWEtcGdwLm9yZ0pnCxnSh+ddNmcaO1X7BqpobdoGxQIdcqUWSPBDahCs FiEECCzmip28ZfuD0cORfAxJYoiHooEAAB7TAQCU0Wfcz3FZigwufO5UNh+HYoLC jUpB6pCb6sJBGLtNUAD/ZwgWqRX8VIxh2tjJh4Hc3/5tOG9SiU1ZBGAdZWg/+wE= =K7Zk -----END PGP SIGNATURE----- --FqBvoPFqicEBwBsy--
Technical Details
Message-ID:
<awYNZF7ORvwI00-4@fruit.crustytoothpaste.net>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76268-linux-kernel-git=dewy.ruReferences:
<20261120-pks-packfile-global-statistics-v1-0-19beb83b145f@pks.im> <20261120-pks-packfile-global-statistics-v1-1-19beb83b145f@pks.im>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76268-linux-kernel-git=dewy.ru
From: sandals@crustytoothpaste.net ("brian m. carlson")
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 1/6] builtin/fast-import: stop reporting packfile
statistics
Date: Tue, 24 Nov 2026 22:19:16 +0000
Organization: Usenet Network
Message-ID: <awYNZF7ORvwI00-4@fruit.crustytoothpaste.net>
References: <20261120-pks-packfile-global-statistics-v1-0-19beb83b145f@pks.im>
<20261120-pks-packfile-global-statistics-v1-1-19beb83b145f@pks.im>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="FqBvoPFqicEBwBsy"
Injection-Info: usenet.network;
logging-data="53178"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:c9frJ/QmYkWjY+L2JGLvzeI2+70= sha256:TN69+ydO3aOJtEFvGU//s6xHUwh1+U7MncinaqYZhqM=
sha1:kmnedxuCoVB0AuHof5P3bX9r1ys= sha256:y2pFiqdM6ISZXmMC5SFRDF4dFjTS0JXpOqVBsdKG62g=
Content-Disposition: inline
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 870E9125E33; Wed, 25 Nov 2026 01:21:15 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.951
X-Spam-Status: No, score=-1.951 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (3072-bit key)
header.d=crustytoothpaste.net
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id QorskKxYs5W9;
Wed, 25 Nov 2026 01:21:11 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76268-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=crustytoothpaste.net
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 60F87125E2F; Wed, 25 Nov 2026 01:21:03 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 778FD4644E; Tue, 24 Nov 2026 22:19:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795558766;
b=N3wkNHUgpp7gz7Q7Hlqjx2yjWTlcLKav7wOdcl3vd+yQrCRXxt6H0VHym/a/iJlqPT36
tpnA1Zv820s19nfLNIs5SJAcLcoQW6QIXrd6UFkP2t0sb36ZpeF657eDJ8lHc6N5oe8ov
HI1mCNteWSL/hvUcJcENjwk3aPHt4en/qBUYttC2RNdS/0sahdwxAItwYazDSLI78NutT
0cTg5sprunxQ13j6QObB6RwPXnWfDZoXgU3UH7phxiymAIoVWkOyl/iU+SDualinK64E8
JzdcJcLCvnRvpwhGPWxiWZCs+Q1NzkaQZdODtg8priFl0DaYcu0CUjg6+mGF7JXLZiw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795558766;
h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
From:To:Cc:Subject:Message-ID:Mail-Followup-To:References:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
Content-Disposition:In-Reply-To:User-Agent;
bh=+a1JxxdkjEjjJnnjTCCyxiBrh/LJP4una4Mvbs8QF2s=;
b=bcB+63Qjykdp3hVnJtQlt2+D94q00gTMvWy3hYaEtNQeAcGDLH9H3jpXWnYMzoM82QdX
3FnGBszY1sRQVEPwZZZ2GsH7pNB7YGE6ZrT3y8bE9/QJ5BPfxX+PyLdO1q9eN/7Jnlyn3
lAqH7Do8ZbZ81SH2ePL7/rBgYI+YgZpAvcApr0TsZAIteQJMGuOYKhxjFLqLgGGzyrwbB
qX4byuO3q8Gd/QxoVYjzq1saXY6KYxb2z72bV86iu0HppNXLL8QfLX6F0YgfVWxOtn7az
V4Prm9gVj1t48WlQ+PhJURFdBQipZoklZwo/hJ5+YhydlRvCsYE/u+WPVZvv5MkB0iQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.a=rsa-sha256 header.s=default header.b=bFxSfiD3;
dmarc=pass header.from=crustytoothpaste.net;
spf=pass smtp.mailfrom=crustytoothpaste.net;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 07A70606A680;
Tue, 24 Nov 2026 22:19:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (3072-bit key) header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.a=rsa-sha256 header.s=default header.b=bFxSfiD3
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=172.105.7.114
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795558765;
b=Q+KVRBU5GzKI4ZNgzIDJ5lSIOnS2tbB6eWnmdp/1rWIo9zPpSfOkMei+F25kDcLCZRTu
TDTFPtXlu029/uXNz5HC4IdLEGNJLutTGs7rydFAtgvpzzYPMhX3YwX+otTkPSJPHPrW1
hrCS4ti4js1WWfYG4YeFVDkv3EvcXm/lgEmhwcCz1ouXjOrmlF/xBYoaeu9AXId3CnCV2
Jk53DOH37Mg5oa5uNRs/28pNGMEtM0fRDuE9zOzu+IkqK02j2C5zQ+yRyB+yuNMNhXw3u
zxuZ3TYfxVgz1nlBpO2aGMK5iOHeVJNtf+XN80JhMsV/IScy/xKVZvWZorcyIJAxUQw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795558765;
h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:
Content-Disposition:In-Reply-To:User-Agent;
bh=+a1JxxdkjEjjJnnjTCCyxiBrh/LJP4una4Mvbs8QF2s=;
b=yA3oysKQcOtDV9Rz5ul9l1BJ9QJemDKg3WReOmREO9HKmEyVnwCphIgmyIRWqO1IYHRT
YhES+5BVmcGUvxXMIpMu2xVCIEJAvJOn3dytHymXei/PrY4MVXAlSfXsqQpO3YfuIF8zv
bA+GBCPIfdshkUBUyiBO9MmQ7iJ4aaTMOJiZYqgJZdGlN37Q6v4ohQzQREohesNI1Q1Rr
APBR22gv6RCddFbkjmkC5sQ/JHnL4/TCe0IytAgX6VnUm9faftmQvCsezZoLpeGMJab9e
dJ7tlToqXPD+aQwI/YDVawTbwSgx2FuTc1CauIT6WJ0OKvcpAH23lUBg03pqzpMEchw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=crustytoothpaste.net;
spf=pass smtp.mailfrom=crustytoothpaste.net;
dkim=pass header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.a=rsa-sha256 header.s=default header.b=bFxSfiD3;
arc=none smtp.remote-ip=172.105.7.114
X-Received: from complex.crustytoothpaste.net (complex.crustytoothpaste.net [172.105.7.114])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id A54C9606BA30
for <git@vger.kernel.org>; Tue, 24 Nov 2026 22:19:24 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A54C9606BA30
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=crustytoothpaste.net
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=crustytoothpaste.net
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net;
s=default; t=1795558758;
bh=Eoh0bjpalicnfpWHQ2O0+/RhbeNTD1/N842O7oj3u9Y=;
h=Date:From:To:Cc:Subject:References:Content-Type:
Content-Disposition:In-Reply-To:From:Reply-To:Subject:Date:To:CC:
Resent-Date:Resent-From:Resent-To:Resent-Cc:In-Reply-To:References:
Content-Type:Content-Disposition;
b=bFxSfiD3JPKuF9j3bt4facQNvM44DSpsIOiP4GQfbCH2ycTjc434Gkbs/bYJjrVSF
5d5EdS1kpqi8Ea5b76Unw+nfnsjSol3xdTvbYa6ByW1tyMm+fWEr8PhHD0+i2AASQb
fnTlBWpZq4wipdhgYqyoLTuOU1SeojwT8TlRLBoqUt/JE5soXwR0acsv0RmgAuzwlB
4dxnYyjE9vyoLb8t14W0OQB32cge8o0+eIbVHnFEF3cs/l9UUk+NPfxLM+jKCp2sCK
zBpdyvH+GTo15RpW603asttBVv7GomC+ztMjaT67sXLVjU81K4fbf2Z/y2cBlisH89
Cug5mNP8PvbQEAFUjO/aqtn+GVWzW8rKPn0LLhmk51cnwJsgHqB5I/QRPU4dFtHi6s
7JyHz+6r1Oc2C481L/Lto1SUM7xQTnyeaDbOy1iXy5HVE/Fi9xod4kycZGMsnRdyNL
jrK3QQVjlGSYarrtKPWR9nyiwloF5vkTbwABkxESjlyUYF6C52y
X-Received: from fruit.crustytoothpaste.net (unknown [IPv6:2607:f2c0:f00f:f901:52b3:5d58:319:ece6])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by complex.crustytoothpaste.net (Postfix) with ESMTPSA id 1889E200B1;
Tue, 24 Nov 2026 22:19:18 +0000 (UTC)
X-Cc: git@vger.kernel.org
X-Mail-Followup-To: "brian m. carlson" <sandals@crustytoothpaste.net>,
Patrick Steinhardt <ps@pks.im>, git@vger.kernel.org
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261120-pks-packfile-global-statistics-v1-1-19beb83b145f@pks.im>
X-User-Agent: Mutt/2.4.1 (2026-07-04)