Nodelet performance vs number of instances
Hello,
If I launch 2 instances of a nodelet what will be the impact on the performance. Let's say the single instance of the nodelet was running at 30Hz. what will happen if multiple instances of the same nodlet was launched through a manager. I have observed a considerable amount of performance drop in the performance when two or more instances of nodelet was launched.
Please clarify me. If there is any performance issue how can I resolve the same.? Is there a way to affinitise the each instance of the nodelet to a specific core.?
Thanks in advance
Because nodelets all run in the same process, they must all run on the same core.
Geoff, there's a thread pool, so multiple instances of a nodelet will run in parallel on a multi-core processor. I regularly do so, and as long as you avoid global variables and don't lock out global resources (CUDA in my case) things will run happily.