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=1796200737; b=Yw22SBOXuo8RGnds3JvLXsm37sYhPkFr8x5wPktH5XZ6JUl6hUxKUTAVwlJyV8sUjCxl 3w3U1aX73Fvp67nTEc3UGlfx3Rp1wlIXZgONHJl6MtoZyoVqE7oCCrmtJd5XCLv0CXVeg Q94W6iKbsEDPPAG870TRdwVjshiUd6dpOTObEUXuvvoe5kZ/Ec8fRwaZVGaaWnIcWgdgL XwvIGwJFqCK2Y04tyY7yjEnIKbWgYQ9KS5X4IXoHg+dffeqkC98gv/r8RSg3iyIU84jlw hsliy2wOTd4MvxQ+GvM8Oq/+COAV7uIkp2GuzLtUvQ3b9YqQdGwhJTDdYR10fkj258A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796200737; 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:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=dlWASBobepUY9pVFM2ZlW2gFWQrcwzcmIhBkx37j+WU=; b=Ii1bITrxDeokJCcungGnZjQzTyx5CSpNreiS91icA8S4FD4DupU3No+wb2uCcOB0tAL+ /xMRAlJvQnOFTSzA8MYHDkTFmTvOWyExR2Wj7nhydKDoKl41OgvPwu9HeH+uxHr1oxjJl qgCaOtCFtV7uxFCS3nM/t9GCtv2HugfrgB6GbjQYBW8YLJShbiyFuosO8+Iw1BSHn5y4i epN3iqCWUNsCcj2umdDQF5MPTw2HDmyJLh54l02GIXXRLLS/KkPHru72NBe+xbWVlsRBd JiSMdykkMOxNvw+ilAMv58XPrH0acQhwJvP2T6SpyplGGf9LpLspGRt5y2zzkwlbyPg== 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=oACsf1JI; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=iDH+wZCj; 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 40919606A32A for ; Wed, 2 Dec 2026 08:38:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 40919606A32A 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=oACsf1JI; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=iDH+wZCj Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 77D00EC054A for ; Wed, 2 Dec 2026 03:38:56 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Wed, 02 Dec 2026 03:38:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc: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=1796200736; x=1796287136; bh=dlWASBobep UY9pVFM2ZlW2gFWQrcwzcmIhBkx37j+WU=; b=oACsf1JIyqzpiw2mvmK0jd0H6E fLXX3gf3VtmanJdOaCxdJ43fJpfKfoqiD1PngCIWhWYD0KN6bWx5NMs3o5xXCwog L1zjacRtRM4Hznj9glxdpR3LaJXlpmHcn7zHYNfU0HhiQLRwYlUHY8CgAuLP6geP Nb50thnHGB8Y1ZtAC5UdHPTWYOHfd8Hy8spVfxxZuClWT2yPWyJ0Vx0bb7Y1Y212 FCyV1ffuQa9sbsW/32ik0NhrrCkiTASIocUTqLWWJZ9jtYaxfUiiSFD1Hcd4D8yQ fiA7bZ08ukOMrpF4ShthlAIXzzc2Co0Ml8pOis1U2mGuT898dlUrnQ1hdyvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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= 1796200736; x=1796287136; bh=dlWASBobepUY9pVFM2ZlW2gFWQrcwzcmIhB kx37j+WU=; b=iDH+wZCjqjpxihZizjd1J6ULwAtu3oMzO9sFADstH5dE8S8sXR6 e7xqUNbsu53kx1WP5m0wCLYD4Osxh9oQj+dUJ8z+GN6bFSv2HRAx2K6C/rV3xuK8 z0URDQ8rxQKa1/W1qaMBdQYGHC8QGloPZUDBZQDhIQDJbTPtb1Hs3WGfKd/NGQCf snoPmwrSaWfVp/m9zv/eEYmFOYhkgRa/0rM8i/MD43LBvqSDurQnKT2wFAzrsteO aLO1CXwd00tmar599aNpFCkgRZ+zBEDjKKYa2oegUF4U6wD+yipv0UNmYJfTwqKm z92fjTo6woa2ipXE3s6XC6VJ0KMCNHqp4yw== 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=1796200736; d=pks.im; mf=PHBzQHBrcy5pbT4=; rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+; s=fm3:rsa-sha256:KcCHP1xpXJ5GXzi9wPsku90An0utxgZN2KwcUH++4y1Ti8T Dj394FLvSDMmXPjDwfR/f4rKqVcNsrUJwZP88ue4ze1vLs5ilmRL3suHVp0+gDCh /BBtfwZT6THZOTj1TItLQ8DhovoQUBbGXpsuTPa3wcG3nWovj2a1Bn/yfC+rcAFS v9itOPjIm3n8u21iGQnetwLIm18a0mHdkfncMQ7MySJIdY5G2AOtm3MpT2lAVNYn RILxaw7MeBUwoSFXlCmKdBTlcxklJ1U5Fu1j+r0/eQ15XcmhQneH7F/zXbHou6GI 4Wb5LPuZdXUwZwUamxTN9qNbGOPquWiEmhECq8g==; 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=12; hn=cc,content-disposition,content-type,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:mJdOgX4HYv42bC0nKCsbI1cxkPr7FaF+EmCucvDzsic=:vOZAs97267C4t8RDVZSj6liwEkfHU36NT60iQpydvVo=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTE5cSEesoexBvSHXA7vPMcvBP83F4WFoDjFFpSsiDwBxB1K7ya5ofrGJG39HFztiv 7NyPVK0C/36E+taMo9Y/D18C5LqeNRt8ZIexBM88BOBDR6/Ybb/QJQ1Ji8zHZlL9YugglU hFF/XVdCHLZYOIx46e72iHfRFavVt3woMG5yWfmWlUY1fUxA1aqvQvpRmsF+mcqUHNkD4P 86UEd1mtBjUpSV7OY0ok7hgg259veMyULWkveJQAxgeNCCuUe3rmUaf0sHe1x6s7yEuD1X 1nWHuqVclt6QjI0hhzp0gCadcpmBymxfTPm3Ar0JrEXsXAJ5EM8dJjrvW4Xk8ebGJkh/AJ pKAR1qSuiYwv++aw2G91ROmaBcp/G96nzb8PdJLIUR+xRinGGuVedbv85JP3vZKjf+7XvV dad0eiYd1jFLSUJfbwciOpESRwumqUmA670tGiYHkBDrGyF8WGvg4bF3gvkz0+d3rAqZsf +/zKnDXT8B3h/mrFyHgYoyRLYGwm8xj2bE72Gp7sH7lwXytvn4q3jsUMGxAtgxF49nzOAJ npT+v9ZhAA/VC6qHwpLD+0ie1ZdqtnfjPBRIqVeAk4+Riv4Qs3QiBh9cVwxemAnGGzcvls ZbSzuXM40hVfHMkLmmIAinSgPRTT2XYHo4zrVowklCgLYsCnswHiA4Dkq47Q X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Dec 2026 03:38:55 -0500 (EST) Received: by mail (OpenSMTPD) with ESMTPSA id 2e798395 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 2 Dec 2026 08:38:55 +0000 (UTC) Date: Wed, 2 Dec 2026 09:38:52 +0100 From: Patrick Steinhardt To: Junio C Hamano Cc: 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 12:43:54PM -0800, Junio C Hamano wrote: > Patrick Steinhardt writes: [snip] > > 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. > > Looking at pack_report() below, it does not actually report the number > of packs opened. It prints getpagesize(), core.packedGitWindowSize, > core.packedGitLimit, pack_used_ctr (the window-switch counter bumped in > use_pack()), pack_mmap_calls, current and peak pack_open_windows, and > current and peak pack_mapped. > > Nevertheless, I would agree with you that these are targetted more > towards Git developers and not end-users. Ah, agreed. Will fix. > > diff --git a/builtin/fast-import.c b/builtin/fast-import.c > > index ab5d2a23448..14e75149415 100644 > > --- a/builtin/fast-import.c > > +++ b/builtin/fast-import.c > > @@ -4153,7 +4153,7 @@ static int option_parse_early_allow_unsafe(const struct option *option, > > int cmd_fast_import(int argc, > > const char **argv, > > const char *prefix, > > - struct repository *repo) > > + struct repository *repo UNUSED) > > { > > struct fast_import_state state; > > > > @@ -4346,8 +4346,6 @@ int cmd_fast_import(int argc, > > fprintf(stderr, " pools: %10lu KiB\n", (unsigned long)((tree_entry_allocd + fi_mem_pool.pool_alloc) /1024)); > > fprintf(stderr, " objects: %10" PRIuMAX " KiB\n", (alloc_count*sizeof(struct object_entry))/1024); > > fprintf(stderr, "---------------------------------------------------------------------\n"); > > - pack_report(repo); > > - fprintf(stderr, "---------------------------------------------------------------------\n"); > > fprintf(stderr, "\n"); > > } > > And we no longer call pack_report(), which was the only user of "repo" > in the function, so "repo" goes back to UNUSED as well. Sounds good. > > However, cmd_fast_import() has in its fast_import_option[] array > > OPT_BOOL_F(0, "stats", &show_stats, > N_("display some basic statistics (objects, packfiles and memory)"), > > which still talks about packfiles. Good catch, fixed now. Patrick