From: "R. Diez" <rdiez-2006@rd10•de>
To: git@vger•kernel.org
Subject: git-fetch takes forever on a slow network link. Can parallel mode help?
Date: Fri, 6 Mar 2026 21:13:58 +0100 [thread overview]
Message-ID: <5c7c975e-2541-47e1-b789-fee1fdb77d2a@rd10.de> (raw)
Hi all:
I have an SMB/CIFS connection to a file server over a slow link of about 1 Mbps download, and a faster upload of about 10 Mbps.
My smallish Git repository has its single origin on that file server. Unfortunately, I cannot set up any sort of Git server on the remote host.
git fetch takes a long time. If the repository is up to date, it takes about 25 seconds to realise that there is nothing to do.
If there are changes to download, it can take half an hour, even if the new commit history is rather small.
The network link is slow, but not that slow. I wonder what may be causing the long delays.
The first question is: how come it takes so long to determine that nothing has changed? Does git-fetch need to download a biggish file every time?
Perhaps latency is more of an issue than bandwidth. I saw that git-fetch can work in parallel with --jobs=n . Doing parallel requests may help against round trip latency.
However, the git-fetch documentation does not clearly state whether the parallel mode only helps if you have multiple remotes and/or multiple submodules. In my case, I just have a single repository with a single origin and no submodules.
Adding --jobs=10 does not help in the 25-second case with no new commits to download.
Does anybody have any ideas about how to improve performance in this scenario?
Thanks in advance,
rdiez
next reply other threads:[~2026-03-06 20:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-06 20:13 R. Diez [this message]
2026-03-06 20:54 ` git-fetch takes forever on a slow network link. Can parallel mode help? brian m. carlson
2026-03-07 21:28 ` R. Diez
2026-03-08 1:44 ` brian m. carlson
2026-03-08 21:08 ` R. Diez
2026-03-08 22:52 ` brian m. carlson
2026-03-09 21:08 ` R. Diez
2026-03-10 22:50 ` brian m. carlson
2026-03-11 18:05 ` R. Diez
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=5c7c975e-2541-47e1-b789-fee1fdb77d2a@rd10.de \
--to=rdiez-2006@rd10$(echo .)de \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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