Maximum allowed value of ulimit -n #11674
cyrilarnould
started this conversation in
General
Replies: 1 comment 16 replies
-
The issue with grep can be solved by using As for the limit on open files, I wouldn't be surprised if that's hardcoded in Windows. |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I often perform grep -r searches, sometimes over very large directories. At some point, those searches fail with
too many open files
. I similarly run into this problem when I want to natively compile elisp packages for Emacs in parallel.Searching online I've found that ulimit -n is responsible for this limitation. When I try to change the limit however, it fails saying
cannot modify limit: Too many open files
. I guess this probably also comes from cygwin. Curiously, I find very little discussion on this topic aside from people saying it's not possible, e.g. https://cygwin.com/pipermail/cygwin/2006-October/151485.htmlIt would be great to see this implemented, although there's probably a reason why this can't easily be changed. I'd be interested to find out why though. I'd also welcome any workarounds to my problems, it seems to me like I can't be the only one to regularly run into this.
Beta Was this translation helpful? Give feedback.
All reactions