If it feels `git clone` is throttled on Windows...
Try changing automated packet size selection
Symptoms of the problem
- Internet connection is fast and a torrent download of Ubuntu can go at 10MB/s, but git clone gets ‘stuck’ at 500-600KB/s.
- Connecting through VPN helps a bit sometimes, increasing the speed, but not to it’s full potential.
- Another computer using the same network (wired or wireless) gets full download speed when cloning, so you know it’s not the connection at fault.
netsh interface tcp show global
Output:
Querying active state...
TCP Global Parameters
----------------------------------------------
Receive-Side Scaling State : disabled
Receive Window Auto-Tuning Level : disabled
Add-On Congestion Control Provider : default
ECN Capability : disabled
RFC 1323 Timestamps : disabled
Initial RTO : 1000
Receive Segment Coalescing State : enabled
Non Sack Rtt Resiliency : disabled
Max SYN Retransmissions : 4
Fast Open : enabled
Fast Open Fallback : enabled
HyStart : enabled
Proportional Rate Reduction : enabled
Pacing Profile : off
The problem is this line: Receive Window Auto-Tuning Level : disabled
.
Solution
Change Receive Window Auto-Tuning Level
to normal
(from elevated cmd/powershell):
netsh int tcp set global autotuninglevel=normal
After this my git clone
speeds went up to the bandwidth of my internet connection.