You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
README.md suggests using isolcpus=2,3 and gives an example of how to run a single-threaded executor on CPU2 by taskset -c 2.
But there is a problem when someone wants to test a multi-threaded executor. isolcpus basically disables load balancing, so a process can use only one CPU even if ran with taskset -c 2,3. For a process to use multiple isolated CPUs, RT priority class (e.g., SCHED_FIFO) is needed since the Linux RT scheduler performs like a global work-conserving scheduler for all assigned CPUs. In short, we need something like:
@hyos@razr it should be the command within the cmake scripts either in the generate_traces.cmake script in the cmake directory or in the main CMake file of autoware_reference_system.
I think the right way to implement this would be to add a cmake arg to enable / disable the use of it.
I can look into this tomorrow if no ones implemented it by then
README.md suggests using
isolcpus=2,3
and gives an example of how to run a single-threaded executor on CPU2 bytaskset -c 2
.But there is a problem when someone wants to test a multi-threaded executor.
isolcpus
basically disables load balancing, so a process can use only one CPU even if ran withtaskset -c 2,3
. For a process to use multiple isolated CPUs, RT priority class (e.g., SCHED_FIFO) is needed since the Linux RT scheduler performs like a global work-conserving scheduler for all assigned CPUs. In short, we need something like:I guess
colcon test
scripts need to be updated so that, whenTEST_PLATFORM
is enabled, it runs executors with taskset and chrt.The text was updated successfully, but these errors were encountered: