I expect to repeatedly be able to use projectile-find-file-in-known-projects without consuming too many system resources.
Actual behavior
I've observed that this command is causing too many file watchers to be registered and it is preventing me from doing other related tasks that require a file watcher.
Using this script I have identified that before calling the command projectile-find-file-in-known-projects there are few watchers (<<1000) per PID. After calling the command a new PID is created with more than 10k file watchers. Calling the command in another buffer launches a new PID with as many, if not more watchers. Doing this more than a handful of times is enough to exhaust the system limit.
Steps to reproduce the problem
Get a large TS project, use the above script, and see what happens.
My .spacemacs is setup like this
Backtraces if necessary (M-x toggle-debug-on-error)
Environment & version information
helm-projectile version:
helm version (in helm-pkg.el):
projectile version (M-x projectile-version): Projectile 2.6.0-snapshot
Emacs version (M-x emacs-version): GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-09-19
Expected behavior
I expect to repeatedly be able to use projectile-find-file-in-known-projects without consuming too many system resources.
Actual behavior
I've observed that this command is causing too many file watchers to be registered and it is preventing me from doing other related tasks that require a file watcher.
Using this script I have identified that before calling the command projectile-find-file-in-known-projects there are few watchers (<<1000) per PID. After calling the command a new PID is created with more than 10k file watchers. Calling the command in another buffer launches a new PID with as many, if not more watchers. Doing this more than a handful of times is enough to exhaust the system limit.
Steps to reproduce the problem
Get a large TS project, use the above script, and see what happens. My .spacemacs is setup like this
Backtraces if necessary (
M-x toggle-debug-on-error
)Environment & version information
helm-projectile
version:helm
version (inhelm-pkg.el
):projectile
version (M-x projectile-version
): Projectile 2.6.0-snapshotM-x emacs-version
): GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-09-19