From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Switched from rsync to git, now emerge --sync fails
Date: Wed, 13 Oct 2021 16:11:04 -0400 [thread overview]
Message-ID: <CAGfcS_koXTZh3vo37C5ojjF2WyQ=vA1E_jN2v1sb4aZ0BPz=ag@mail.gmail.com> (raw)
In-Reply-To: <sk79p2$2gt$1@ciao.gmane.io>
On Wed, Oct 13, 2021 at 2:50 PM Grant Edwards <grant.b.edwards@gmail.com> wrote:
>
> Is there some reason it should default
> to doing unlimited depth fetch operations?
>
If all you want is a repo, no reason to set the depth higher. If you
want to see the history then you'll want it all.
However, once you have an initial sync, I don't think it should go
back and fetch all the history unless you explicitly ask git to do so.
I don't see why this would cause issues after the initial sync. If
you were fetching all the history, it would be the FIRST sync that
caused all the issues. Well, unless portage is going out and trying
to pull it all in (and if so I'd think it would have done it from the
start).
Once you have the full repo then subsequent syncs should be very fast
and don't use much CPU server-side. The git client sends the remote
server its current head, and then the server walks back from its head
until it finds yours, which will only be a short distance if you've
synced recently. Then it is only the new objects in-between that have
to be sent. The whole thing is de-duplicated and copy-on-write just
due to its data structure.
I'm suspecting some sort of server-side issue - maybe an intermittent
one. Either that or portage is really trying to pull in that history
after the initial sync.
Another option is to do a pull from the github mirror. That same repo
is hosted on both gentoo's server and github, and they're identical
(the content hash tells you as much), so you should be able to do a
pull from either seamlessly. The signatures/etc are applied to both
as well. Some don't care for github not being FOSS but if you're just
using it as a mirror I'd argue it is no different than if one of the
gazillion distfile mirrors happened to run IIS or have a firmware that
wasn't coreboot. It is just another mirror.
--
Rich
next prev parent reply other threads:[~2021-10-13 20:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-13 18:25 [gentoo-user] Switched from rsync to git, now emerge --sync fails Grant Edwards
2021-10-13 18:37 ` Neil Bothwick
2021-10-13 18:50 ` [gentoo-user] " Grant Edwards
2021-10-13 19:35 ` Neil Bothwick
2021-10-13 20:11 ` Rich Freeman [this message]
2021-10-14 2:50 ` Grant Edwards
2021-10-14 8:22 ` Peter Humphrey
2021-10-14 8:28 ` Miles Malone
2021-10-14 9:52 ` Wol
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGfcS_koXTZh3vo37C5ojjF2WyQ=vA1E_jN2v1sb4aZ0BPz=ag@mail.gmail.com' \
--to=rich0@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox