From nobody Thu Jan 06 23:13:10 2022 X-Original-To: freebsd-git@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0A5D519418A8 for ; Thu, 6 Jan 2022 23:13:24 +0000 (UTC) (envelope-from david@crossfamilyweb.com) Received: from mail.dcrosstech.com (rrcs-24-97-5-250.nys.biz.rr.com [24.97.5.250]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.dcrosstech.com", Issuer "DCrossTech.com LLC CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JVMbQ3qZ8z4Sj7 for ; Thu, 6 Jan 2022 23:13:22 +0000 (UTC) (envelope-from david@crossfamilyweb.com) X-Virus-Scanned: amavisd-new at dcrosstech.com Received: from winry.priv.dcrosstech.com (d130.office.dcrosstech.com [10.1.12.130]) (authenticated bits=0) by mail.dcrosstech.com (8.15.2/8.15.2) with ESMTPSA id 206NDAoh086867 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Thu, 6 Jan 2022 23:13:10 GMT (envelope-from david@crossfamilyweb.com) X-Authentication-Warning: mail.priv.dcrosstech.com: Host d130.office.dcrosstech.com [10.1.12.130] claimed to be winry.priv.dcrosstech.com Subject: Re: Slow clone of ports from own git server From: "David E. Cross" To: freebsd-git@freebsd.org References: Message-ID: <05433e88-db2f-494e-fb33-79e3c9534ce6@crossfamilyweb.com> Date: Thu, 6 Jan 2022 18:13:10 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 List-Id: Discussion of git use in the FreeBSD project List-Archive: https://lists.freebsd.org/archives/freebsd-git List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-git@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4JVMbQ3qZ8z4Sj7 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of david@crossfamilyweb.com designates 24.97.5.250 as permitted sender) smtp.mailfrom=david@crossfamilyweb.com X-Spamd-Result: default: False [-3.18 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[david]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-git@freebsd.org]; HAS_XAW(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_NONE(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_NA(0.00)[crossfamilyweb.com]; NEURAL_HAM_MEDIUM(-0.88)[-0.883]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11351, ipnet:24.97.0.0/16, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N And nevermind, a "git maintenance run" fixed it (which I found after some desperation).. which I didn't even consider since this was a FRESH clone and a new repository that got pushed to. It is practically instant now (sub second) TIL On 1/6/22 1:50 PM, David E. Cross wrote: > Apologies, not sure if this is the right place, but seems to have all > of the right checkboxes: FreeBSD, GIT, FreeBSD repository... :) > > > I have my own git server (git-http-backend) via apache trying to > manage my own clone of ports (I have a significant number of local > modifications to ports that I am constantly trying to upstream). > > > A problem that I have is that if I clone from my own server it sits > and hangs for ~30+ seconds while the git process on the server spins > at 100% CPU.  (This is a relatively recent Intel Xeon, 2.1ghz, 8 core, > 64GB of memory machine).  CPU at 100% pegged suggests it isn't IO > bound (they are spinny disks). > > Given the following output: > >> Cloning into 'freebsd-ports'... > > Hang happens here. > >> remote: Enumerating objects: 5142670, done. > > > When cloning from the freebsd git sever for ports that hang is maybe 4 > seconds.  What do I need to do to get equivalent performance?  what am > I missing? > > > Thanks! > >