Comments (9)
You are asking a good question--it would be better if users never needed to adjust the default resource limits. I will look into modifying entr
to add the list of input files to a single inotify
queue.
from entr.
Thanks for the kind words!
I uploaded a change for making better use of inotify in commit 9737442. This will respect limits set by /proc/sys/fs/inotify/max_user_watches
from entr.
The same error occurs when trying to watch directories with
$ fd "\.go$" | entr -d go build -o ./flt
But there are only 64 directories to watch.
$ fd -t d | wc -l
Using inotify
with dir monitoring and custom filters could expand watching limits without changes to core system configuration.
from entr.
The error you're seeing is caused by hitting the maximum number of file descriptors. inotify
can monitor multiple files per file descriptor, but entr
uses one file descriptor per file because this is the way kqueue
on BSD and Mac works. This was a compromise to make entr
portable.
To raised this limit, edit /etc/security/limits.conf
* hard nofile 16384
* soft nofile 16384
How many total files/directories are you monitoring?
from entr.
Why entr
can not use "multiple files per descriptor" interface setting limit of files to 1 if kqueue
is used?
How many total files/directories are you monitoring?
About 1024.
$ fd "\.go$" | wc -l
1024
from entr.
Thank you. entr
is an awesome tool that I use constantly, and because it is available from major distros, it is easy to use. I'm looking forward to the new version. :D
On a side note, there is a new fanotify
mechanism in Linux 5.1 which may or may not be more efficient.
- https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.1-Fanotify-Improvements
- https://github.com/torvalds/linux/commits/master/fs/notify/fanotify
from entr.
Updated the documentation limits on LInux at
file:///home/eradman/www/eradman.com/entrproject/limits.html
from entr.
Looks good. Just two fixes for http://eradman.com/entrproject/limits.html#linux
s/permement/permanent/
s/was required //
from entr.
Good catch! Text adjusted. Thanks @abitrolly
from entr.
Related Issues (20)
- entr: No regular files to watch in ruby HOT 8
- Alternatives to SIGTERM with -r HOT 11
- Use strlcpy with >=glibc-2.38 HOT 9
- Missing entr command on website HOT 1
- Ability to kill the process after a timeout if it fails to stop gracefully HOT 7
- `/_` marker and quotes. HOT 2
- doesn't this force the RLIMIT_NOFILES to be exactly 65536? HOT 11
- Feature request: provide a way to debounce triggers HOT 8
- fatal error: sys/sysctl.h: No such file or directory HOT 3
- `entr` apparently don't work when called from a Makefile task HOT 3
- Only the first event is handled when using entr to watch the script that runs entr HOT 9
- $0 isn't populated on macOS when using -s HOT 5
- Git tags are not signed HOT 4
- Feature request: print blank line between runs with -b HOT 2
- Feature request: suppress exit status message with -q HOT 7
- 'entr: setrlimit cannot set rlim_cur to 61440: Invalid argument' on macOS HOT 23
- Is there an easy way to print out the time that `entr` ran the last command? HOT 4
- Update link to doc page HOT 3
- Include workspaces HOT 3
- Commands run twice with the -d flag HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from entr.