-
-
Notifications
You must be signed in to change notification settings - Fork 441
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
Allow for "continuous update" of started/ended processes #266
Comments
As discussed on irc with @BenBE ... possible with eBPF: |
Another idea might be to not have a big delay (default: 1.5s) and gather all data on each cycle, but having a small (0.2s?) delay and check only newly detected processes until the next full-data-cycle. |
This might work sufficiently well for small numbers of processes changing between each cycle. You could even improve on this by using a FIFO queue of processes waiting for updates. That way you could even limit the number of updates in such a "partial" cycle to a certain maximum. Combined with the TreeSet information from the tree building in #307 you could probably also speed-up the insertion/removal of new processes without rebuilding the whole tree. |
With #241 watching for processes that recently started/ended becomes quite easy to follow. Unfortunately the default delay for process updates is quite large thus when e.g. running
make
or other tools that create lots of short-lived children you are going to miss most of the action.With most systems there exists a facility in form of
dtrace
that should allow to actually monitor the process creation/termination in "real-time" thus no longer missing any child born - no matter how short-lived.Some constraints:
/proc
doesn't seem to work - noIN_CREATE
/IN_DELETE
on /proc// directories received 😢 )dtrace
may be quite platform dependent despite providing a similar interface on most platformsThis really is an enhancement idea, but I don't see a chance for any near-term implementation, thus low-prio / wishlist. Patches implementing this welcome anyway.
The text was updated successfully, but these errors were encountered: