Skip to content

git bash - Changing the maximum number of open files using - $ ulimit -Hn #2327

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
j450h1 opened this issue Sep 12, 2019 · 3 comments
Closed
1 task

Comments

@j450h1
Copy link

j450h1 commented Sep 12, 2019

  • 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?

64 bit

$ git --version --build-options

**
 git version 2.23.0.windows.1
cpu: x86_64
built from commit: 4db2e5cc9e1522131a039cbad3970f147a39f0ce
sizeof-long: 4
sizeof-size_t: 8
 **
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

Windows Server 2019

$ cmd.exe /c ver

** Microsoft Windows [Version 10.0.17763.737]
 **
  • What options did you set as part of the installation? Or did you choose the
    defaults?

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

** insert your machine's response here **
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

** insert your response here **

Details

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

** Git Bash**

** ulimit -Hn **

I get 3200. I just upped my RAM from 15 GB to 30 GB and expected it to increase the maximum limit but it has stayed the exac same.
I change this by typing
ulimit -n 3200
Can this maximum be increased somehow by modifying something? In linux there is no such limit of 3200 that I'm aware of.

@PhilipOakley
Copy link

is this really a Git issue, or an issue with the bash on windows?

Git for Windows does not claim to be a full fledged Linux system. It's just a minimal, sufficient, set of packages to bring Git to Windows.

@dscho
Copy link
Member

dscho commented Sep 12, 2019

The ulimit numbers will only be heeded by the MSYS2 components of Git for Windows, i.e. Bash and Perl scripts as well as OpenSSH. Git itself will not heed them.

The answer to your question, if you still want to pursue it in such a limited scenario, would lie within the documentation of the Cygwin project: MSYS2 is a friendly fork of Cygwin.

@dscho dscho closed this as completed Sep 12, 2019
@j450h1
Copy link
Author

j450h1 commented Sep 12, 2019

Thanks @dscho for pointing me in the right direction.

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

No branches or pull requests

3 participants