Skip to content

bug: too many open files with recursive search #1387

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

Open
ykonstant1 opened this issue Feb 23, 2025 · 1 comment · May be fixed by #1419
Open

bug: too many open files with recursive search #1387

ykonstant1 opened this issue Feb 23, 2025 · 1 comment · May be fixed by #1419
Labels
errors Something isn't working

Comments

@ykonstant1
Copy link

Version:

eza - A modern, maintained replacement for ls
v0.20.22 [+git]
https://github.com/eza-community/eza

Command like arguments:

eza --almost-all --recurse >/dev/null

Shell & Terminal : bash and a host of terminals: xterm, terminator, kitty, ghostty, wezterm (all reproduce)

OS : Linux 6.13.3-arch1-1
WM : Cinnamon 6.4.7 (Xorg)
Hardware : Lenovo Thinkpad P53

Issue:

When recursing over a large directory hierarchy, the entirety of /home, I get a large number of "too many open files (os error 24)" errors:

...
./data/_back-data/mozilla_profile_admin/xxxxxxxx.default/storage/default/https+++ask.libreoffice.org/cache/morgue/241: Too many open files (os error 24)
./data/_back-data/mozilla_profile_admin/xxxxxxxx.default/storage/default/https+++ask.libreoffice.org/cache/morgue/242: Too many open files (os error 24)
...

etc.
``
Other utilities like ls and `lsd` do not display this behavior. I am not sure as to the cause.

@ykonstant1 ykonstant1 added the errors Something isn't working label Feb 23, 2025
@cafkafk
Copy link
Member

cafkafk commented Feb 27, 2025

The problem is likely that we're missing some form of chunking and that leads to violating some ulimit by opening too many file descriptors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
errors Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants