-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
PX4 workqueue add simple reference counting to shutdown empty queues #12154
Conversation
Catkin CI failure might be real. |
TODO: go back through the WQ manager to initiate shutdown. |
fb653d1
to
871415c
Compare
New idea
cleanup (end of init)
status
|
I am concerned with fragmentation. |
I haven't reviewed these changes, but here is a flight log from this PR: |
We can also get rid of the |
Continued in #12853. |
When probing optional drivers at startup the corresponding workqueue per bus is created if it doesn't already exist. With the current init structure of attempting to start many possible external devices the result is a workqueue for every bus in the system. This doesn't actually waste that much memory, but we are starting to bump up against the NuttX task limit. #11792 (comment)
The downside of this PR is that in some cases the WQ for the same bus might be created, killed, then created again later as each optional driver is probing.
Example