Skip to content

Very slow clone using plink #1538

@DBotThePony

Description

@DBotThePony
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.16.2.windows.1
cpu: x86_64
built from commit: e1848984d1004040ec5199e749b5f282ddf4bb09
sizeof-long: 4
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.15063]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: Notepad++
Path Option: CmdTools
Plink Path: C:\Program Files\PuTTY\plink.exe
SSH Option: Plink
CURL Option: WinSSL
CRLF Option: LFOnly
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

No

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Mintty

Just clone
  • What did you expect to occur after running these commands?

Fast clone speed

  • What actually happened instead?

Clone speed is capped at rough 88 kb/s in terminal. Process Hacker tells speed is capped rough at 96 kb/s

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

This happens on ANY remote repository. If you git clone a repository from local linux machine it will be capped at rough 664 kb/s. If from local vm machine - capped at 7.5 mb/s. If i clone it from command line using dirty ssh-agent and ssh setup, i get 30 mb/s.

Side notes:

  • Speed over https on most of repos is at least 3 MB/s
  • openssh works good only for clone, for push (because of some limitations of software i use and other stuff) it doesn't for me. And yes, bundled openssh produce a bit slower speed than https clone
  • Before using tcp optimizer software https clone was capped at 667 kb/s too. Tested both on bridged network settings in virtual box on win7 and win xp vms, and on host windows 10 - same results. But in vm with linux system git clone speed is fair and balanced.
    Even if direct reason of this issue is wontfix, the issue with https clone speed without using third party software is present still.
  • process hacker screenshot on clone:
    processhacker_2018-03-05_20-28-07
  • this issue stand unresolved for ages, so i decided to report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions