2021-07-28 03:00 AM
Hi everyone,
I'm coding a C application on Linux which has 2 processes. In order to optimize performance, I would like to run each one on a differente core CA7 - as I'm working whit dual-core STM32MP157F MPU. How can I achieve this? Any useful framework?
Regards
2021-07-29 02:50 AM
Hi,
I'm not SW expert, but I expect this is automatically (and dynamically) managed by Linux scheduler depending on thread load (default weak affinity).
There is probably some ways to force affinity to specific processor, but I'm not sure it is required except very specific cases.
On Starter Package, you could already use 'top' command, then enable column 'P = Last Used Cpu ' (= Cortex-A7 core 0 or 1) to see real time core usage for each thread.
Regards.