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
Use thread pool to run benchmark publishers in rosbag2_performance_benchmarking #1250
Conversation
Signed-off-by: Carlos San Vicente <carlos.sanvicente@apex.ai>
Signed-off-by: Carlos San Vicente <carlos.sanvicente@apex.ai>
…marking (ros2#1242) Signed-off-by: Shane Loretz <sloretz@google.com> Signed-off-by: Carlos San Vicente <carlos.sanvicente@apex.ai>
…osbag2_performance_benchmarking/config_utils.hpp Co-authored-by: Michael Orlov <morlovmr@gmail.com> Signed-off-by: Carlos San Vicente <carlos.sanvicente@apex.ai>
…osbag2_performance_benchmarking/thread_pool.hpp Co-authored-by: Michael Orlov <morlovmr@gmail.com> Signed-off-by: Carlos San Vicente <carlos.sanvicente@apex.ai>
…mark_publishers.cpp Co-authored-by: Michael Orlov <morlovmr@gmail.com> Signed-off-by: Carlos San Vicente <carlos.sanvicente@apex.ai>
…osbag2_performance_benchmarking/thread_pool.hpp Co-authored-by: Michael Orlov <morlovmr@gmail.com> Signed-off-by: Carlos San Vicente <carlos.sanvicente@apex.ai>
…osbag2_performance_benchmarking/thread_pool.hpp Co-authored-by: Michael Orlov <morlovmr@gmail.com> Signed-off-by: Carlos San Vicente <carlos.sanvicente@apex.ai>
Signed-off-by: Carlos San Vicente <carlos.sanvicente@apex.ai>
Signed-off-by: Carlos San Vicente <carlos.sanvicente@apex.ai>
Signed-off-by: Carlos San Vicente <carlos.sanvicente@apex.ai>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@carlossvg LGTM. Thanks for restoring PR.
@ros-pull-request-builder retest this please |
Gist: https://gist.githubusercontent.com/MichaelOrlov/ca15d2faeb4b9e50d96c0c663ec65a96/raw/6a833de131f461ffff0171ab0b8a2a5490362943/ros2.repos |
Gist: https://gist.githubusercontent.com/MichaelOrlov/6b0258febb43edc9f0e760e6ab243c68/raw/6a833de131f461ffff0171ab0b8a2a5490362943/ros2.repos |
Gist: https://gist.githubusercontent.com/MichaelOrlov/6b0258febb43edc9f0e760e6ab243c68/raw/6a833de131f461ffff0171ab0b8a2a5490362943/ros2.repos |
This pull request has been mentioned on ROS Discourse. There might be relevant details there: https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-2023-03-16/30432/1 |
Follow-up from: #1171 (comment)
Related to: #688
Depends on #1153
This PR changes benchmark_publishers to use a thread pool instead of running each publisher in separate threads. The motivation for this change is to overcome a limitation on the number of threads imposed by Cyclone DDS (limited to 128 threads).