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
Check if we can get rid of queue/lock/trigger on some platforms #166
Comments
I have tried something like this and ran out of limits on a busy system. We need to add a note on setting the limit in /etc/sysctl.conf. IIRC EDIT: This was the program and it was |
Shouldn't 1 watch be enough to look at the directory contents? |
A normal user may just get EMFILE when calling |
Yes, that could have been the reason. My program was running under tcpserver as non-root. It was a service that kept on updating clients (using tcpclient), list of files getting updated on the system. |
Yes. You just need one |
You get an |
read(2) could return Let me see if I can simulate the same by running 5 instances of the above program, comment out the read calll and write a script to create thousands of files.
|
Came across this while finding how one can run out of inotify resources. Apparently one setup a trace to find out who is using and consuming inotify(). https://unix.stackexchange.com/questions/15509/whos-consuming-my-inotify-resources |
qmail-queue uses the pipe in queue/lock/trigger to signal qmail-send that a new message is ready for processing. This can be avoided on newer platforms, where one could use e.g. inotify on Linux to watch the todo directory for new files. This would get the notification automatically when new files are created, and avoids scanning the directory afterwards, as the event would already return the filename of the new file.
The text was updated successfully, but these errors were encountered: