Skip to content

Very slow clone using plink #1538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
DBotThePony opened this issue Mar 5, 2018 · 7 comments
Closed
1 task done

Very slow clone using plink #1538

DBotThePony opened this issue Mar 5, 2018 · 7 comments
Labels

Comments

@DBotThePony
Copy link

DBotThePony commented Mar 5, 2018

  • 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.
@dscho
Copy link
Member

dscho commented Mar 6, 2018

If it works better with OpenSSH than with plink, maybe this is a PuTTY issue? Did you have a look at that project's bug tracker/forum/mailing list?

@DBotThePony
Copy link
Author

DBotThePony commented Mar 6, 2018

Didn't found anything. I've attempted to find PuTTY issue tracker, but couldin't find it.

@landstander668
Copy link

I'm guessing the reason you use PuTTY is for integration with private keys loaded into the PuTTY authentication agent (Pageant). Assuming that's accurate, a workaround would be to use the ssh-pageant integration, which allows OpenSSH to use Pageant for key management (and is already included in Git for Windows).

@dscho
Copy link
Member

dscho commented Apr 4, 2018

@roboderpy did you get a chance to try @landstander668's suggestion?

@dscho
Copy link
Member

dscho commented Apr 4, 2018

For the record, PuTTY's bug tracker seems to be this page: https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/ (with unresolved bugs on this page: https://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/#pending), and the process to report new bugs (after checking the list of pending bugs) is described here: https://www.chiark.greenend.org.uk/~sgtatham/putty/feedback.html.

@DBotThePony
Copy link
Author

Ssh pageant integration works well

@dscho
Copy link
Member

dscho commented Apr 4, 2018

@roboderpy okay, then let's close the ticket here. If you want to continue using PuTTY, I suggest going through that list of open ("pending") PuTTY issues, and if you do not find it, report the issue as suggested on their "feedback" page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants