Apply expire thread fix for events executors from jazzy to rolling#3012
Closed
skyegalaxy wants to merge 2 commits intoros2:rollingfrom
Closed
Apply expire thread fix for events executors from jazzy to rolling#3012skyegalaxy wants to merge 2 commits intoros2:rollingfrom
skyegalaxy wants to merge 2 commits intoros2:rollingfrom
Conversation
* feat: Add ClockWaiter and ClockConditionalVariable Added two new synchronization primitives to perform waits using an rclcpp::Clock. Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com> * fix: Fixed expiring of goals if events executor is used This commit is only relevant if the events executor is used. This commit starts a background thread, to create events for the expire timer of the action. Without this the action server will not expire old goal results leading to memory and performance issues. Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com> --------- Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com> Co-authored-by: Janosch Machowinski <J.Machowinski@cellumation.com>
…mer (ros2#2800) This fixes a bug, that the expire action thread would not sleep as, the sleep duration was not computed correctly. Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com> Co-authored-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Collaborator
|
There is a fix in rolling that works completely different than the version in jazzy. We will need to check though why it's not working... |
Member
Author
|
Closed in favor of #3018 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
In the long actions ram usage section of the benchmarks iRobot shared back in September, there was a memory leak identified in rolling for both the EventsExecutor implementations. I did some deeper profiling and found that it was the result of expired goal results never being cleared out.
As it turns out, there were fixes for this merged directly into the jazzy branch back in March, but it appears that they never made their way to rolling.
With the relevant commits cherry-picked, here's the results:
Is this user-facing behavior change?
Did you use Generative AI?
Additional Information